Skip to content

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ RAG System with Gemini & LangChain

Screenshot (41) Screenshot (42) Screenshot (43) Screenshot (44) Screenshot (45)

A production-ready Retrieval-Augmented Generation (RAG) system that lets you query your documents using Google's cutting-edge Gemini AI model.

🌟 Features

  • Document Processing: Upload and chunk PDF documents
  • Smart Search: Semantic retrieval using Gemini embeddings
  • AI Answers: Natural language responses with Gemini Pro
  • REST API: FastAPI backend with Swagger docs
  • Persistent Storage: ChromaDB vector store
  • Easy Deployment: Docker container support

πŸ› οΈ Tech Stack

  • Backend: FastAPI
  • AI Models: Google Gemini (embeddings & chat)
  • Vector DB: ChromaDB
  • Orchestration: LangChain
  • Containerization: Docker

πŸš€ Quick Start

Prerequisites

  • Python 3.9+
  • Google API key (for Gemini)
  • Docker (optional)

Local Installation

git clone https://github.com/AbuZar-Ansarii/Rag---FastAPI.git
cd rag-gemini

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # Linux/Mac
# venv\Scripts\activate   # Windows

# Install dependencies
pip install -r requirements.txt

# Set up environment
cp .env.example .env
# Add your Google API key to .env

About

🌟 RAG System with Gemini and LangChain A production-ready Retrieval-Augmented Generation (RAG) system powered by Google's Gemini model and LangChain, featuring document upload, semantic search, and AI-powered question answering. Key Features πŸ” Document Processing: PDF ingestion with text chunking 🧠 Vector Embeddings: Google's Gemini embedding

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages