Interface IEmbeddings
Interface for embedding models.
Namespace: DotnetPrompt.Abstractions.Tools
Assembly: DotnetPrompt.Abstractions.dll
Syntax
public interface IEmbeddings
Methods
| Improve this Doc View SourceEmbedAsync(IList<string>)
Embed search docs.
Declaration
Task<IList<TextEmbedding>> EmbedAsync(IList<string> texts)
Parameters
Type | Name | Description |
---|---|---|
IList<string> | texts |
Returns
Type | Description |
---|---|
Task<IList<TextEmbedding>> |
EmbedAsync(string)
Embed query text.
Declaration
Task<TextEmbedding> EmbedAsync(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text |
Returns
Type | Description |
---|---|
Task<TextEmbedding> |