Skip to content

Commit 501783b

Browse files
authored
fix: add system prompt to zendesk rag (#3604)
# Description Add System prompt to zendesk rag fix: ENT-673
1 parent bc6d75d commit 501783b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

core/quivr_core/rag/prompts.py

+4
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ def _define_custom_prompts() -> CustomPromptsDict:
280280
{similar_tickets}
281281
-------------------------------------
282282
283+
------ Current Ticket History ------
284+
{system_prompt}
285+
-------------------------------------
286+
283287
------ Client Query ------
284288
{client_query}
285289
--------------------------

core/quivr_core/rag/quivr_rag_langgraph.py

+3
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,9 @@ def generate_zendesk_rag(self, state: AgentState) -> AgentState:
913913
inputs = {
914914
"similar_tickets": docs,
915915
"client_query": user_task,
916+
"system_prompt": self.retrieval_config.prompt
917+
if self.retrieval_config.prompt
918+
else "",
916919
}
917920

918921
msg = custom_prompts.ZENDESK_TEMPLATE_PROMPT.format(**inputs)

0 commit comments

Comments
 (0)