mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 13:28:33 +00:00
Fix: remove 2 prompts. (#9990)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
e8dcdfb9f0
commit
79076ffb5f
@ -474,12 +474,12 @@ def sessions(canvas_id):
|
|||||||
@manager.route('/prompts', methods=['GET']) # noqa: F821
|
@manager.route('/prompts', methods=['GET']) # noqa: F821
|
||||||
@login_required
|
@login_required
|
||||||
def prompts():
|
def prompts():
|
||||||
from rag.prompts.prompts import ANALYZE_TASK_SYSTEM, ANALYZE_TASK_USER, NEXT_STEP, REFLECT, SUMMARY4MEMORY, RANK_MEMORY, CITATION_PROMPT_TEMPLATE
|
from rag.prompts.prompts import ANALYZE_TASK_SYSTEM, ANALYZE_TASK_USER, NEXT_STEP, REFLECT, CITATION_PROMPT_TEMPLATE
|
||||||
return get_json_result(data={
|
return get_json_result(data={
|
||||||
"task_analysis": ANALYZE_TASK_SYSTEM + ANALYZE_TASK_USER,
|
"task_analysis": ANALYZE_TASK_SYSTEM + ANALYZE_TASK_USER,
|
||||||
"plan_generation": NEXT_STEP,
|
"plan_generation": NEXT_STEP,
|
||||||
"reflection": REFLECT,
|
"reflection": REFLECT,
|
||||||
"context_summary": SUMMARY4MEMORY,
|
#"context_summary": SUMMARY4MEMORY,
|
||||||
"context_ranking": RANK_MEMORY,
|
#"context_ranking": RANK_MEMORY,
|
||||||
"citation_guidelines": CITATION_PROMPT_TEMPLATE
|
"citation_guidelines": CITATION_PROMPT_TEMPLATE
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user