Sky-Kim's picture
Initial commit
2e7837a
Raw
History Blame Contribute Delete
422 Bytes
using System;
using System.Threading.Tasks;
using LightRAG.Core.Abstractions;
namespace OnDeviceAgent.AgentCore
{
public interface ITextEmbedder : IDisposable
{
bool Ready { get; }
float[] EmbedText(string text, bool isQuery = false);
Task<float[]> EmbedTextAsync(string text, bool isQuery = false);
EmbeddingFunc AsEmbeddingFunc(IUnityMainThreadDispatcher dispatcher);
}
}