# Managed file search trades retrieval control for convenience

Markdown copy of https://realalpha.app/s/managed-file-search-trades-retrieval-control-for-convenience/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Nikunj Handa](https://realalpha.app/builders/nikunj-handa/) · Head of Product, API, OpenAI · Leads product for OpenAI's API, including the Decisions API that cut response times to 100–180 milliseconds.
- Host: [Shawn Wang (swyx)](https://realalpha.app/people/swyx/) · Co-founder, AI Engineer · Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.
- Host: [Alessio Fanelli](https://realalpha.app/people/alessio-fanelli/) · Founder, Kernel Labs · Partner at Decibel, backing technical founders who build developer tools.
- Show: Latent Space
- Episode: [The new OpenAI Agents Platform: CUA, Web Search, Responses API, Agents SDK!!](https://realalpha.app/v/QU9QLi1-VvU/), Mar 11, 2025
- Moment: 14:06 to 18:26 of the episode (4 min), playing on https://realalpha.app/s/managed-file-search-trades-retrieval-control-for-convenience/; the episode from there: https://realalpha.app/v/QU9QLi1-VvU/?t=846

## Quote

> “my recommendation would be like, **start with the OpenAI thing**, see if it meets your needs.”
> — [Nikunj Handa](https://realalpha.app/builders/nikunj-handa/) at [17:40](https://realalpha.app/v/QU9QLi1-VvU/?t=1060) · Latent Space

## Takeaways

1. Use stored preferences to personalize live web results.
2. Metadata filters become important beyond 5,000–10,000 records.
3. Start managed; build custom retrieval when you need more control.

## About this segment

A vector store can hold user preferences that guide live web searches, while metadata filters help as stores grow. Nikunj Handa recommends managed retrieval first, with DIY for teams needing full control.

From “The new OpenAI Agents Platform: CUA, Web Search, Responses API, Agents SDK!!”, Mar 11, 2025. [Watch the full episode](https://realalpha.app/v/QU9QLi1-VvU/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[14:18](https://realalpha.app/v/QU9QLi1-VvU/?t=858) And let me first tell you about how I've seen a really cool way I've seen people use files in search together is they put their user preferences or memories in the vector store. And so a query comes in, you use the file search tool to get someone's reading preferences or fashion preferences and stuff like that. And then you search the web for information or products that they can buy related to those preferences.

[14:42](https://realalpha.app/v/QU9QLi1-VvU/?t=882) And you then render something beautiful to show them like, here are five things that you might be interested in. So that's how I've seen file search, web search work together. And by the way, that's a single response to the API call, which is really cool. So you just configure these things, go boom, and everything just happens. But yeah, that's how I've seen files and web work together. But I think that what you're pointing out is interesting, and I'm sure developers will surprise us, as they always do, in terms of how they combine these tools and how they might use file search as a way to have memory and preferences, like Nikum says.

[15:13](https://realalpha.app/v/QU9QLi1-VvU/?t=913) But I think zooming out, what I find very compelling and powerful here is when you have these neural nets that have all of the knowledge that they have today, plus real-time access to the internet for any kind of real-time information that you might need for your app, and file search where you can have a lot of company private documents, private details. You combine those three and you have very, very compelling and precise answers for any kind of use case that your company or your product might want to enable. It's a difference between internal documents versus the open web, right?

[15:46](https://realalpha.app/v/QU9QLi1-VvU/?t=946) Like you're going to need both. Exactly, exactly. I never thought about it doing memory as well. I guess, again, you know, anything that's a database, you can store it and you will use it as a database. That sounds awesome. But I think also you've been, you know, expanding the file search. You have more file types. You have query optimization, custom re-ranking. So it really seems like, you know, it's been fleshed out.

[16:07](https://realalpha.app/v/QU9QLi1-VvU/?t=967) Obviously, I haven't been paying a ton of attention to the file search capability, but it sounds like your team has added a lot of features. Yeah, metadata filtering was the main thing people were asking us for for a while, and that's the one I'm super excited about. I mean, it's just so critical. Once your vector store size goes over more than 5,000, 10,000 records, you kind of need that. So yeah, metadata filtering is coming too.

[16:31](https://realalpha.app/v/QU9QLi1-VvU/?t=991) And for most companies, it's also not a competency that you want to rebuild in-house necessarily. Thinking about embeddings and chunking and how of that, It sounds very complex or something very obvious to ship for your users. Companies like Navan, for instance, they were able to build with the file search, take all of the FAQ and travel policies, for instance, that you have, you put that in file search tool and then you don't have to think about anything.

[16:57](https://realalpha.app/v/QU9QLi1-VvU/?t=1017) Now your assistant becomes naturally much more aware of all of these policies from the files. The question is, there's a very, very vibrant RAG industry already, as you well know. So there's many other vector databases, many other frameworks. Probably if it's an open source stack, I'll say a lot of the AI engineers that I talk to want to own this part of the stack. And it feels like, you know, when should we DIY and when should we just use whatever OpenAI offers?

[17:25](https://realalpha.app/v/QU9QLi1-VvU/?t=1045) Yeah, I mean, if you're doing something completely from scratch, you're going to have more control, right? Like, so super supportive of, you know, people trying to like roll up their sleeves, build their like super custom chunking strategy and super custom retrieval strategy and all of that. And those are things that will be harder to do with OpenAI's tools. OpenAI's tool has like, we have an out-of-the-box solution.

[17:47](https://realalpha.app/v/QU9QLi1-VvU/?t=1067) We give you some knobs to customize things, but it's more of like a managed rack service. So my recommendation would be like, start with the OpenAI thing, see if it meets your needs. And over time, we're going to be adding more and more knobs to make it even more customizable. But if you want the completely custom thing, you want control over every single thing, then you'd probably want to go and hand roll it using other solutions.

[18:12](https://realalpha.app/v/QU9QLi1-VvU/?t=1092) So we're supportive of both. Engineers should pick.
