Chat with any PDF with the power of LLM's while also changing document mid conversation and retaining conversation context to follow along in te same chat window
app.py
This has to be run to start the application
utils.py
This containts helper function for the main program app.py
Clone the project
git clone https://github.com/FreakQnZ/chatPDF.git
Go to the project directory
cd my-project
Install dependencies
pip install -r requirements.txt
Start the server
streamlit run app.py
If running this project on Ollama with locally downloaded LLM and Embeddings model no .env file is required
If HuggingFace is used we would need higging face token
HF_TOKEN=XXXXXXXXXXX
Additionally Langsmith for Tracing LLM calls would require
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="XXXXXXXXXXX"
LANGCHAIN_PROJECT="my-app"