feat: add governed public knowledge retrieval

This commit is contained in:
张胜宇
2026-09-10 18:42:44 +08:00
parent ba22a2220f
commit 511a8ca18f
20 changed files with 729 additions and 7 deletions
+11
View File
@@ -0,0 +1,11 @@
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.70) -> None:
self.routes = dict(self.DEFAULT_ROUTES)
self.vector_dim = vector_dim
self.similarity_threshold = similarity_threshold