A simple example implementation of Retrieval Augmented Generation (RAG) using Google's Gemini API and ChromaDB for document storage and retrieval.
This code demonstrates a basic RAG system with three main components:
- Document embedding using Google's text-embedding-004 model
- Vector storage and retrieval using ChromaDB
- Question answering using Gemini 1.5 Flash model