Coder Social home page Coder Social logo

rag-pdf-chatbot's Introduction

RAG-PDF-CHATBOT

The RAG-PDF Chatbot leverages the power of modern language models and vector embeddings to provide accurate and contextually relevant responses to user queries. The system retrieves relevant information from PDFs and generates responses using a language model.

Features

  • Interactive User Interface: Built with Streamlit for ease of use.
  • Advanced Embeddings: Uses OllamaEmbeddings for generating vector embeddings.
  • Efficient Retrieval: Utilizes Pinecone for fast and accurate vector search.
  • Powerful Language Model: Employs ChatGroq's Inference API for generating responses.
  • Context Management: Maintains conversation context using ConversationBufferWindowMemory.

Demo Video

Check out the demo of the RAG-PDF Chatbot in action:

RAG_PDF-CHATBOT.mp4

Installation

To install and run the RAG-PDF Chatbot, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/sanketv010/RAG-PDF-CHATBOT.git
    cd RAG-PDF-CHATBOT
  2. Create and Activate a Virtual Environment:

    conda create -p environment_name python=3.10 - y
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Set Up Environment Variables: Create a .env file in the root directory of the project and add the following environment variables:

    PINECONE_API_KEY=your_pinecone_api_key
    GROQ_API_KEY=your_groq_api_key
    
  5. Run the Application:

    streamlit run app.py

Usage

  1. Open the web interface in your browser (usually at http://localhost:8000).
  2. Enter your query in the text input field.
  3. The chatbot will retrieve relevant information from the PDFs and generate a response based on the context.

Thank you for checking out the RAG-PDF Chatbot! If you have any questions or feedback, feel free to open an issue or reach out.

rag-pdf-chatbot's People

Contributors

sanketv010 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.