Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(api): enforce strict typing on retrieval_model to resolve FIXME (#34614)
Pulakesh0feff5b0484b
diff --git a/api/services/hit_testing_service.py b/api/services/hit_testing_service.pyindex 7900f6da266..fa7b0a533b1 100644--- a/api/services/hit_testing_service.py+++ b/api/services/hit_testing_service.py@@ -44,7 +44,7 @@ class HitTestingService:dataset: Dataset,query: str,account: Account,- retrieval_model: Any, # FIXME drop this any+ retrieval_model: dict | None,external_retrieval_model: dict,attachment_ids: list | None = None,limit: int = 10,@@ -54,6 +54,7 @@ class HitTestingService:# get retrieval model , if the model is not setting , using defaultif not retrieval_model:retrieval_model = dataset.retrieval_model or default_retrieval_model+ assert isinstance(retrieval_model, dict)document_ids_filter = Nonemetadata_filtering_conditions = retrieval_model.get("metadata_filtering_conditions", {})if metadata_filtering_conditions and query: