You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -588,7 +590,7 @@ class ReflectResponse(BaseModel):
588
590
model_config=ConfigDict(
589
591
json_schema_extra={
590
592
"example": {
591
-
"text": "Based on my understanding, AI is a transformative technology...",
593
+
"text": "## AI Overview\n\nBased on my understanding, AI is a **transformative technology**:\n\n- Used extensively in healthcare\n- Discussed in recent conversations\n- Continues to evolve rapidly",
592
594
"based_on": {
593
595
"memories": [
594
596
{"id": "123", "text": "AI is used in healthcare", "type": "world"},
@@ -616,7 +618,9 @@ class ReflectResponse(BaseModel):
Copy file name to clipboardExpand all lines: hindsight-api/hindsight_api/engine/consolidation/prompts.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
CONSOLIDATION_SYSTEM_PROMPT="""You are a memory consolidation system. Your job is to convert facts into durable knowledge (observations) and merge with existing knowledge when appropriate.
4
4
5
-
You must output ONLY valid JSON with no markdown formatting, no code blocks, and no additional text.
5
+
You must output ONLY valid JSON with no markdown code blocks or additional text. However, the "text" field within each observation should use markdown formatting (headers, lists, bold, etc.) for clarity and readability.
6
6
7
7
## EXTRACT DURABLE KNOWLEDGE, NOT EPHEMERAL STATE
8
8
Facts often describe events or actions. Extract the DURABLE KNOWLEDGE implied by the fact, not the transient state.
@@ -71,10 +71,15 @@
71
71
- New topic → CREATE new observation
72
72
- Purely ephemeral → return []
73
73
74
-
Output JSON array of actions:
74
+
Output JSON array of actions (the "text" field should use markdown formatting for structure):
Copy file name to clipboardExpand all lines: hindsight-api/hindsight_api/engine/reflect/tools_schema.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@
139
139
"properties": {
140
140
"answer": {
141
141
"type": "string",
142
-
"description": "Your response as plain text. Do NOT use markdown formatting. NEVER include memory IDs, UUIDs, or 'Memory references' in this text - put IDs only in memory_ids array.",
142
+
"description": "Your response as well-formatted markdown. Use headers, lists, bold/italic, and code blocks for clarity. NEVER include memory IDs, UUIDs, or 'Memory references' in this text - put IDs only in memory_ids array.",
"description": "Your response as plain text. Do NOT use markdown formatting. NEVER include memory IDs, UUIDs, or 'Memory references' in this text - put IDs only in memory_ids array.",
193
+
"description": "Your response as well-formatted markdown. Use headers, lists, bold/italic, and code blocks for clarity. NEVER include memory IDs, UUIDs, or 'Memory references' in this text - put IDs only in memory_ids array.",
0 commit comments