Skip to content

Latest commit

 

History

History

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Python FastAPI Project with LangChain & Google ‎Gemini AI for RAG

Windows 11 & Python 3.11.0

Key Features

  • Implemented routing
  • Implemented multi queries
  • Implemented query translation : stepback, rewriting, HyDE, sub-query decomposition
  • Implemented adaptive retrieval
  • Implemented reranking
  • Trying to make raptor ..

Usage

  1. Clone the repository to your local machine.

  2. Obtain your Gemini and Pinecone API keys. Create a .env file with the following content:

GOOGLE_API_KEY =  your_api
PINECONE_API_KEY = your_api
  1. Create pythonn env:
python -m venv venv
  1. Install Requirements:
venv\Scripts\activate
python -m pip install -r requirements.txt
  1. Run the FastAPI server:
python main.py
  1. View the Swagger Docs: http://127.0.0.1:8000/docs or trying chat: http://127.0.0.1:8000/static/index.html