Skip to content

m1981/chat-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

podman build -t chat-code-chroma .
podman run -ti -v ./:/usr/src/app localhost/chat-code-chroma /bin/bash

💬 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.0%
  • Python 21.9%
  • Dockerfile 1.1%