Files
task-6a1d75c5fd30e81cf3126ae7/README.md
T
2026-06-05 11:24:08 +00:00

42 lines
1021 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FAQ Bot ChromaDB + MCPtool
## What it does
* Loads a small set of markdown FAQ files into a local Chroma vector store.
* Provides a single MCPstyle tool `fetch_course_meta` that returns course metadata from a static JSON file.
* Uses a LangGraph React agent that routes a user question either to the vector store (Chroma) or to the MCP tool based on simple keyword detection.
* Interactive CLI with three example questions and a freeform mode.
## Prerequisites
* Python3.10+
* Ollama running locally with the `nomic-embed-text` model:
```bash
ollama pull nomic-embed-text
```
## Installation
```bash
pip install -r requirements.txt
```
## Running the bot
```bash
python main.py
```
The script will:
1. Load `data/*.md` into Chroma.
2. Build the agent.
3. Run three sample questions.
4. Enter an interactive prompt.
## Files
* `main.py` entry point.
* `data/*.md` FAQ documents.
* `mock_meta.json` static metadata used by the MCP tool.
* `requirements.txt` dependencies.