Skip to content

An AI chatbot that allows users to upload PDFs and chat based on their content, powered by GPT-4, ChromaDB, and Streamlit, with secure login and registration.

Notifications You must be signed in to change notification settings

huihui68/AI-Chat-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AI PDF Chatbot with GPT-4 and ChromaDB

An interactive chatbot built with Streamlit, GPT-4 API, and ChromaDB, allowing users to upload PDF documents, extract content, and engage in contextual conversations. Includes user authentication with login and registration functionality.

Features

  • Upload and Chat: Upload PDFs and ask questions based on the document's content.
  • Advanced AI Models: Powered by GPT-4 for intelligent and contextual responses.
  • Vector Database: Efficient document retrieval using ChromaDB.
  • Authentication: Secure login and registration for personalized usage.

Requirements

Install dependencies using the provided requirements.txt:

pip install -r requirements.txt

Setup

Add Your OpenAI API Key

  1. Create a .env file in the project root directory.
  2. Add your OpenAI API key in the following format:
   OPENAI_API_KEY=your_openai_api_key

Run Streamlit App

  1. Open your terminal and run the following command:
streamlit run app.py
  1. Open the browser to navigate to http://localhost:8501 to use the chatbot.

About

An AI chatbot that allows users to upload PDFs and chat based on their content, powered by GPT-4, ChromaDB, and Streamlit, with secure login and registration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%