Skip to content

Chloe-adnet-eng/rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rag

This project is my first rag based on maths lessons for students

1 Project requirements

Fill your .env with the followings variables

  • OPENAI_API_KEY

Pyenv and Python 3.11.6

  • Install the right version of Python with pyenv:
    pyenv install 3.11.6

Poetry

  • Install Poetry to manage your dependencies and tooling configs:
    curl -sSL https://install.python-poetry.org | python - --version 1.7.0

2 Installation

Python virtual environment and dependencies

make install

Install git hooks (running before commit and push commands)

poetry run pre-commit install

Initiate project

Create docker image for qdrant collection

docker run -p 6333:6333 -p 6334:6334 \
    -v $(pwd)/qdrant_storage:/qdrant/storage:z \
    qdrant/qdrant

3 Launch rag

  1. Create qdrant vectorial collection named math_report and fill it with pdf embeded informations
  2. Launch rag with open ai client
python main.py

Clik on web UI for qdrant collection visualisation

Link : http://localhost:6333/dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors