ragent-chatbot / README.md
shafiqul1357's picture
update readme file
cc8b7e8 verified
|
raw
history blame
2.31 kB
---
title: Ragent Chatbot
emoji: πŸ€–
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.36.2
app_file: app.py
pinned: false
license: mit
short_description: A Smart AI chatbot powered by RAG and AGENT
---
## πŸ’¬ Ragent Chatbot Preview
![App Preview](figure/thumbnail.png) <!-- Add your app preview image in 'figure/thumbnail.png' -->
# πŸ€– Ragent Chatbot
**Ragent Chatbot** is an intelligent **retrieval-augmented agent assistant** powered by LLMs. It combines the power of **RAG (Retrieval-Augmented Generation)** with **agent-based tool reasoning**, allowing it to dynamically respond using retrieved knowledge or external tools depending on the query.
## 🧠 What It Can Do
- Answer user questions by retrieving information from a custom document store
- You can upload any document and then ask the chatbot to retrieve answer of your question.
- Automatically decide when to use tools (like search, calculator, etc.)
- Combine multiple steps of reasoning using the ReAct agent pattern
## πŸ›  Features
- πŸ”Ž **Hybrid Search**: Combines vector similarity and BM25 keyword matching for relevant document retrieval
- πŸ€– **ReAct Agent**: Uses tool-based reasoning when knowledge retrieval is insufficient
- πŸ’¬ **Gradio Chat UI**: Simple and responsive chat interface
- 🧱 **Modular Tools**: Easily extendable with tools like web search, calculator, and custom APIs
## πŸ“¦ Stack
- **Frontend:** Gradio
- **Agent Framework:** LangChain (ReAct agent)
- **Vector DB:** Qdrant
- **LLM:** Gemini
- **Embedding Model:** BAAI/bge-large-en-v1.5
## πŸ” Example Queries
Try asking questions like:
1. **"What is LangChain and how is it different from LlamaIndex?"**
2. **"Who is the CEO of OpenAI and when was the company founded?"**
3. **"What is 245 * 92?"**
πŸ’‘ The chatbot decides whether to use RAG or call tools like calculator or web search automatically!
## πŸ”— GitHub Repository
You can explore the full source code, Docker setup, and implementation details on GitHub:
[πŸ‘‰ RAGent Chatbot](https://github.com/shafiqul-islam-sumon/ragent-chatbot)
## πŸš€ Try It Live
> Click **Open in Spaces** to launch the app
Or visit: [https://huggingface.co/spaces/shafiqul1357/rag-fashion-recommendation](https://huggingface.co/spaces/shafiqul1357/rag-fashion-recommendation)