- Update ITextEmbedding interface to use async methods for getting vectors - Update KnowledgeService to use async methods for getting vectors - Update TextEmbeddingProvider and fastTextEmbeddingProvider to use async methods for getting vectors - Update IntentClassifier to use async methods for getting vectors - Update SemanticKernelTextEmbeddingProvider to use async methods for getting vectors
11 lines
237 B
C#
11 lines
237 B
C#
using System.Threading;
|
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
public interface ITextEmbedding
|
|
{
|
|
int Dimension { get; }
|
|
Task<float[]> GetVectorAsync(string text);
|
|
Task<List<float[]>> GetVectorsAsync(List<string> texts);
|
|
}
|