Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiritoind/rag_over_llm_for_pdf_chatbot_free
Retrieval-Augmented Generation on PDF for Free, Integrated with Memory to recall previous interactions, it operates as a sophisticated lang-chain application.
https://github.com/kiritoind/rag_over_llm_for_pdf_chatbot_free
flask flask-application huggingface langchain llm mistral-ai python rag
Last synced: 6 days ago
JSON representation
Retrieval-Augmented Generation on PDF for Free, Integrated with Memory to recall previous interactions, it operates as a sophisticated lang-chain application.
- Host: GitHub
- URL: https://github.com/kiritoind/rag_over_llm_for_pdf_chatbot_free
- Owner: kiritoInd
- License: mit
- Created: 2024-07-01T17:20:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T13:39:17.000Z (4 months ago)
- Last Synced: 2024-07-28T14:49:51.887Z (4 months ago)
- Topics: flask, flask-application, huggingface, langchain, llm, mistral-ai, python, rag
- Language: Python
- Homepage:
- Size: 424 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Retrieval-Augmented Generation with LLM's and Flask on PDF
## Preview
## Overview
This project demonstrates Retrieval-Augmented Generation using Mistral AI and Flask. It integrates Flask for the user interface, requests for handling data, and Mistral AI for LangChain with LLM (Large Language Model).
## Requirements
To run the application, please ensure you have all the required dependencies installed. You can install them using the provided `requirements.txt` file.
You will also need a hugging face token which you can easliy find on your huggingface profile
### Installation
1. Clone the repository:
```sh
git clone https://github.com/kiritoInd/RAG_over_LLM_for_pdf_ChatBot.git
cd ChatBot-With-LangChain
```2. Install the required packages:
```sh
pip install -r requirements.txt
```3. Enter your Hugging Face Token
## Running the Application
To start the Flask server, run the `app.py` file:
```sh
python app.py
```## Project structure
```
RAG_On_PDF_ChatBot/
├── app.py
├── requirements.txt
├── env.example
├── templates/
│ └── index.html
└── static/
└── styles.css
```- **app.py**: The main Flask application.
- **requirements.txt**: Contains the list of dependencies.
- **templates/index.html**: The HTML template for the chatbot interface.
- **static/styles.css**: The CSS file for styling the chatbot interface.## Usage
1. Open your web browser and navigate to [http://127.0.0.1:5000/](http://127.0.0.1:5000/).
2. Upload your Pdf file
3. Enter your query in the input box and submit.
4. The chatbot will process your query and display the results.
5. You can ask follow up quetion## Contributing
If you want to contribute to this project, feel free to fork the repository and submit a pull request.
## License
This project is licensed under the MIT License.