Meridian 文档咨询
meridian-doc-consultant
通过在 developers.google.com/meridian 上查找并查阅相关文档,帮助用户解答有关 Meridian Marketing Mix Modeling(营销组合建模)和 Meridian GeoX 地理实验的概念、参数和最佳实践问题。当用户询问 Meridian MMM 或 GeoX 主题的解释或指导时使用。不用于直接编写代码或运行模型。
- License 许可
- Apache-2.0
- 所属仓库
- google/meridian
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 312
01 前言 Front Matter
- name
- meridian-doc-consultant
- description
- Assists users with questions about Meridian Marketing Mix Modeling and Meridian GeoX geo-experiment concepts, parameters, and best practices by finding and consulting the relevant documentation on developers.google.com/meridian. Use when the user asks for explanations or guidance on Meridian MMM or GeoX topics. Don't use for writing code or running models directly.
02 资源文件 1
- 参考文档references/documentation_map.md69.8 KB
03 SKILL.md 正文
Meridian Documentation Consultant
This skill guides the agent in finding and consulting the right page of the official Meridian documentation to answer user questions token-efficiently.
The documentation is published at https://developers.google.com/meridian/. It
covers both Meridian MMM (/meridian/docs/...) and Meridian GeoX geo
experiments (/meridian/geox/...). It is not included in the Meridian
GitHub repository or the google-meridian Python package, so do not look for
documentation files on disk.
Core Workflow
When the user asks a conceptual or procedural question about Meridian, follow these steps:
1. Identify the Topic
- Analyze the user's question to identify the core topic (e.g., "knots", "priors", "data format").
2. Locate Candidate Pages (RAG-style Retrieval)
- Consult the Documentation Map and use its summaries to identify a batch of potentially relevant pages (e.g., 3-5 pages) related to the user's query.
- Direct Term Search: If the user asks about specific technical terms
(e.g.,
eta_m,xi_c,knots), search the Documentation Map for these terms and then search the text of the candidate pages you fetch in step 3, EVEN IF a page in the Documentation Map seems to cover the topic. If the map has no match, you may use web search restricted todevelopers.google.com/meridianto find candidate pages. - Concept Intersection: If the query involves multiple concepts (e.g., "priors" + "insufficient data"), look for pages that discuss these concepts together.
- CRITICAL: Do NOT fetch pages one by one to discover the right one, as fetching unrelated pages wastes tokens and latency. Rely on the map's summaries to identify candidates.
3. Fetch and Read Candidates
- From the candidate list, select the Top N (e.g., 3) most promising pages to read.
- Fetch the Markdown version of each page by appending
.md.txtto its URL. For example, the pagehttps://developers.google.com/meridian/docs/pre-modeling/amount-data-neededis available as plain Markdown athttps://developers.google.com/meridian/docs/pre-modeling/amount-data-needed.md.txt. Use your URL-fetching tool, orcurl -sL <url>.md.txtif you only have a shell. The regular HTML page is mostly site layout, so prefer the.md.txtversion. - For large pages, search the fetched text for specific keywords to locate the relevant section instead of reading everything.
- Broaden Search Terms: If a specific keyword search fails (e.g., "maximum channels"), try searching for broader related concepts (e.g., "channels") to find the relevant section.
- Searching Recommendations: When looking for recommendations, search for keywords like "recommend", "best practice", or "should" combined with the topic keyword.
- Handling Fuzzy Matches on Limits: If the user asks for a "maximum" and the docs say "below X", provide that value.
- Prefer Documentation over Code: Prioritize the documentation pages over source code files for conceptual questions.
- No Web Access: If you cannot fetch the pages, tell the user that this
skill needs access to
developers.google.com/meridian, give them the page URLs from the Documentation Map to read, and do not present unverified details as documented guidance.
4. Synthesize and Answer
- Multi-Document Synthesis: The answer does not have to depend on a single page. Synthesize the answer from multiple candidate pages if they provide complementary information.
- Grounding Constraint: Do not answer with specific numbers or recommendations from your general knowledge or from search-result snippets if they are not present in a page you fetched and read.
- Cite the Source: In your final response, you MUST cite the full page
URL(s) (e.g.,
https://developers.google.com/meridian/docs/pre-modeling/amount-data-needed) of all documentation you consulted. Only cite pages you actually fetched and read. Do not cite local file paths such asdocs/...md; they do not exist for Meridian users. Ensure you cite the specific page that provided the answer to the specific condition.
04 同仓库更多 Skills
Meridian 场景规划数据生成
meridian-scenario-planner
从拟合好的 Meridian 模型生成场景规划器数据,并通过 Colab 交接导出以用于创建 Looker Studio 仪表板。适用于用户想要从已保存的模型生成场景规划数据、预算网格或 Looker Studio 仪表板的场景。不用于可视化模型结果(请使用 meridian-result-visualization)或运行标准预算优化(请使用 meridian-budget-optimization)。
Meridian 模型结果可视化
meridian-result-visualization
加载拟合好的 Meridian 模型并生成标准可视化报告:模型结果摘要。适用于用户想要加载已保存的模型并查看结果(模型性能、拟合度、健康状况)的场景。不用于运行预算优化(请使用 meridian-budget-optimization)或构建/拟合模型(请使用 meridian-model-building)。
Meridian MMM 模型构建
meridian-model-building
指导用户构建 Meridian 营销组合建模(MMM)模型。适用于用户想要加载数据、映射列、配置 ModelSpec、运行探索性数据分析(EDA)、拟合模型并保存模型的场景。不用于结果可视化或创建场景规划器。
Meridian 营销预算优化
meridian-budget-optimization
加载已拟合的 Meridian 模型并运行预算优化场景。适用于用户想要加载已保存的模型,寻找最优预算分配或目标 ROI 支出。不用于模型性能可视化(使用 meridian-result-visualization)或构建/拟合模型(使用 meridian-model-building)。