whoissqr / chat-pdf

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’¬ 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.

Note: For Windows users, you might need to delete the Pipfile.lock before proceeding with the installation.

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/

About

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

License:MIT License


Languages

Language:Python 100.0%