• Designed & developed a Retrieval Augmented Generation (RAG) system that combines traditional search capabilities with generative AI to answer user queries based on the knowledge base for accurate and context aware answers.
• Worked on pinecone to create the database, Dense embeddings for similarity matrix, Hugging Face Model LLM for content generation & created a Rest API of the function with the outcome of reducing LLM hallucination by 50%.
Before setting up the project, ensure you have the following installed:
- Python 3.7 or later
- pip (Python package manager)
Run the following commands in your terminal to install the necessary dependencies:
!pip3 install -qU \
langchain \
tiktoken \
datasets \
pinecone-client
!pip3 install protobuf==3.20.3
!pip3 install apache-beam==2.50.0
!pip install fastapi uvicorn
Generate a PINECONE_API_KEY from your Pinecone project dashboard:
- Go to Pinecone Dashboard.
- Create or access your project.
- Copy the API Key provided for your project.
Set the key in your environment:
export PINECONE_API_KEY="your_pinecone_api_key"
Generate an NGROK_AUTH token to establish a connection with Ngrok:
- Sign up or log in to Ngrok.
- Navigate to Authentication in your dashboard.
- Copy your authentication token.
Set the token in your environment:
export NGROK_AUTH="your_ngrok_auth_token"