Fix the issue of repeated escaping of quotes in hit test (#13477)

This commit is contained in:
liuzhenghua
2025-02-11 09:58:31 +08:00
committed by GitHub
parent f0a845f0f9
commit 47a64610ca
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class HitTestingService:
all_documents = RetrievalService.retrieve(
retrieval_method=retrieval_model.get("search_method", "semantic_search"),
dataset_id=dataset.id,
query=cls.escape_query_for_search(query),
query=query,
top_k=retrieval_model.get("top_k", 2),
score_threshold=retrieval_model.get("score_threshold", 0.0)
if retrieval_model["score_threshold_enabled"]