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);
|
2024-07-02 14:52:16 +00:00
|
|
|
Task Upsert(string collectionName, string id, float[] vector, string text, Dictionary<string, string>? payload = null);
|
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
|
|
|
}
|