test: unit test cases for rag.cleaner, rag.data_post_processor and rag.datasource (#32521)

This commit is contained in:
Rajat Agarwal
2026-03-24 23:49:15 +05:30
committed by GitHub
parent 36cc1bf025
commit 6f137fdb00
50 changed files with 13766 additions and 47 deletions

View File

@ -124,13 +124,13 @@ class HuaweiCloudVector(BaseVector):
)
)
score_threshold = float(kwargs.get("score_threshold") or 0.0)
docs = []
for doc, score in docs_and_scores:
score_threshold = float(kwargs.get("score_threshold") or 0.0)
if score >= score_threshold:
if doc.metadata is not None:
doc.metadata["score"] = score
docs.append(doc)
docs.append(doc)
return docs