Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 1.84 KB

README.md

File metadata and controls

84 lines (54 loc) · 1.84 KB

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/