Skip to content

FileSearchTool

A tool for searching files. This tool allows an AI agent to search for files based on a query.

---
title: FileSearchTool
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Tool {
        +string name
        +string kind
        +string description
        +Binding[] bindings
    }
    Tool <|-- FileSearchTool
    class FileSearchTool {
      
        +string kind
        +Connection connection
        +string[] vectorStoreIds
        +int32 maximumResultCount
        +string ranker
        +float32 scoreThreshold
        +dictionary filters
    }
kind: file_search
connection:
kind: reference
vectorStoreIds:
- vectorStore1
- vectorStore2
maximumResultCount: 10
ranker: auto
scoreThreshold: 0.5
filters:
fileType: pdf
createdAfter: 2023-01-01
NameTypeDescription
kindstringThe kind identifier for file search tools
connectionConnectionThe connection configuration for the file search tool
vectorStoreIdsstring[]The IDs of the vector stores to search within.
maximumResultCountint32The maximum number of search results to return.
rankerstringFile search ranker.
scoreThresholdfloat32Ranker search threshold.
filtersdictionaryAdditional filters to apply during the file search.