10 lines
325 B
C#
10 lines
325 B
C#
namespace BotSharp.Abstraction.VectorStorage;
|
|
|
|
public interface IVectorDb
|
|
{
|
|
Task<List<string>> GetCollections();
|
|
Task CreateCollection(string collectionName, int dim);
|
|
Task Upsert(string collectionName, int id, float[] vector);
|
|
Task<List<int>> Search(string collectionName, float[] vector, int limit = 10);
|
|
}
|