Skip to content

EmbeddingsSearchResult

One passage a search found, with the file it came from. Results come best match first.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
iduuidThe file’s id.
namestringThe file’s name.
contentTypestringThe file’s MIME type.
sizeintegerThe file’s size, in bytes.
typeIngestedFileTypeWhat kind of document the file is.
textstringThe matching passage, cut to 1,000 characters.
scorenumberHow well the passage matches the query: higher is better.
{
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"name": "...",
"contentType": "...",
"size": 0,
"type": "WordDocument",
"text": "...",
"score": 0
}