Recent discussions around agentic retrieval highlight a move away from the naïve practice of pointing a large language model at a data lake and hoping for accurate results. Instead, the recommended pattern is to expose a concise, markdown‑encoded map that defines searchable fields, ranking profiles, and tool behaviours – what Vespa calls an “agent‑ready schema”. For engineers, this matters because it can curb unnecessary token usage and avoid the latency penalties of generic queries.
Why Data Preparation Matters
Agents that lack explicit guidance often fall back to constructing broad queries, which the source describes as “a generic query, leading to slower response times and less pertinent information”. The cost of those extra tokens and the time spent waiting for less‑focused results can quickly outweigh the benefits of a more capable model. Providing a clear schema gives the agent the context it needs to formulate precise queries on the first attempt.
Designing an Agent‑Ready Schema
Vespa’s approach suggests delivering a markdown file that enumerates:
- Field names and data types that are searchable.
- Ranking profiles that influence result ordering.
- Any tool‑specific parameters required for multi‑threaded or contemporaneous searches.
By marking these elements, the agent can translate a high‑level request into a concrete search command without an intermediate translation model. The source notes that adding a “tailored model” as a translation step would increase latency and token consumption, so the schema‑first method avoids that extra layer.
Operational Considerations
Implementing the schema introduces a few operational questions:
- Version control: The markdown map should be versioned alongside the data source to keep agents in sync with schema changes.
- Latency monitoring: Since the schema eliminates an extra model call, teams should track response times to confirm the expected improvement.
- Token budgeting: With more precise queries, token usage should drop; monitoring token counts can validate the benefit.
- Platform suitability: The source encourages evaluating search or retrieval platforms for “agent workloads”. Teams need to assess whether their current search engine can ingest the markdown schema and expose the required ranking profiles.
Related CloudNinjas coverage: AI engineering.
What This Means For Practitioners
Practitioners should treat schema definition as a prerequisite to any production agentic workflow. Start by cataloguing searchable fields and ranking logic in a markdown file, integrate it into the deployment pipeline, and measure latency and token consumption before and after. If the existing search platform cannot consume the schema, consider alternatives that explicitly support agent‑centric retrieval. Continuous monitoring of query performance will reveal whether the schema is delivering the expected efficiency gains.

