Skip to content

A Langchain app developed to chat with Multiple PDFs

License

Notifications You must be signed in to change notification settings

Rajendran2201/CogniChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CogniChat

Streamlit PDF Chatbot

A Langchain app developed to chat with Multiple PDFs

This is a Streamlit application that allows users to upload multiple PDF documents and interactively chat about the content of those documents using a conversational AI model. The chatbot is designed to process PDF files, extract text from them, and generate embeddings for the text chunks using Hugging Face models. Users can ask questions about the uploaded documents, and the chatbot will provide responses based on the document content.

Installation

  1. Clone the repository:

    git clone  https://github.com/Rajendran2201/CogniChat
  2. Navigate to the project directory:

    cd CogniChat
  3. Install dependencies:

    pip install -r requirements.txt

Usage

To run the Streamlit application, execute the following command:

streamlit run app.py

This will start the Streamlit server locally, and you can access the application in your web browser by navigating to the provided URL.

Features

  • Upload multiple PDF documents.
  • Process the uploaded documents to extract text.
  • Generate embeddings for the text chunks using Hugging Face models.
  • Interact with a conversational AI model to ask questions about the document content.
  • View chat history and responses in real-time.

Dependencies

  • Streamlit: For building interactive web applications.
  • PyPDF2: For reading PDF files and extracting text.
  • langchain: For text processing and embedding generation.
  • Hugging Face Transformers: For accessing pre-trained language models.
  • dotenv: For loading environment variables from a .env file.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them to your branch.
  4. Push your changes to your fork.
  5. Submit a pull request with a description of your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

Acknowledgments

Demonstration

Screenshot 2024-03-23 at 21 09 53 Screenshot 2024-03-23 at 21 10 36 Screenshot 2024-04-16 at 01 18 34 Screenshot 2024-04-21 at 01 23 02 Screenshot 2024-04-21 at 01 22 07 Screenshot 2024-04-21 at 01 21 16

About

A Langchain app developed to chat with Multiple PDFs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages