Search Vector Store
openai_search_vector_storeSearch an OpenAI vector store to find relevant document chunks based on a query and optional file-attribute filters.
Instructions
Search an OpenAI vector store for relevant chunks based on a query and optional file-attribute filters.
Use this to perform semantic search across the documents in a vector store. You can provide a single query string or an array of queries, and optionally filter by file attributes (e.g., department = "engineering").
Results include ranked search hits with content snippets, file IDs, and relevance scores.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_store_id | Yes | The ID of the vector store to search. | |
| query | Yes | A query string or array of query strings for search. | |
| max_num_results | No | Maximum number of results to return (1–50, default 10). | |
| rewrite_query | No | Whether to rewrite the query for better search results. | |
| filters | No | Filter to apply based on file attributes. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable. | markdown |