Simple RAG implementation for aidevs.pl course content.
- OpenAI API. Used models:
- text-embedding-ada-002 to generate embeddings.
- gpt-3.5-turbo-16k for re-rank result obtained from vector database.
- gpt-3.5-turbo-0125 to get final answer.
- Qdrant - vector database to store embeddings.
- C# to write console app to ask questions 😊
- Run Qdrant locally
- Configure settings in the file appsettings.json
- Set Qdrant base URL.
- Set Qdrant collection name - in this collection will be stored all embeddings.
- Set Open AI API key: https://platform.openai.com/docs/api-reference/api-keys.
- All documents which must be imported, copy to the folder Memories.
- Set
ImportDocuments
to true for the first run. - Run the app and ask questions.
- Enjoy 😊
Course content is not included in the repository because it's not my property. 😊
It belongs to guys who prepare the course.
Some code is taken from this repository and converted to C# code.