Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex AI Studio
  • Getting started with Model Gallery
    • About Yandex AI Studio
      • AI Search overview
      • Vector Store search indexes
      • File search tool
      • Web search tool
    • Yandex Workflows
    • Quotas and limits
    • Terms and definitions
  • Switching from the AI Assistant API to Responses API
  • Compatibility with OpenAI
  • Access management
  • Pricing policy
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Annotations
  • Possible use cases
  • Use cases
  1. Concepts
  2. AI Search
  3. File search tool

File Search tool

Written by
Yandex Cloud
Updated at December 23, 2025
  • Annotations
  • Possible use cases
  • Use cases

The file search tool extends the models' capabilities by enabling hybrid search through the user's files when generating the response. You can enable the tool in the Responses API and Realtime API.

To allow the model to search for information through the files in Responses API, specify the file_search tool and the Vector Store search index ID. The search index contains the information on the files that will be used for the search.

Found chunks with relevant information will be added to the model context, thus increasing the number of consumed tokens. If the search index is big, use the max_num_results parameter to limit the number of results it returns to prevent the model from hitting the context window limits too quickly. For the prices, see Yandex AI Studio pricing policy.

Python
response = client.responses.create(
    model=f"gpt://{YANDEX_CLOUD_FOLDER}/{YANDEX_CLOUD_MODEL}",
    # SpeechKit Voice Profiler is a non-existent product (at least for now) which was described in the documents.
    instructions="You are helping the user with the documentation. When asked about SpeechKit Voice Profiler, use file search.",
    input="Tell me about SpeechKit Voice Profiler",
    tools=[{
        "type": "file_search",
        "vector_store_ids": [<search_index_ID>],
        "max_num_results": 3
    }]
)

Warning

You can connect only one search index to a model at a time.

AnnotationsAnnotations

The response with the file search results is inside the annotations object. Use it to track and show the data sources to the user. The filename field of the annotations object contains the name of the file the information was found in, and the file_id field gives its ID. The object's other fields are populated with default values for compatibility with OpenAI:

"annotations": [
  {
    "file_id": "...",
    "filename": "Yandex SpeechKit Voice Profiler.docx",
    "index": 0,
    "type": "file_citation"
  }
 ...
]

Possible use casesPossible use cases

The file search tool can prove useful in various scenarios:

  • Corporate assistant: Advice based on internal documents and corporate regulations.
  • Product support: Searching through technical documentation, SDKs, and FAQs with links to relevant sections.
  • Legal consulting: Advice based on internal legal documents, with quotes and sources included in the response.
  • New staff onboarding: Answers to trainee's questions on internal policies and project architecture.
  • Sales: Searching for successful deals in the presentations and bids directory.

Use casesUse cases

Creating a text agent with file search

Was the article helpful?

Previous
Vector Store search indexes
Next
Web search tool
© 2026 Direct Cursus Technology L.L.C.