Before getting started with the RAG application using Spring AI, ensure you have the following prerequisites installed on your system:
- JDK 17
- 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-sk.git
-
Navigate to the Project Directory:
cd rag-sk -
Build the Application:
mvn clean package
-
Run the Application:
java -jar target/rag-sk.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.