Skip to content

armgit / dify

Public Imported from GitHub
0

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.

refactor: improve type annotations in HitTestingService (#27838)

Xin@@Garf0266e13c517
diff --git a/api/services/hit_testing_service.py b/api/services/hit_testing_service.py
index 7e0100212a4..4a21e3c5bd8 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: dict | None,
+ retrieval_model: dict[str, Any] | None,
external_retrieval_model: dict,
attachment_ids: list | None = None,
limit: int = 10,