merge: integrate ZSY customer service and profile capabilities

This commit is contained in:
张胜宇
2026-09-11 22:31:51 +08:00
94 changed files with 7933 additions and 77 deletions
+15
View File
@@ -0,0 +1,15 @@
class KnowledgeRuntimeConfig:
DEFAULT_ROUTES = {
"faq": ("fin_faq_collection", 3),
"product_inquiry": ("fin_product_collection", 5),
"policy_explain": ("fin_policy_collection", 5),
}
def __init__(self, *, vector_dim: int = 1024, similarity_threshold: float = 0.60) -> None:
self.routes = dict(self.DEFAULT_ROUTES)
self.vector_dim = vector_dim
self.similarity_threshold = similarity_threshold
def route(self, intent: str) -> tuple[str, int] | None:
"""Return the collection route used by the retrieval compatibility layer."""
return self.routes.get(intent)