Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Yandex AI Studio
  • О сервисе Yandex AI Studio
  • Начало работы с Model Gallery
  • Yandex Workflows
  • Переход с AI Assistant API на Responses API
  • Совместимость с OpenAI
    • Обзор
    • Аутентификация в API
        • Overview
        • listVectorStores
        • createVectorStore
        • getVectorStore
        • modifyVectorStore
        • deleteVectorStore
        • createVectorStoreFileBatch
        • getVectorStoreFileBatch
        • listFilesInVectorStoreBatch
        • listVectorStoreFiles
        • createVectorStoreFile
        • getVectorStoreFile
        • deleteVectorStoreFile
        • updateVectorStoreFileAttributes
        • retrieveVectorStoreFileContent
        • searchVectorStore
  • Квоты и лимиты
  • Правила тарификации
  • Управление доступом
  • Аудитные логи Audit Trails
  • Публичные материалы
  • История изменений
  • Термины и определения

В этой статье:

  • HTTP request
  • Path parameters
  • Body parameters
  • ComparisonFilter
  • CompoundFilter
  • RankingOptions
  • Response
  • VectorStoreSearchResultItem
  • VectorStoreSearchResultContentObject
  1. Справочники API
  2. OpenAI-совместимые API (англ.)
  3. Vector stores
  4. searchVectorStore

REST: Search vector store

Статья создана
Yandex Cloud
Обновлена 30 декабря 2025 г.
  • HTTP request
  • Path parameters
  • Body parameters
  • ComparisonFilter
  • CompoundFilter
  • RankingOptions
  • Response
  • VectorStoreSearchResultItem
  • VectorStoreSearchResultContentObject

Search a vector store for relevant chunks based on a query and file attributes filter.

HTTP requestHTTP request

POST https://ai.api.cloud.yandex.net/v1/vector_stores/{vector_store_id}/search

Path parametersPath parameters

Field

Description

vector_store_id

string

Required field. The ID of the vector store to search.

Body parametersBody parameters

Request schema: application/json

{
  "query": "unknown",
  "rewrite_query": "boolean",
  "max_num_results": "integer",
  "filters": "unknown",
  "ranking_options": {
    "ranker": "string",
    "score_threshold": "number"
  }
}

Field

Description

query

Any of string | string

rewrite_query

boolean

Whether to rewrite the natural language query for vector search.

max_num_results

integer

The maximum number of results to return. This number should be between 1 and 50 inclusive.

filters

Any of ComparisonFilter | CompoundFilter

ranking_options

RankingOptions

Ranking options for search.

ComparisonFilterComparisonFilter

A filter used to compare a specified attribute key to a given value using a defined comparison operation.

Field

Description

type

enum

Required field. Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.

  • eq: equals

  • ne: not equal

  • gt: greater than

  • gte: greater than or equal

  • lt: less than

  • lte: less than or equal

  • in: in

  • nin: not in

  • eq

  • ne

  • gt

  • gte

  • lt

  • lte

key

string

Required field. The key to compare against the value.

value

Any of string | number | boolean | unknown

CompoundFilterCompoundFilter

Combine multiple filters using and or or.

Field

Description

type

enum

Required field. Type of operation: and or or.

  • and
  • or

filters[]

unknown

Required field.

RankingOptionsRankingOptions

Ranking options for search.

Field

Description

ranker

enum

Enable re-ranking; set to none to disable, which can help reduce latency.

  • none
  • auto
  • default-2024-11-15

score_threshold

number

ResponseResponse

HTTP Code: 200

OK

Response schema: application/json

{
  "object": "string",
  "search_query": [
    "string"
  ],
  "data": [
    {
      "file_id": "string",
      "filename": "string",
      "score": "number",
      "attributes": "unknown",
      "content": [
        {
          "type": "string",
          "text": "string"
        }
      ]
    }
  ],
  "has_more": "boolean",
  "next_page": "unknown"
}

Field

Description

object

enum

Required field. The object type, which is always vector_store.search_results.page

  • vector_store.search_results.page

search_query[]

string

Required field. The query used for this search.

data[]

VectorStoreSearchResultItem

Required field.

has_more

boolean

Required field. Indicates if there are more results to fetch.

next_page

Any of string | null

VectorStoreSearchResultItemVectorStoreSearchResultItem

Field

Description

file_id

string

Required field. The ID of the vector store file.

filename

string

Required field. The name of the vector store file.

score

number

Required field. The similarity score for the result.

attributes

Any of object (map<string, string>) | null

content[]

VectorStoreSearchResultContentObject

Required field.

VectorStoreSearchResultContentObjectVectorStoreSearchResultContentObject

Field

Description

type

enum

Required field. The type of content.

  • text

text

string

Required field. The text content returned from search.

Была ли статья полезна?

Предыдущая
retrieveVectorStoreFileContent
Следующая
Overview
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»