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

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