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-27 23:36:50 +00:00
|
|
|
Task Upsert(string collectionName, int id, float[] vector, string text);
|
2023-06-29 23:14:57 +00:00
|
|
|
Task<List<string>> Search(string collectionName, float[] vector, int limit = 5);
|
2023-06-18 02:56:22 +00:00
|
|
|
}
|