/tiny-rag-system-with-langchain

RAG + LangChain Python Project: Tiny AI Bot For Docs

Primary LanguagePython

Tiny Retrieval Augmented Generation System with LangChain

HOW TO RUN

Part 1. Using Docker

  1. Create the image.
docker build -t rag-app .
  1. Run the container based on the image created.
docker run --rm rag-app --query "What is builder design pattern?"

Part 2. Using local or virtual environment.

  1. Install the requirement packages.
pip3 install -r requirement.txt
  1. Set up Chroma database for our corpus. (Make sure you modified the data directory to store the files.)
python3 create_db.py
  1. Input the query and run the RAG application.
python3 rag.py --query "What is builder design pattern?"

Reference

  1. Youtube Video - RAG + Langchain Python Project: Easy AI/Chat For Your Docs
  2. Design Patterns