ContextSearch Boosts Business-Aware Advertising Queries
A Volcano Engine case practice describes how ContextSearch gives a Query Agent access to business documents and code repositories through Agentic Search and a unified semantic context layer. The agent can retrieve business definitions, fields and calculation rules before generating SQL. In an internal comparison using 76 advertising-data questions, the team reported that enabling knowledge enhancement raised SQL business correctness from 36.8% to 98.7%. Reviewers manually checked the filtering conditions, statistical methods and execution results.
The practice shows how retrieving business rules from documents and code before generating SQL can help an agent produce queries that better follow business definitions, while allowing users to ask questions in business language without translating them into database fields.
广告业务查数最怕“SQL 能跑、结果不对”。比如“每天符合在投条件的广告计划里,实际花费最多的是哪一个?”
这是广告运营里很常见的一句查数需求。要答对这个问题,我们得先知道问题里没写出来的规则,如哪些计划算“在投”,实际花费要扣掉哪些费用,金额并列时取哪一条。这些规则很少完整写在数据库列名里,它们通常分散在业务文档、代码逻辑、配置约定和历史口径里。
火山引擎 ContextSearch 给负责查数的 Query Agent 补上了这层业务上下文,仅声明业务文档和代码库两项知识来源,查询分析效果就从 36.8% 提升到 98.7%。
ContextSearch 是 AI Agent 的智能搜索服务,在本实践中核心使用了以下能力: