租车聊天机器人 – LLM & MCP演示
该项目演示了一个小型聊天机器人应用程序,用于在租车场景中自动化客户沟通。它集成了 大型语言模型(Mistral) 随着 MCP工具 并且使用完全集装箱化 码头工人.
______________________________________________________________________
特性
- LLM集成: 使用Mistral以自然语言解释用户请求。
- MCP工具: 提供三种租车操作工具:
1. search_cars –按位置和日期搜索可用汽车 1. get_car_details –检索特定汽车的详细信息 1. book_car –为客户预订汽车
- 互动提示: 自动向用户请求缺少必填字段。
- 码头化: 只需一个工具即可轻松部署
docker-compose命令。
______________________________________________________________________
需求
- Docker&Docker编写
- 用于LLM集成的MISTRAL_API_KEY环境变量
______________________________________________________________________
设置和运行
- 克隆存储库
git clone https://github.com/m-ia19/mietwagen-chatbot.git
cd mietwagen-chatbot
2. **Set Mistral API key**
touch .env
nano .env
MISTRAL_API_KEY="your_api_key_here"
3. **Build Docker image**
docker build -t rental-car-app:latest .
4. **Run the client container**
docker compose run --rm client
- This connects automatically to the server container.
- Interact with the bot in the terminal.