declare function overrideEmbeding(embeddingSchema: TEmbeddingSchema): IEmbeddingSchema;
Overrides an existing embedding schema in the swarm system with a new or partial schema.
This function updates the configuration of an embedding mechanism identified by its embeddingName
, applying the provided schema properties.
It operates outside any existing method or execution contexts to ensure isolation, leveraging beginContext
for a clean execution scope.
Logs the override operation if logging is enabled in the global configuration.
Parameter | Description |
---|---|
embeddingSchema |
Optional partial schema properties to update, extending IEmbeddingSchema . |