/chat-with-pdfs-demo

Demo of LangChain and OpenAI models to create a chat with pdfs app

Primary LanguageJupyter NotebookMIT LicenseMIT

chat-with-pdfs-demo

Demo of chat with pdfs app using LangChain and OpenAI models

Run script

  1. Create a file config.py (see config_template.py for an example) and add your OpenAI API key
  2. Install dependencies: pip install -r requirements.txt
  3. Run the app: python chat_with_pdfs.py

Run Jupyter notebook

  1. Open the LangChain Chat Example.ipynb notebook
  2. Add your OpenAI API key where it says "YOUR_API_KEY"
  3. Run the notebook