Skip to content

Simple app where you can ask question to your imported PDFs. Chain: PDF->text->chuncks->embeddings->semantic search->question and relevant text chunks are sent to an LLM->answer.

Notifications You must be signed in to change notification settings

raffcodes/ask_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

To run it on you machine, you need following steps:

  1. Create an OpenAI API Key and save it to your environment variable as OPENAI_API_KEY = ""
  2. Create an environment variable with your choosen login credentials, ASK_PDF_CREDENTIALS=":". On windows, open cmd as an admin and type: setx ASK_PDF_CREDENTIALS ":". Restart the machine and check on cmd with echo %ASK_PDF_CREDENTIALS%
  3. Create a new virtual environment for this project and activate it
  4. pip install -r requirements.txt
  5. To run the app: streamlit run app.py (not: python app.py)

About

Simple app where you can ask question to your imported PDFs. Chain: PDF->text->chuncks->embeddings->semantic search->question and relevant text chunks are sent to an LLM->answer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages