Skip to content

Commit 2256a09

Browse files
Instruct LLM to use section comments for placement decisions
The metadata comment fields were already being passed to the LLM but the system prompt didn't mention them. Now it explicitly tells the LLM to pay attention to the "comment" field when choosing a section.
1 parent a664b6c commit 2256a09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

faq_automation/rag_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- Do not invent unrelated content, base decisions strictly on the provided proposal and FAQ excerpts
4848
- When UPDATE, merge old and new answers into one, making the updated answer complete and containing all the information from both
4949
- When UPDATE, make sure the new question is reflective of the both new and old records
50-
- Carefully analyse existing sections to decide where it goes. Generic questions that don't fit any other section should go to "general"
50+
- Carefully analyse existing sections to decide where it goes. Pay close attention to the "comment" field in each section — it describes what kind of questions belong there. Generic questions that don't fit any other section should go to "general"
5151
5252
Example reasoning
5353
- If two FAQs are semantically the same but wording differs slightly → DUPLICATE.

0 commit comments

Comments
 (0)