Before getting started with the RAG application using Spring AI, ensure you have the following prerequisites installed on your system:
- JDK 22
- Apache Maven
- Azure OpenAI
The RAG application leverages two key components for its functionality:
- Text Embedding (text-embedding-ada-002):
- text-embedding-ada-002 is utilized for generating text embeddings and representing text data as vectors.
- Large Language Model (LLM):
- LLM is utilized for generating answers and completing text based on learned language patterns.
-
Clone the Repository:
git clone https://github.com/st4sik/RAG.git
-
Navigate to the Project Directory:
cd rag -
Build the Application:
mvn clean package
-
Run the Application:
java -jar target/rag-spring-ai.jar
- Use the text-embedding-ada-002 component for generating text embeddings and representing text as vectors.
- Use the LLM component for generating answers and completing text based on learned language patterns.