Code Monkey home page Code Monkey logo

ai-agent-java's Introduction

Build your own Java RAG AI Agent

☕️ Welcome to this workshop to build your own Java AI Agent using Retrieval Augmented Generation.

🏆 It leverages the best of open-source for fast implementation of the RAG pattern for production quality applications.

🤩 The completed RAG ChatBot will demonstrate how your AI Agent can do

  • LLM and Prompt Engineering
  • Conversational Memory
  • Vector Similarity Searching and Dense Passage Retrieval
  • Transform, chunk, and vectorise unstructured files like PDFs
  • Caching of LLM responses for latency and cost performance
  • Reranking of search results
  • Vector calculations using JVector
  • Online searching using the Tavily service
  • Hybrid Searching
  • Closed Loop Feedback System
  • LLM Function Calling
  • Time Series Vector Similarity Searching

 

♻️ This workshop uses Java 21, Spring AI and Vaadin for the UI. The use of Spring and Vaadin is minimal, the code is intended to be re-used in other frameworks.

👩‍ It is CQL compatbile with Apache Cassandra® 5.0 and AstraDB Vector. Database schemas and data models are intentionally flexible so the concepts in the workshop can be retrofitted to your needs and your production.

🙇‍ The workshop will use the services: OpenAI, Tavily, and AstraDB. You will need accounts and api keys for each of these.

🌴 Each step in the workshop is a separate branch in this repository, you will need to be familiar with git switching between branches.

💪🏽 To move on to read the requirements setup step, do the following:

git switch workshop-intro-requirements

  

Requirements

  • Java 21 (or beyond)
  • Command line git and git knowledge
  • DataStax Astra DB (you can sign up through your Github account)
  • OpenAI account (you can sign up through your Github account)
  • Tavily account (you can sign up through your Github account)
  • An editor of your choice

java vaadin spring tika openai cassandra tavily


All work is copyrighted to DataStax, Inc   

ai-agent-java's People

Contributors

michaelsembwever avatar

Stargazers

Belkacem avatar Dieter Flick avatar Pavlo Kletsko avatar  avatar

Watchers

 avatar

Forkers

clun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.