Skip to content

A lightweight Retrieval-Augmented Generation (RAG) framework leveraging FAISS, LangChain, and Google Generative AI for document-based question answering and contextual assistance."

License

Notifications You must be signed in to change notification settings

YaSh88991/RAG_Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

RAG-Assistant

Description

A lightweight Retrieval-Augmented Generation (RAG) framework leveraging FAISS, LangChain, and Google Generative AI for document-based question answering and contextual assistance.

Features

  • Document Retrieval: Efficiently retrieves relevant documents using FAISS.
  • Text Chunking: Splits large documents into manageable chunks for better processing.
  • Generative AI Integration: Uses Google Gemini for embedding generation and answering queries.
  • State Graph: Implements a state graph for structured application flow.
  • LangGraph Integration: Utilizes LangGraph to define and manage the application's state graph, ensuring a clear and logical workflow.

Requirements

  • Python 3.8 or higher
  • A valid Google Gemini API key

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd RAG_proj
  2. Create a virtual environment:

    python -m venv venv
    venv\Scripts\activate
  3. Install dependencies:

    Install all the dependencies using pip-install
  4. Add your Google Gemini API key to a .env file:

    GOOGLE_API_KEY=<your-api-key>
    

Usage

Run the rag_basic.ipynb notebook to test the framework. The notebook demonstrates:

  • Document loading and chunking.
  • Retrieval and generation steps.
  • Query answering using the state graph.

License

This project is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Acknowledgments

Author

Yash Verma

About

A lightweight Retrieval-Augmented Generation (RAG) framework leveraging FAISS, LangChain, and Google Generative AI for document-based question answering and contextual assistance."

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published