MCPcopy Index your code
hub / github.com/datvodinh/rag-chatbot

github.com/datvodinh/rag-chatbot @v0.1.13

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.13 ↗ · + Follow
118 symbols 412 edges 31 files 2 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🤖 Chat with multiple PDFs locally

alt text

📖 Table of Contents

⭐️ Key Features

  • Easy to run on Local or Kaggle (new)
  • Using any model from Huggingface and Ollama
  • Process multiple PDF inputs.
  • Chat with multiples languages (Coming soon).
  • Simple UI with Gradio.

💡 Idea (Experiment)

💻 Setup

1. Kaggle (Recommended)

2. Local

2.1. Clone project

git clone https://github.com/datvodinh/rag-chatbot.git
cd rag-chatbot

2.2 Install

2.2.1 Docker

docker compose up --build

2.2.2 Using script (Ollama, Ngrok, python package)

source ./scripts/install_extra.sh

2.2.3 Install manually

1. Ollama
curl -fsSL https://ollama.com/install.sh | sh
2. Ngrok
  • Macos
brew install ngrok/ngrok/ngrok
  • Linux
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc \
| sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null \
&& echo "deb https://ngrok-agent.s3.amazonaws.com buster main" \
| sudo tee /etc/apt/sources.list.d/ngrok.list \
&& sudo apt update \
&& sudo apt install ngrok
3. Install rag_chatbot Package
source ./scripts/install.sh

2.3 Run

source ./scripts/run.sh

or

python -m rag_chatbot --host localhost
  • Using Ngrok
source ./scripts/run.sh --ngrok

3. Go to: http://0.0.0.0:7860/ or Ngrok link after setup completed

🎯 Todo

  • [x] Add evaluation.
  • [x] Better Document Processing.
  • [ ] Support better Embedding Model for Vietnamese and other languages.
  • [ ] ReAct Agent.
  • [ ] Document mangement (Qrdant, MongoDB,...)

🌟 Star History

Star History Chart

Core symbols most depended-on inside this repo

set
called by 9
rag_chatbot/core/model/model.py
set_system_prompt
called by 3
rag_chatbot/pipeline.py
set_chat_mode
called by 3
rag_chatbot/pipeline.py
get_system_prompt
called by 3
rag_chatbot/core/prompt/qa_prompt.py
pull
called by 3
rag_chatbot/core/model/model.py
store_nodes
called by 3
rag_chatbot/core/ingestion/ingestion.py
reset
called by 3
rag_chatbot/core/ingestion/ingestion.py
_process_generator_result
called by 3
rag_chatbot/eval/__main__.py

Shape

Method 85
Class 19
Function 14

Languages

Python100%

Modules by API surface

rag_chatbot/ui/ui.py26 symbols
rag_chatbot/pipeline.py23 symbols
rag_chatbot/core/engine/retriever.py10 symbols
rag_chatbot/eval/__main__.py9 symbols
rag_chatbot/core/ingestion/ingestion.py8 symbols
rag_chatbot/logger.py7 symbols
rag_chatbot/ollama.py6 symbols
rag_chatbot/setting/setting.py5 symbols
rag_chatbot/core/model/model.py5 symbols
rag_chatbot/eval/qa_generator.py4 symbols
rag_chatbot/core/embedding/embedding.py4 symbols
rag_chatbot/core/vector_store/vector_store.py3 symbols

For agents

$ claude mcp add rag-chatbot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page