EvalDataset used CreateKnowledgeFromPassage (async), which returns immediately while chunking/embedding/vector-indexing runs in the background. The subsequent RAG queries then hit an empty vector store, so retrieval metrics (precision, recall, NDCG, MRR, MAP) were always 0. Switch to CreateKnowledgeFromPassageSync, which waits for indexing to complete before returning — the same pattern already used in web_search.go for the identical create-then-query flow. |
||
|---|---|---|
| .. | ||
| repository | ||
| service | ||