2023-06-26 23:08:24 +00:00
|
|
|
using BotSharp.Abstraction.VectorStorage;
|
2023-06-18 02:56:22 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.MetaAI.Providers;
|
|
|
|
|
|
|
|
|
|
public class FaissDb : IVectorDb
|
|
|
|
|
{
|
2023-06-18 18:15:00 +00:00
|
|
|
public Task CreateCollection(string collectionName, int dim)
|
2023-06-18 02:56:22 +00:00
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<List<string>> GetCollections()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-27 23:36:50 +00:00
|
|
|
public Task<List<string>> Search(string collectionName, float[] vector, int limit = 10)
|
2023-06-18 02:56:22 +00:00
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-10 16:25:17 +00:00
|
|
|
public Task Upsert(string collectionName, string id, float[] vector, string text, Dictionary<string, string>? payload = null)
|
2023-06-18 02:56:22 +00:00
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|