Skip to content

Commit

Permalink
fix: add system prompt to zendesk rag (#3604)
Browse files Browse the repository at this point in the history
# Description

Add System prompt to zendesk rag

fix: ENT-673
  • Loading branch information
chloedia authored Feb 27, 2025
1 parent bc6d75d commit 501783b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/quivr_core/rag/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ def _define_custom_prompts() -> CustomPromptsDict:
{similar_tickets}
-------------------------------------
------ Current Ticket History ------
{system_prompt}
-------------------------------------
------ Client Query ------
{client_query}
--------------------------
Expand Down
3 changes: 3 additions & 0 deletions core/quivr_core/rag/quivr_rag_langgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,9 @@ def generate_zendesk_rag(self, state: AgentState) -> AgentState:
inputs = {
"similar_tickets": docs,
"client_query": user_task,
"system_prompt": self.retrieval_config.prompt
if self.retrieval_config.prompt
else "",
}

msg = custom_prompts.ZENDESK_TEMPLATE_PROMPT.format(**inputs)
Expand Down

0 comments on commit 501783b

Please sign in to comment.