Skip to content

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

License

Notifications You must be signed in to change notification settings

edrickdch/chat-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daceflow AI logo

Elevate Your Project with Top-Tier AI/LLM Expertise! 🚀

Daceflow AI
Unlock Possibilities →
📧 Connect with us: [email protected]

💬 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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages