trustgraph/specs/api/components/schemas/embeddings-query/GraphEmbeddingsQueryResponse.yaml
cybermaggedon 664d1d0384
Update API specs for 2.1 (#699)
* Updating API specs for 2.1

* Updated API and SDK docs
2026-03-17 20:36:31 +00:00

21 lines
668 B
YAML

type: object
description: Graph embeddings query response with matching entities and similarity scores
properties:
entities:
type: array
description: Matching graph entities with similarity scores
items:
type: object
properties:
entity:
$ref: '../../common/RdfValue.yaml'
description: Matching graph entity
score:
type: number
description: Similarity score (higher is more similar)
example: 0.92
example:
- entity: {t: i, i: "https://example.com/person/alice"}
score: 0.95
- entity: {t: i, i: "https://example.com/concept/quantum"}
score: 0.82