Skip to content

Interface IKnowledgeQueryEngine

Namespace: Cephalon.Abstractions.Retrieval
Assembly: Cephalon.Abstractions.dll

Executes managed retrieval queries over indexed knowledge documents.

public interface IKnowledgeQueryEngine

QueryAsync(KnowledgeQueryRequest, CancellationToken)

Section titled “ QueryAsync(KnowledgeQueryRequest, CancellationToken)”

Queries the active managed index for a collection.

ValueTask<KnowledgeQueryResult> QueryAsync(KnowledgeQueryRequest request, CancellationToken cancellationToken = default)

request KnowledgeQueryRequest

The query request to execute.

cancellationToken CancellationToken

A token that can cancel the query execution.

ValueTask<KnowledgeQueryResult>

The query result, including any ranked matches found in the current index.