BotSharp/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs
2024-07-02 09:52:16 -05:00

10 lines
387 B
C#

namespace BotSharp.Abstraction.VectorStorage;
public interface IVectorDb
{
Task<List<string>> GetCollections();
Task CreateCollection(string collectionName, int dim);
Task Upsert(string collectionName, string id, float[] vector, string text, Dictionary<string, string>? payload = null);
Task<List<string>> Search(string collectionName, float[] vector, int limit = 5);
}