struct

AI::OpenAI::Tools::FileSearch

Inherits Struct < Value < Object

File Search tool.

Enables models to retrieve information from a knowledge base of previously uploaded files through semantic and keyword search.

Constants

ID = "openai.file_search"
NAME = "file_search"

Constructors

new(vector_store_ids : Array(String), max_num_results : Int32 | Nil = nil, ranking : FileSearchRanking | Nil = nil, filters : FileSearchFilter | Nil = nil)
Source

Instance methods

args
Source
filters

Filters to apply to the search.

Source
max_num_results

Maximum number of search results to return.

Source
name
Source
ranking

Ranking options for the search.

Source
type
Source
vector_store_ids

List of vector store IDs to search through.

Source