Speak with Your Documents and books project allows you to ask a question to an LLM (GPT, CoHere, .. ). It retrieves the most relevant sections from your documents and combines them with the model’s knowledge to provide accurate answers based on your specific content (RAG).
- python 3.8 or later
- Download and install Anaconda from here
- Create a new environment using the following command:
$ conda create -n Speak-with-your-documents-and-books-app python=3.8
- activate the environment:
$ conda activate Speak-with-your-documents-and-books-app
export PS1="\[\033[01;32m\]\u@\h:\w\n\[\033[00m\]\$ "
$ pip install -r requirements.txt
$ cd src
$ cp .env.example .env
Set your environment in the .env
file. Like OPEN_API_KEY
value.
$ cd docker
$ cp .env.example .env
set .env
with your credentials
uvicorn main:app --reload