表格数据RAG工具

TabulaRAG是一个快速摄入表格数据的MCP RAG工具,支持单元格引用,适用于数据分析和AI集成场景。

  • by msamanthaf
  • 本地部署
  • 更新于
在 GitHub 查看 msamanthaf/TabulaRAG

使用说明

TabulaRAG

A fast-ingesting tabular data MCP RAG tool backed with cell citations.



快速启动(见下文)

  1. 构建和启动服务: ./scripts/dev-up.sh
  2. 验证后端: http://localhost:8000/health curl http://localhost:8000/health/deps
  3. 停止服务: ./scripts/dev-down.sh
  4. 流日志: ./scripts/dev-logs.sh 或 ./scripts/dev-logs.sh backend

服务:

  • 前端: localhost:5173
  • 后端: localhost:8000
  • Postgres: localhost:5433
  • 问题: localhost:6333

摄入(CSV/TSV)

上传表格以供摄入:

curl -F "file=@/path/to/data.csv" \
  -F "dataset_name=my_table" \
  -F "has_header=true" \
  -F "delimiter=," \
  http://localhost:8000/ingest

笔记:

  • 仅限UTF-8 CSV/TSV。
  • delimiter 支持 , 或选项卡。如果省略,则会自动检测。

通过外部工具连接

TabulaRAG公开了两个端点,用于与AI助手和工具运行器集成:

类型 URL
OpenAPI http://localhost:8000/openapi.json
MCP(流式HTTP) http://localhost:8000/mcp

注: 如果您的客户端在浏览器外运行(例如在Docker或桌面应用程序内),请替换 localhost 使用您机器的本地IP地址。跑 ipconfig (Windows)或 ifconfig (Mac/Linux)找到它。