/langchain-rag-template

Starter project template for building RAG applications using LangChain and Python

Primary LanguagePython

LangChain RAG Template project


What is RAG?​

RAG is a technique for augmenting LLM knowledge with additional, often private or real-time, data.

Large Language Models (LLMs) have knowledge up to a certain training date and can reason on various topics. To handle private or newer data, they need Retrieval Augmented Generation (RAG) to integrate specific, updated information into their prompts.

So far, RAG applications are the most helpful outcome of the AI revolution.

Tech Stack

  • LangChain is a framework designed to simplify the creation of applications using large language models.
  • OpenAI LLM
  • Chroma vector database

Setup Instructions

Update .env file

Update the .env file with your OPENAI_KEY

Setup a virtual environment

python3 -m venv env

Load virtual environment (Mac)

source env/bin/activate

Install dependencies

pip3 install -r requirements.txt

Run Hello RAG

python3 hello_rag.py