We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 014d98a commit f8e6f38Copy full SHA for f8e6f38
1 file changed
src/Infrastructure/BotSharp.Abstraction/MLTasks/ITextEmbedding.cs
@@ -13,6 +13,14 @@ public interface ITextEmbedding
13
string? ApiKey => null;
14
void SetApiKey(string apiKey) { }
15
16
+ /// <summary>
17
+ /// Optional task/prompt hint for prompt-conditioned ("asymmetric") embedding models such as
18
+ /// EmbeddingGemma, which embed a search query and a stored document with different prompt prefixes.
19
+ /// Pass <c>"query"</c> when embedding a search query and <c>"document"</c> when embedding content to
20
+ /// be stored/indexed. Symmetric providers (e.g. OpenAI) ignore this. Defaults to <c>"document"</c>.
21
+ /// </summary>
22
+ void SetTaskType(string taskType) { }
23
+
24
/// <summary>
25
/// Generates an embedding vector for the given text.
26
/// </summary>
0 commit comments