BotSharp/src/Plugins/BotSharp.Plugin.MetaAI/Providers/FaissDb.cs

42 lines
1.2 KiB
C#
Raw Normal View History

2024-08-06 21:02:02 +00:00
using BotSharp.Abstraction.Knowledges.Models;
2024-08-06 22:43:11 +00:00
using BotSharp.Abstraction.Utilities;
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();
}
2024-08-06 21:02:02 +00:00
public Task<KnowledgeCollectionInfo> GetCollectionInfo(string collectionName)
{
throw new NotImplementedException();
}
2024-08-07 16:50:23 +00:00
public Task<StringIdPagedItems<KnowledgeCollectionData>> GetCollectionData(string collectionName, KnowledgeFilter filter)
2024-08-06 22:43:11 +00:00
{
throw new NotImplementedException();
}
2023-06-18 02:56:22 +00:00
public Task<List<string>> GetCollections()
{
throw new NotImplementedException();
}
2024-07-17 21:03:46 +00:00
public Task<List<string>> Search(string collectionName, float[] vector, string returnFieldName, int limit = 10, float confidence = 0.5f)
2023-06-18 02:56:22 +00:00
{
throw new NotImplementedException();
}
2024-07-17 21:03:46 +00:00
public Task<bool> 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();
}
}