Interface IKnowledgeService
- Namespace
- FoundationaLLM.Context.Interfaces
- Assembly
- FoundationaLLM.ContextEngine.dll
Defines the service interface for the FoundationaLLM Knowledge Graph service.
public interface IKnowledgeService
- Extension Methods
Methods
GetKnowledgeSources(string, ContextKnowledgeSourceListRequest, UnifiedUserIdentity)
Retrieves the list of knowledge sources.
Task<IEnumerable<KnowledgeSource>> GetKnowledgeSources(string instanceId, ContextKnowledgeSourceListRequest listRequest, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
listRequest
ContextKnowledgeSourceListRequestThe request containing the information used to filter the knowledge sources.
userIdentity
UnifiedUserIdentityThe identity of the security principal submitting the request.
Returns
QueryKnowledgeSource(string, string, ContextKnowledgeSourceQueryRequest, UnifiedUserIdentity)
Queries a knowledge source.
Task<ContextKnowledgeSourceQueryResponse> QueryKnowledgeSource(string instanceId, string knowledgeSourceId, ContextKnowledgeSourceQueryRequest queryRequest, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
knowledgeSourceId
stringThe knowledge source identifier.
queryRequest
ContextKnowledgeSourceQueryRequestThe request containing the details of the query.
userIdentity
UnifiedUserIdentityThe identity of the security principal submitting the request.
Returns
RenderKnowledgeSourceGraph(string, string, ContextKnowledgeSourceQueryRequest?, UnifiedUserIdentity)
Retrieves the knowledge source's knowledge graph in a format suitable for visualization or further processing.
Task<ContextKnowledgeSourceRenderGraphResponse> RenderKnowledgeSourceGraph(string instanceId, string knowledgeSourceId, ContextKnowledgeSourceQueryRequest? queryRequest, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
knowledgeSourceId
stringThe knowledge source identifier.
queryRequest
ContextKnowledgeSourceQueryRequestThe request containing the details of the query.
userIdentity
UnifiedUserIdentityThe identity of the security principal submitting the request.
Returns
UpdateKnowledgeSource(string, string, ContextKnowledgeSourceUpdateRequest, UnifiedUserIdentity)
Updates a knowledge source.
Task UpdateKnowledgeSource(string instanceId, string knowledgeSourceId, ContextKnowledgeSourceUpdateRequest updateRequest, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
knowledgeSourceId
stringThe knowledge source+ identifier.
updateRequest
ContextKnowledgeSourceUpdateRequestThe request containing the information to update the knowledge source.
userIdentity
UnifiedUserIdentityThe identity of the security principal submitting the request.