Class EmbedComponent
Embedding transport. Scheme: embed. Producer-only, symmetric with
llm://: To("embed://<connectionFactoryName>") turns the
exchange body (a text, or a collection of texts) into an embedding vector
(float[]) or vectors (float[][]) written to Out.Body.
The URI host names an (Provider / BaseUrl /
ApiKey / ModelId — set ModelId to the embedding model), so different
routes can pick different embedding models by name — the same lever as
llm://<factory>.
From("kafka://texts").To("embed://openai").To("vector://sink");
[EndpointRole(EndpointRole.Producer, Hint = "Use To(\"embed://<factory>\").")]
public sealed class EmbedComponent : ComponentBase, IComponent, IAsyncDisposable
Inheritance
Implements
Inherited Members
Properties
ProviderFactory
Builds the from a resolved connection
public Func<LlmConnectionFactory, IEmbeddingProvider> ProviderFactory { get; set; }
Scheme
The URI scheme this component handles (e.g., "kafka", "rabbitmq").
public override string Scheme { get; }
Methods
CreateEndpoint(EndpointUri)
Creates an endpoint from a parsed URI.
public override IEndpoint CreateEndpoint(EndpointUri uri)