Documentation
¶
Index ¶
- func BuildAgentEmbeddingPayload(agent *models.AgentJSON) string
- func BuildServerEmbeddingPayload(server *apiv0.ServerJSON) string
- func GenerateSemanticEmbedding(ctx context.Context, provider Provider, payload string, expectedDimensions int) (*database.SemanticEmbedding, error)
- func PayloadChecksum(payload string) string
- type Payload
- type Provider
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAgentEmbeddingPayload ¶
BuildAgentEmbeddingPayload mirrors BuildServerEmbeddingPayload but for AgentJSON entries.
func BuildServerEmbeddingPayload ¶
func BuildServerEmbeddingPayload(server *apiv0.ServerJSON) string
BuildServerEmbeddingPayload converts a server document into the canonical text payload used for semantic embeddings. The payload deliberately combines all metadata that describes the resource so checksum comparisons stay stable across systems.
func GenerateSemanticEmbedding ¶
func GenerateSemanticEmbedding(ctx context.Context, provider Provider, payload string, expectedDimensions int) (*database.SemanticEmbedding, error)
GenerateSemanticEmbedding transforms the provided payload into a SemanticEmbedding by invoking the configured provider. The payload must be non-empty. When expectedDimensions > 0, the provider output is validated against it.
func PayloadChecksum ¶
PayloadChecksum returns the deterministic checksum for an embedding payload.
Types ¶
Click to show internal directories.
Click to hide internal directories.