adrienbrdne commited on
Commit
748d181
·
verified ·
1 Parent(s): 1bcef92

Update kig_core/prompts.py

Browse files
Files changed (1) hide show
  1. kig_core/prompts.py +4 -1
kig_core/prompts.py CHANGED
@@ -86,6 +86,7 @@ SUMMARIZER_PROMPT = ChatPromptTemplate.from_template(SUMMARIZER_TEMPLATE)
86
  # It references the Pydantic model 'KeyIssue' for the desired format.
87
  KEY_ISSUE_STRUCTURING_TEMPLATE = f"""Based on the provided context (summaries of relevant documents, research findings, etc.), identify and formulate distinct Key Issues related to the original user query.
88
  For each Key Issue identified, provide the following information in the exact JSON format described below. Output a JSON list containing multiple KeyIssue objects.
 
89
  JSON Schema for each Key Issue object:
90
  [{{{{
91
  "id": "Sequential integer ID starting from 1",
@@ -97,7 +98,9 @@ JSON Schema for each Key Issue object:
97
 
98
  User Query: {{user_query}}
99
  Context: {{context}}
100
- Generate the JSON list of Key Issues based *only* on the provided context and user query. Ensure the output is a valid JSON list.
 
 
101
  """
102
  KEY_ISSUE_STRUCTURING_PROMPT = ChatPromptTemplate.from_template(KEY_ISSUE_STRUCTURING_TEMPLATE)
103
 
 
86
  # It references the Pydantic model 'KeyIssue' for the desired format.
87
  KEY_ISSUE_STRUCTURING_TEMPLATE = f"""Based on the provided context (summaries of relevant documents, research findings, etc.), identify and formulate distinct Key Issues related to the original user query.
88
  For each Key Issue identified, provide the following information in the exact JSON format described below. Output a JSON list containing multiple KeyIssue objects.
89
+
90
  JSON Schema for each Key Issue object:
91
  [{{{{
92
  "id": "Sequential integer ID starting from 1",
 
98
 
99
  User Query: {{user_query}}
100
  Context: {{context}}
101
+ Generate the JSON list of Key Issues based *only* on the provided context and user query.
102
+ The idea is to have a maximum of 10 Key Issues covering the most important and innovative topics you can identify.
103
+ Ensure the output is a valid JSON list.
104
  """
105
  KEY_ISSUE_STRUCTURING_PROMPT = ChatPromptTemplate.from_template(KEY_ISSUE_STRUCTURING_TEMPLATE)
106