Skip to content

Commit 55b147a

Browse files
Requirements setup for Java AI Agent workshop
1 parent 3d4b774 commit 55b147a

File tree

5 files changed

+55
-33
lines changed

5 files changed

+55
-33
lines changed

README.md

+55-33
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,11 @@
11
# Build your own Java RAG AI Agent
22

3-
☕️ Welcome to this workshop to build your own Java AI Agent using Retrieval Augmented Generation.
4-
5-
🏆 It leverages the best of open-source for fast implementation of the RAG pattern for production quality applications.
6-
7-
🤩 The completed RAG ChatBot will demonstrate how your AI Agent can do
8-
- LLM and Prompt Engineering
9-
- Conversational Memory
10-
- Vector Similarity Searching and Dense Passage Retrieval
11-
- Transform, chunk, and vectorise unstructured files like PDFs
12-
- Caching of LLM responses for latency and cost performance
13-
- Reranking of search results
14-
- Vector calculations using JVector
15-
- Online searching using the Tavily service
16-
- Hybrid Searching
17-
- Closed Loop Feedback System
18-
- LLM Function Calling
19-
- Time Series Vector Similarity Searching
3+
⬅ This is the next workshop step after the [introduction step](../workshop-intro).
204

21-
 
22-
23-
♻️ 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.
24-
25-
👩‍ It is CQL compatbile with 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.
26-
27-
🙇‍ The workshop will use the services: OpenAI, Tavily, and AstraDB. You will need accounts and api keys for each of these.
28-
29-
🌴 Each step in the workshop is a separate branch in this repository, you will need to be familiar with git switching between branches.
30-
31-
💪🏽 To move on to read the [requirements setup step](../workshop-intro-requirements), do the following:
32-
```
33-
git switch workshop-intro-requirements
34-
```
355

366

377

38-
## Requirements
8+
## General Requirements
399
- Java 21 (or beyond)
4010
- Command line `git` and git knowledge
4111
- [DataStax Astra DB](https://astra.datastax.com) (you can sign up through your Github account)
@@ -45,9 +15,61 @@ git switch workshop-intro-requirements
4515

4616

4717

18+
## Service Requirements Setup
19+
20+
🙇‍ The workshop will use the services: OpenAI, Tavily, and AstraDB. You will need accounts and api keys for each of these.
21+
22+
23+
24+
### Sign up for Astra DB ✍️
25+
26+
Go to astra.datastax.com, sign-in, and create a vector-capable Astra database.
27+
- Get the Application Token for your database, also in the right pane.
28+
- You need the API Endpoint found in the right pane underneath Database details.
29+
30+
![astra-signup](./src/assets/astra-signup.png)
31+
32+
 
33+
34+
### Create Astra Namespace
35+
36+
- Create Namespace “datastax_ai_agent”
37+
38+
![astra-namespace](./src/assets/astra-namespace.png)
39+
40+
⚠️ Make sure you have full permissions on this new namespace.
41+
Permissions are found under left pane "Settings → Roles → ︙ → Edit Role → select all keyspaces".
42+
43+
44+
### Sign up for OpenAI ✍️
45+
46+
- Create an [OpenAI account](https://platform.openai.com/signup), or sign in.
47+
- Navigate to the [API key page](https://platform.openai.com/account/api-keys) and create a new Secret Key, optionally naming the key.
48+
49+
![openai-signup](./src/assets/openai-signup.png)
50+
 
51+
52+
### Sign up for Tavily ✍️
53+
54+
- Create an [Tavily account](https://app.tavily.com/sign-in), or sign in.
55+
- Navigate to the [API key page](https://app.tavily.com/home) and copy your API Key.
56+
57+
![tavily-signup](./src/assets/tavily-signup.png)
58+
59+
 
60+
61+
## Next…
62+
63+
💪🏽 To move on to the first step, [step-0](../workshop-step-0), do the following:
64+
```
65+
git switch workshop-step-0
66+
```
67+
68+
69+
4870
***
4971
![java](./src/assets/java.png) ![vaadin](./src/assets/vaadin.png) ![spring](./src/assets/spring.png) ![tika](./src/assets/tika.jpeg) ![openai](./src/assets/openai.png) ![cassandra](./src/assets/cassandra.png) ![tavily](./src/assets/tavily.jpeg)
5072

51-
***
73+
***
5274
All work is copyrighted to DataStax, Inc
5375

src/assets/astra-namespace.png

431 KB
Loading

src/assets/astra-signup.png

336 KB
Loading

src/assets/openai-signup.png

582 KB
Loading

src/assets/tavily-signup.png

561 KB
Loading

0 commit comments

Comments
 (0)