Skip to content

LazGL/local_rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local RAG

Description

Project structure

my_rag_project/
├── data/                       # add your PDFs and other documents HERE
├── models/                     # To store the models
├── src/                  
│   ├── __init__.py       
│   ├── main.py           
│   ├── document_loader.py      # script to load the documents 
│   ├── indexer.py              # for indexing the documents
│   ├── generator.py            # for generating 
├── requirements.txt      
├── Dockerfile                  # Dockerfile to build the image
└── README.md                   # Docs

Installation

Create a virtual environment and install the dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Running the project

  • Be sure to have the virtual environment activated
  • Add at least one PDF file to the data/ folder
python src/main.py

Running with Docker

Command to run the project on a docker container

docker build -t local_rag .
docker run -it local_rag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published