Skip to content

@inferedge/moss v1.0.0-beta.2


@inferedge/moss / QueryResultDocumentInfo

Interface: QueryResultDocumentInfo ​

Document result from a query with similarity score.

Extends ​

Properties ​

id ​

id: string

Unique identifier within an index.

Inherited from ​

DocumentInfo.id


text ​

text: string

REQUIRED canonical text to embed/search.

Inherited from ​

DocumentInfo.text


metadata? ​

optional metadata: Record<string, string>

Optional metadata associated with the document.

Inherited from ​

DocumentInfo.metadata


score ​

score: number

Similarity score (0-1, higher = more similar).