Skip to main content

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 chatbot-rag

Requirements

  • Python 3.12
  • Ollama (for local model hosting)

Quick Start

from chatbot_rag.chat import Chatbot 
from chatbot_rag.RAG import RAG

# Use a specific Ollama model
rag = RAG(path="./data/")
rag()
bot = Chatbot(name="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.5.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatbot_rag-0.1.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file chatbot_rag-0.1.5.tar.gz.

File metadata

  • Download URL: chatbot_rag-0.1.5.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

Hashes for chatbot_rag-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6e491a78434bcdcb7eba01bca7157ab9be83d623c66e5af922529f2250890389
MD5 3d8f6ff0755254a18f1656ff3ce3e50e
BLAKE2b-256 a3705c0f41f6b79d85bb89ca49005c403b8f0a686e7f275d565ae4d753f192d1

See more details on using hashes here.

File details

Details for the file chatbot_rag-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: chatbot_rag-0.1.5-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

Hashes for chatbot_rag-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7c24916f279235a6628bef2065a212a901fb89c07b4138acd98acc43e211cf
MD5 28cadf38825d1dd08a5ad32e12399381
BLAKE2b-256 6fea34daaf64c5b72a51cbddcc49bbf3881cdc8ab737319dc204b7119a3a29ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page