Skip to content

faranak-cs/rag

Repository files navigation

Building RAG using LangChain

RAG models are seq2seq models with access to a retrieval mechanism providing relevant context documents at training and evaluation time.

Setup

  1. Install Python 3.12.5. Install Ollama and pull down Llama3.1 using following command on Terminal:
ollama pull llama3.1
  1. Clone the repo
https://github.com/faranak-cs/rag.git
  1. Creat virtual envrionment
python3 -m venv rag.env
  1. Activate virtual environment
source rag.env/bin/activate
  1. Install packages
python -m pip install -r requirements.txt
  1. Populate database
python populate_database.py
  1. Ask questions
python query_data.py "How many players are there in monopoly?"

Output

Query

About

RAG using LangChain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages