BotSharp/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs

10 lines
325 B
C#
Raw Normal View History

2023-06-26 23:08:24 +00:00
namespace BotSharp.Abstraction.VectorStorage;
2023-06-18 02:56:22 +00:00
public interface IVectorDb
{
Task<List<string>> GetCollections();
2023-06-18 18:15:00 +00:00
Task CreateCollection(string collectionName, int dim);
2023-06-18 02:56:22 +00:00
Task Upsert(string collectionName, int id, float[] vector);
Task<List<int>> Search(string collectionName, float[] vector, int limit = 10);
}