/chat-pdf

This tutorial goes over the architecture and concepts used for easily chatting with your PDF using LangChain, ChromaDB and OpenAI's API

Primary LanguagePython

💬 Chat with your PDF

👷️ Architecture

Link: https://youtu.be/FuqdVNB_8c0

This tutorial goes over the architecture and concepts used for easily chatting with your PDF using LangChain, ChromaDB and OpenAI's API.

💻 Getting Started

Prerequisites

You will need Python and Pipenv

Installation

  1. Clone the repository:
git clone https://github.com/edrickdch/chat-pdf
  1. Navigate to the project directory:
cd chat-pdf
  1. Install the required dependencies using Pipenv:
pipenv install
  1. Activate the Pipenv shell:
pipenv shell
  1. Create a .env file with your OpenAI API key (Replace with your key):
cat 'OPENAI_API_KEY="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX"' >  .env
  1. Run the ingestion:
python src/ingest.py
  1. Run the conversation:
python src/single-pdf.py

🔗 Useful Links

💌 Newsletter

👇 Subscribe to the newsletter if you're interested in building more AI applications

https://practical-ai-builder.beehiiv.com/