Knowledge Base

Test and tune retrieval

Run a retrieval test

Open a Pro knowledge base and choose 【Test】. Enter product review in Vector Index and review in Keyword Index. Set Recall Count to 3 and Alpha to 0.5, then choose 【Recall】.

The result table shows index text, metadata, similarity and source file. Check whether the passages answer the question and review their sources.

Adjust parameters

ParameterPurpose
Vector IndexQuery text for semantic retrieval
Keyword IndexQuery text for keyword retrieval
Recall CountMaximum number of returned records, also called TopK
Alpha1 uses vector retrieval; 0 uses keyword retrieval; intermediate values combine both

Keep the queries unchanged. Compare Recall Count 1 with 3, then Alpha 1 with 0.

Filter by metadata

Choose 【Add condition】 under Metadata. Select category, choose the equals operator and enter requests, then recall. Change the value to archive to inspect an empty result. Remove the condition and recall again to compare the result scope.