Talk with your pdfs
pip install langchain pypdf2 python-dotenv streamlit tiktoken faiss-cpu
or simply use the requirements.txt file as such:
pip install -r requirements
Use '.env.example' to create your .env file with your own OPENAI_API_KEY
OpenAI: https://platform.openai.com/account/api-keys
To use the application, run the main.py file with the streamlit CLI (after having installed streamlit):
streamlit run main.py
https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai
The semantic search is done by facebook ai's FAISS (Facebook AI Similarity Search)