Fundamentals
File search and web search in AI workflows
Choose the right evidence collection and make the assistant show what it searched.
Begin with the scope of the question
File search can query a specified collection that has been made available to the host. Web search can discover material published outside that collection. A question about current company policy may belong in internal documents. A question about the original publisher of a public statistic may need the web. OpenAI documents these capabilities separately and describes the inputs and citations each can produce. 1 2
Use different rules when both collections matter
Imagine you are reviewing an internal resource list for outdated public references. Retrieve the internal list first so you have the relevant URLs. Then check the publisher pages for those URLs and record what changed. Ask the assistant to label which findings came from the internal collection and which came from current publisher pages. A relevant and well-scoped context reduces the chance of an unrelated search result dominating the answer. 3
Check the search statement before the conclusion
If the assistant says “nothing was found,” ask which collection or terms it searched. A missing result may mean that a document has not been indexed or that the query used a different title. Use a known reference as a control. Then open a result and check its publication date, version, and exact wording before adopting a changed claim.