Skip to content

shrivastavanolo/ChatBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

ChatBook

ChatBook is an application powered by LangChain and OpenAI, built using Streamlit, enabling users to interact with an LLM-powered chatbot. This bot is designed to handle various tasks related to text processing, PDF handling, image uploading, and question-answering.

Prerequisites

  • Python 3.7 or later
  • Streamlit
  • PyPDF2
  • LangChain
  • OpenAI's GPT-3.5
  • MongoDB
  • Pinecone
  • Additional libraries specified in the requirements.txt file

Installation

  1. Clone the repository:

    git clone https://github.com/your_username/ChattyPDF.git
    cd ChattyPDF
  2. Install dependencies:

    pip install -r requirements.txt

Setup

  1. Ensure you have the necessary API keys and configurations for the following services:

    • MongoDB: Replace st.secrets["mongo"] and configure MongoDB accordingly.
    • Pinecone: Replace st.secrets["pinecone"] and set up your Pinecone account.
  2. Run the application:

    streamlit run chatty_pdf.py

Usage

  • Upon running the Streamlit app, the sidebar offers different options:
    • Upload PDFs: Upload PDF files to process and store their content for querying.
    • Partially delete PDF: Remove specific content from a previously uploaded PDF.
    • Ask Question: Interact with the chatbot to get answers related to uploaded PDFs.
    • Upload Image: Add images along with titles and descriptions for retrieval.
    • Search Image: Find uploaded image via keywords.
    • Delete File: Remove stored data associated with uploaded PDFs or images.

Functionality Overview

  • Upload PDFs:
    • Upload one or multiple PDF files.
    • Extract text content from uploaded PDFs and store it in Pinecone index.
  • Partially delete PDF:
    • Delete specific content from a PDF stored in the index without affecting other information.
  • Ask Question:
    • Interact with the chatbot to ask questions about the uploaded PDFs.
  • Upload Image:
    • Upload images with titles and descriptions for retrieval.
  • Search Image:
    • Search via a keyword for any uploaded image.
  • Delete File:
    • Delete stored data associated with uploaded PDFs or images.

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages