Global

Type Definitions

Document

Type:
  • Object
Properties:
Name Type Attributes Description
id string

Unique identifier for the document

text string <optional>

The text content of the document (mutually exclusive with content)

content string <optional>

Alternative to text for Spring AI compatibility (mutually exclusive with text)

metadata Object

Document metadata

Properties
Name Type Attributes Description
embedding Array.<number>

The embedding vector for the document

* * <optional>

Additional metadata properties

SearchResult

Type:
  • Object
Properties:
Name Type Description
score number

Similarity score (0-1, higher is more similar)

id string

Document identifier

text string

Document text content

metadata_json string

Serialized metadata as JSON string