struct AI::OpenAI::Tools::FileSearch

Overview

File Search tool.

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

Defined in:

ai/openai/tool/openai_tools.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(vector_store_ids : Array(String), max_num_results : Int32 | Nil = nil, ranking : FileSearchRanking | Nil = nil, filters : FileSearchFilter | Nil = nil) #

[View source]

Instance Method Detail

def args : Hash(String, JSON::Any) #

[View source]
def filters : FileSearchFilter | Nil #

Filters to apply to the search.


[View source]
def id : String #

[View source]
def max_num_results : Int32 | Nil #

Maximum number of search results to return.


[View source]
def name : String #

[View source]
def ranking : FileSearchRanking | Nil #

Ranking options for the search.


[View source]
def type : String #

[View source]
def vector_store_ids : Array(String) #

List of vector store IDs to search through.


[View source]