Muse is a local-life route-planning system for turning a natural-language outing request into an executable, explainable, and editable city route.
It is designed for requests such as:
- "Plan a relaxed half-day date route with coffee and night views."
- "Give me a family-friendly rainy-day route with low walking pressure."
- "Keep the current route, but make it cheaper and less crowded."
Muse is not a free-form chat agent that improvises an itinerary from one large prompt. The project is built as a controlled planning workflow:
user query
-> intent understanding
-> RouteCoordinator / ExecutionPlan
-> optional memory/context projection
-> POI retrieval / filtering / rerank
-> candidate building and route planning
-> bounded map / heat / UGC tools
-> validation / workflow guard / repair
-> explanation and workflow trace
LLM usage is intentionally narrow:
- language understanding
- clarification when the request is ambiguous
- bounded repair assistance
- final explanation phrasing
Planning, constraints, ranking, route assembly, and most debugging signals stay deterministic and observable in backend services.
- Structured intent parsing for city, party, pace, budget, categories, and avoid rules
- Controlled orchestration through
RouteCoordinatorand a bounded execution DAG - Hybrid POI retrieval with category/text/BM25/vector lanes
- Ranking with query-alignment-aware scoring
- Route planning with validation, patch-based repair, and workflow guardrails
- Compact tool observations for memory, map distance, heat, and UGC signals
- Response traces for eval, debugging, and future route-workspace UI
backend/: FastAPI route-planning backendlib/: Flutter client and route workspace UIdocs/: architecture notes, setup guides, and current system specs
Recommended reading order:
- backend/README.md
- backend/services/README.md
- docs/specs/CURRENT_SYSTEM.md
- docs/specs/INTENT_UNDERSTANDING_SPEC.md
- docs/architecture/AGENT_COORDINATOR_SPEC.md
Backend:
cd G:\MeituanAgent\backend
python -m pip install -r requirements.txt
python main.pyFrontend:
cd G:\MeituanAgent
flutter pub get
flutter run -d windowsMore setup and command examples:
cd G:\MeituanAgent\backend
python -m eval.eval_runnerThe regression suite covers intent parsing, route modification, workflow trace, memory behavior, route persistence, quality constraints, tool scheduling, failure boundaries, and intent repair.
The current codebase is moving toward a schema-driven planning system rather than a prompt-heavy prototype. The important boundaries are:
- intent understanding and execution do not share one flat schema
- tools are bounded, auditable, and fallback-aware
- retrieval is hybrid but still dependency-light by default
- route planning remains workflow-constrained rather than open-ended ReAct
If docs disagree with code, trust this order:
- current code
- offline evals
- backend docs
- older reports or archived notes