BotSharp/src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs

18 lines
1 KiB
C#
Raw Normal View History

2024-08-15 23:19:10 +00:00
using BotSharp.Abstraction.Graph.Models;
using BotSharp.Abstraction.VectorStorage.Models;
2023-06-17 02:42:35 +00:00
namespace BotSharp.Abstraction.Knowledges;
public interface IKnowledgeService
{
2024-08-15 23:19:10 +00:00
Task<IEnumerable<string>> GetVectorCollections();
Task<IEnumerable<VectorSearchResult>> SearchVectorKnowledge(string query, string collectionName, VectorSearchOptions options);
Task FeedVectorKnowledge(string collectionName, KnowledgeCreationModel model);
2024-08-23 18:49:06 +00:00
Task<StringIdPagedItems<VectorSearchResult>> GetPagedVectorCollectionData(string collectionName, VectorFilter filter);
2024-08-15 23:19:10 +00:00
Task<bool> DeleteVectorCollectionData(string collectionName, string id);
2024-08-23 16:25:44 +00:00
Task<bool> CreateVectorCollectionData(string collectionName, VectorCreateModel create);
2024-08-23 03:13:40 +00:00
Task<bool> UpdateVectorCollectionData(string collectionName, VectorUpdateModel update);
2024-08-15 23:19:10 +00:00
Task<GraphSearchResult> SearchGraphKnowledge(string query, GraphSearchOptions options);
Task<KnowledgeSearchResult> SearchKnowledge(string query, string collectionName, VectorSearchOptions vectorOptions, GraphSearchOptions graphOptions);
2023-06-17 02:42:35 +00:00
}