8000 GitHub - Riddle909/PDFChatbot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Riddle909/PDFChatbot

Repository files navigation

PDFChatbot

PDFChatbot is a Python application designed to extract and provide relevant information from a set of documents using OpenAI's GPT models and Pinecone for vector similarity search. This project leverages embeddings to find the most relevant context for a given query and uses a chat-based completion model to generate answers with citations.

Features

  • Vector Similarity Search: Uses Pinecone to find relevant document sections based on query embeddings.
  • Chat-based Completion: Utilizes OpenAI's GPT models to generate answers from the extracted context.
  • Citations: Provides source citations for the generated answers.

Requirements

  • Python 3.7+
  • OpenAI Python SDK
  • Pinecone Python SDK
  • dotenv

Setup

  1. Clone the repository:

    git clone https://github.com/gayanMatch/PDFChatbot.git
    cd PDFChatbot
  2. Install dependencies:

    pip install -r requirements.txt
  3. Environment Variables: Create a .env file in the root directory and add your API keys and other configurations:

    OPENAI_API_KEY=your_openai_api_key
    PINECONE_API_KEY=your_pinecone_api_key
    PINECONE_INDEX_NAME=your_pinecone_index_name
    PINECONE_NAMESPACE=your_pinecone_namespace
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0