Skip to content

arun2728/PdfChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

PDFChat: Chat with Any PDF

About The Project

PDFChat is a simple application developed by leveraging the capability of LLM (chatgpt) to generate humanlike text, answer questions based on context.

Steps followed:

DataBase Creation

  • Read and extract the content of the given pdf file
  • Get emebddings of the given file using OpenAI Ada model and store them in Chroma base.

Inference

  • For the user query get user embeddings using Ada
  • Perform doc search to extract top 3 paragraphs which are semantically similar to the query
  • Pass the extracted docs as Context and user query to ChatGPT to formulate the answer.

Built With

This section should list any major frameworks/libraries used to bootstrap the project.

ChatGPT Python

Getting Started

To run the application you need the following pre-requisites

Prerequisites

  • Docker installed on your system. You can follow the instructions here to download it for your system.
  • OpenAI API Key. You can get it from here. Add your API key to .env file.

Installation

Run the below commands for installation

  1. Build Docker Image
docker build --tag PDFChat --file Dockerfile .
  1. Run the Docker Image
docker run -it --env-file .env --name gpt-gateway gpt-gateway

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published