File Search Tool
File Search augments agents with knowledge from documents like product information, internal documentation, or user-provided files.
How It Works
The file search tool implements retrieval best practices:
- Rewrites queries for optimal search
- Breaks down complex queries into multiple parallel searches
- Runs hybrid search (vector + keyword) across vector stores
- Reranks results to select most relevant content
- Injects into context for agent to use
Default settings:
- Chunk size: 800 tokens
- Chunk overlap: 400 tokens
- Embedding model: text-embedding-3-large (256 dimensions)
- Max chunks in context: 20
Quick Start
Vector Stores
Vector stores enable file search capabilities:
- Store up to 10,000 files per vector store
- Attach one vector store to agent
- Attach one vector store to thread
- Automatic parsing, chunking, and embedding
Maximum file size: 512 MB
Maximum tokens per file: 5,000,000
Setup Dependencies
Basic Setup
- Microsoft-managed storage and search
Standard Setup
- Uses your Azure Blob Storage
- Uses your Azure AI Search resource
- Full data control
See Standard Setup for details.