trustgraph/specs/api/components/schemas/embeddings-query/DocumentEmbeddingsQueryResponse.yaml

23 lines
665 B
YAML
Raw Normal View History

type: object
description: Document embeddings query response with matching chunks and similarity scores
properties:
chunks:
type: array
description: Matching document chunks with similarity scores
items:
type: object
properties:
chunk_id:
type: string
description: Chunk identifier URI
example: "urn:trustgraph:chunk:abc123"
score:
type: number
description: Similarity score (higher is more similar)
example: 0.89
example:
- chunk_id: "urn:trustgraph:chunk:abc123"
score: 0.95
- chunk_id: "urn:trustgraph:chunk:def456"
score: 0.82