Token导航 LogoToken导航TokenDH.com
Ecommerce Retail Rag MCP logo
搜索检索未说明官方级别未说明来源级核验

Ecommerce Retail Rag MCP

MCP Server

一个基于Google ADK、Gemma3:270m、Ollama和ChromaDB的低延迟、生产就绪的零售RAG系统,用于产品搜索、库存检查、政策问答和分析查询。

工具数

4

提示词数

0

GitHub Stars

0

资源数

0
Python生产就绪搜索

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

abh1hi

提供方

abh1hi

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

E-commerce & Retail RAG with ADK + Gemma3:270m + Ollama + ChromaDB + MCP

A production-ready blueprint for building a low-latency, grounded RAG system for retail using:

  • Google ADK (Agent Development Kit) for orchestration (agents, tools, workflows, evaluation)
  • Gemma3:270m served via Ollama for generation (32K context, lightweight)
  • ChromaDB for vector search with metadata filtering
  • FastAPI MCP server exposing retail tools (product_search, inventory_check, policy_qa, analytics_query)

Architecture at a Glance

  • ADK agent orchestrates: preprocess → retrieve (VectorSearchTool) → augment → generate (GenerateTool)
  • Vector retrieval via ChromaDB; strict grounding in generation prompts
  • MCP servers back tools for catalog/inventory/policy/analytics; host-enforced consent, schemas, RBAC

Quickstart

Option A: Docker Compose

docker compose up --build

Services:

  • Ollama (pulls gemma3:270m on first run)
  • ChromaDB (vector DB)
  • FastAPI MCP server (http://localhost:8000)

Option B: Python venv

bash scripts/setup_venv.sh
# in three terminals (or use dev_up_local.sh)
ollama serve & && ollama pull gemma3:270m
chroma start --host 0.0.0.0 --port 8001 &
uvicorn src.mcp_server.main:app --host 0.0.0.0 --port 8000 --reload

Run checks:

bash scripts/checks.sh

Documentation Index

  • Developer Guide: docs/developer-guide.md
  • Developer Help Guide: docs/developer-help.md
  • Testing Strategy: docs/testing-strategy.md
  • ADK Integration: docs/adk-integration.md
  • Comparison Tables: docs/comparison-tables.md
  • Diagrams (Index): docs/diagrams/README.md

- Data Flow: docs/diagrams/01_data_flow_diagram.md - MCP Architecture: docs/diagrams/02_mcp_architecture.md - ChromaDB Schema: docs/diagrams/03_chromadb_schema.md - Deployment: docs/diagrams/04_deployment_architecture.md - Gemma Optimization: docs/diagrams/05_gemma_optimization.md - Customer Journeys: docs/diagrams/06_customer_journeys.md

Repo Layout

configs/           # env templates, config files
scripts/           # dev scripts (venv, compose, checks)
src/
  mcp_server/      # FastAPI MCP server
  rag/             # vector store adapter
  embeddings/      # ollama client (generate, TODO: embed_text)
agents/
  tools/           # ADK tools (vector search, generate, MCP wrappers)
  eval/            # ADK evaluation cases
  rag_agent.py     # Sequential RAG agent
  workflows.py     # example workflows
docs/
  diagrams/        # mermaid diagrams

Next Steps

  • Implement embed_text in src/embeddings/ollama_client.py (use Ollama embeddings if available; otherwise a sentence-embedder)
  • Ingest catalogs/policies/reviews into Chroma (field-aware chunks)
  • Flesh out MCP tools and schemas; enforce RBAC/rate limits
  • Add reranker and evaluation harness (recall@k, groundedness)
  • Wire metrics/logging/tracing, then stage and load-test

目录标签

目录标签

Python生产就绪搜索零售RAG本地部署向量搜索生成模型低延迟

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP