An open API service indexing awesome lists of open source software.

https://github.com/raffcodes/ask_pdf

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.
https://github.com/raffcodes/ask_pdf

chatopenai langchain llm openai-api pypdf2 python streamlit

Last synced: 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

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)