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 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.3.tar.gz (6.1 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.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatbot_rag-0.1.3.tar.gz
  • Upload date:
  • Size: 6.1 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.3.tar.gz
Algorithm Hash digest
SHA256 3408644ec9551214be7130dcb89f832e2a3d9c2018cde1013ef5f494893b28a6
MD5 f16ed347f1346527f1ff3077f00c00c4
BLAKE2b-256 712eb0ab94c8a1d93dc857cabec4005d57b8505cabbdebfaa2db7bb4b32e6edc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatbot_rag-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 47b451ff66090056af194a69cfb13e81f0e752c782277bb8a7127f1512e582d6
MD5 d4e54f277da37211fb3ed75773c5397a
BLAKE2b-256 b5ddb1658a0bec2a643a055afe7ef00ab8c2b2b10b9f2c022a709bcf6657b04e

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