Implement scoped real knowledge retrieval
This commit is contained in:
@@ -69,7 +69,7 @@ def debug_agent(
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="模型不存在")
|
||||
|
||||
scopes = _agent_knowledge_scopes(db, payload.knowledgeIds)
|
||||
chunks = FeishuKnowledgeService.retrieve(payload.question, scopes)
|
||||
chunks = FeishuKnowledgeService.retrieve(payload.question, scopes, db)
|
||||
prompt = _build_agent_debug_prompt(payload.promptContent, payload.question, chunks)
|
||||
rag_result = RagResult(question=payload.question, knowledge_scopes=scopes, chunks=chunks, prompt=prompt)
|
||||
result = ModelClientService.debug_model(
|
||||
|
||||
Reference in New Issue
Block a user