class

OpenAI::VectorStoreSearchResultItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(file_id : String = "", filename : String = "", score : Float64 = 0.0, attributes : VectorStoreFileAttributes = nil, content : Array(VectorStoreSearchResultContentObject) = [] of VectorStoreSearchResultContentObject)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attributes
Source
attributes=(attributes : VectorStoreFileAttributes)
Source
content

Content chunks from the file.

Source
content=(content : Array(VectorStoreSearchResultContentObject))

Content chunks from the file.

Source
file_id

The ID of the vector store file.

Source
file_id=(file_id : String)

The ID of the vector store file.

Source
filename

The name of the vector store file.

Source
filename=(filename : String)

The name of the vector store file.

Source
score

The similarity score for the result.

Source
score=(score : Float64)

The similarity score for the result.

Source
validate!
Source