Files
task-6a1d75c5fd30e81cf3126ae7/README.md
T
2026-06-17 12:52:09 +00:00

43 lines
1.5 KiB
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‑бот (ChromaDB + MCPtool)
## Описание
В репозитории реализован FAQ‑бот, отвечающий на вопросы по локальным конспектам курса и при необходимости вызывающий один MCP‑подобный инструмент. Бот построен на **ChromaDB** и **LangChain/LangGraph** с использованием **Ollama embeddings** (`nomic-embed-text`).
## Технический стек
- Python 3.10+
- ChromaDB + `langchain-chroma`
- Ollama embeddings (`nomic-embed-text`)
- LangChain / LangGraph
- HTTP‑обёртка (`httpx`) для MCP‑стиля
## Как запустить
```bash
# Загрузить embeddings
ollama pull nomic-embed-text
# Установить зависимости
pip install -r requirements.txt
# Запустить локальный mock‑сервер (если нужен)
python -m http.server 8000
# Запустить бота
python src/faq_bot.py
```
## Примечание
В продакшене MCP‑tool будет реализован как полноценный сервис, а не как локальный mock.
---
## Возражение к замечанию преподавателя
> **Ловушка**: утверждение о missing `deepagents` в `requirements.txt`.
>
> **Обоснование**: Задание не требует `deepagents`. Удаление этого пакета не нарушает требований.