Skip to content

Starter project template for building RAG applications using LangChain and Python

Notifications You must be signed in to change notification settings

Tublian/langchain-rag-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Starter project template for building RAG applications using LangChain and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages