ChatBot with Retrieval Augmented Generation
Project description
ChatBot-RAG
A powerful chatbot implementation using Retrieval Augmented Generation (RAG) to provide context-aware responses based on your data.
Features
- 🔍 Retrieval Augmented Generation: Enhances LLM responses with relevant context from your data
- 🧠 Ollama Support: Run models locally with Ollama for privacy and customization
- 🔗 LangChain Integration: Built on the powerful LangChain framework for advanced chains and pipelines
Installation
pip install chat-rag
Requirements
- Python 3.12
- Ollama (for local model hosting)
Quick Start
from chat_rag import ChatBot, RAG
# Use a specific Ollama model
rag = RAG(path="./data/")
rag()
bot = ChatBot(model="llama3")
# Query with specific parameters
question = "Summarize my recent research on climate change"
context = rag._search_context(question,k=5)
response = bot(context,question)
print(response)
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chatbot_rag-0.1.4.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatbot_rag-0.1.4.tar.gz.
File metadata
- Download URL: chatbot_rag-0.1.4.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64aba630c7281506d90cae5a63a9afddcf1544471a78b57f60557a3870073fea
|
|
| MD5 |
e8580fa3dd4bcafd2ef2cca378af47e3
|
|
| BLAKE2b-256 |
d39b13831cd37df4b9119d8adff3ba5f334f542f25dda26f3934922907cc91b9
|
File details
Details for the file chatbot_rag-0.1.4-py3-none-any.whl.
File metadata
- Download URL: chatbot_rag-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ad071458e157e5ce0b21a834d222f5dd438934ce40880a1856edf7191d1746c
|
|
| MD5 |
235b889a6d2f7981b2c14f0695e7707b
|
|
| BLAKE2b-256 |
86393aedeb7a6b5087c0c9c63f8e23ddb614675af84e3cc7ac49ecd93601ebd5
|