fix: learn_from_workorder 创建知识条目时继承工单的 tenant_id
This commit is contained in:
@@ -100,6 +100,7 @@ class KnowledgeManager:
|
|||||||
question=question,
|
question=question,
|
||||||
answer=answer,
|
answer=answer,
|
||||||
category=work_order.category,
|
category=work_order.category,
|
||||||
|
tenant_id=work_order.tenant_id,
|
||||||
confidence_score=work_order.satisfaction_score or 0.5,
|
confidence_score=work_order.satisfaction_score or 0.5,
|
||||||
usage_count=1,
|
usage_count=1,
|
||||||
vector_embedding=embedding_json
|
vector_embedding=embedding_json
|
||||||
|
|||||||
Reference in New Issue
Block a user