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

42 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
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 + MCP Tool
## Overview
This repository contains a simple FAQ bot that answers questions about course materials using a local Chroma vector store and, when needed, calls a mock MCPstyle tool that returns course metadata.
The bot is built with **LangGraph** and **LangChain** and uses **Ollama** embeddings (`nomic-embed-text`).
## Prerequisites
* Python 3.10+
* Ollama server 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
```
You will be prompted to enter a question. The bot will decide whether to answer from the FAQ documents (Chroma) or to call the mock MCP tool.
## FAQ Files
The `data/` directory contains three example Markdown files that are loaded into the vector store.
## MCPstyle Tool
The tool `fetch_course_meta` simulates an external MCP call by reading a local `course_meta.json` file. In a real deployment this would be an HTTP request to an MCP server.
## License
MIT