Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent workflows

Query large datasets safely from a realtime voice agent

Design data-heavy function calls for a Realtime voice agent, filtering by relevance before returning context.

Goal

Design data-heavy function calls for a Realtime voice agent, filtering by relevance before returning context.

Steps

  1. Define fields, size, and filtering for large tool responses; never send the full dataset. [source-openai-serve-large-reference-data-in-realtime-voice]
  2. Call a server-side function and return only top-k relevant results and a summary. [source-openai-serve-large-reference-data-in-realtime-voice]
  3. Measure latency and context size; ask follow-ups when data is insufficient and avoid silent truncation. [source-openai-serve-large-reference-data-in-realtime-voice]

How to verify

For fixed queries, match `searchDraftProspects` summary IDs to source data, call `getProspectDetails` only on demand, and record payload bytes and time to first audio.

Troubleshooting

If context grows, remove redundant nested fields from detail results; when summary search returns none, ask for filters instead of guessing.

Permissions

Prerequisites

Permissions

Limitations

Run the source on isolated test data, then check outputs and dependency versions before adapting it.

Pinned upstream source

https://github.com/openai/openai-cookbook/blob/5bd6cb40b6b84b69b2032d810610aa85064102df/examples/Data-intensive-Realtime-apps.ipynb

Repository
openai/openai-cookbook
File path
examples/Data-intensive-Realtime-apps.ipynb
Pinned commit
5bd6cb40b6b84b69b2032d810610aa85064102df
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Turn ecommerce campaign materials into a reviewable weekly brief

Related resources