Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sanskaryo/langchain_chat


https://github.com/sanskaryo/langchain_chat

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Document Q/A using gemini and groq- gen ai project

LangChain Chat is a sophisticated application that leverages advanced Generative AI models, including Google's Gemini and Groq's open-source model, to provide accurate answers to questions based on document content. This project demonstrates the power of AI in document processing and information retrieval.

## Features

- **Document Ingestion**: Efficiently load and process PDF documents.
- **Advanced Embeddings**: Utilize Google's Gemini for high-quality vector embeddings.
- **Efficient Retrieval**: Implement FAISS for fast and accurate vector search.
- **Interactive Q&A**: Seamlessly ask questions and get context-aware answers.
- **User-Friendly Interface**: Built with Streamlit for an intuitive user experience.

## Installation

### Prerequisites

- Python 3.8 or higher
- pip (Python package installer)

### Steps

1. **Clone the Repository**:

sh
git clone https://github.com/sanskaryo/langChain_chat.git
cd langChain_chat

2. **Set Up a Virtual Environment**:

sh
python -m venv .venv
source .venv/bin/activate # On Windows, use .venv\Scripts\activate

3. **Install Dependencies**:

sh
pip install -r requirements.txt

4. **Configure Environment Variables**:
Create a `.env` file in the project root directory and add your API keys:

plaintext
groq_api=YOUR_GROQ_API_KEY
google_api_key=YOUR_GOOGLE_API_KEY

## Usage

To run the application, use the following command:
sh
streamlit run app.py

## Contributing

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

## Credits

Inspired by Krishna Naik Sir.

## Author

Made by Sanskar Khandelwal with ❤️

## License

This project is licensed under the MIT License.
This README provides a comprehensive overview of the project, installation steps, usage instructions, contribution guidelines, and licensing information.