Feature/memory work (#68)

* feat(memory): add conversation title to conversation list response for frontend display

* feat(memory): optimize conversation retrieval, enable working memory to return conversation question summaries

* fix(memory): fix conversation re-generation logic

* style(desc): improve description of get_conversation function
This commit is contained in:
Eternity
2026-01-12 12:16:04 +08:00
committed by GitHub
parent d9f03a7e94
commit 2a12be310d
5 changed files with 50 additions and 31 deletions

View File

@@ -33,18 +33,18 @@ You are a professional dialogue content summarizer, specializing in extracting c
- Language: Please strictly output content in the language specified by the <Language> tag.
- Structure: JSON object with five fields,:
1. `theme`: A concise phrase describing the conversations core topic (e.g., "inquiry about delivery time rules");
2. `theme_intro`: A brief explanation of the conversations core theme to clarify its specific scope and focus (e.g., "The conversation focuses on the user's inquiry about delivery time standards for regular and remote areas");
3. `summary`: A single sentence including "user request + AI response + interaction logic" (≤100 words);
4. `takeaways`: A list of brief bullet-point takeaways summarizing the key points from the conversation (e.g., ["User clarified delivery time differences between regular and remote areas"]).
2. `summary`: A single sentence including "user request + AI response + interaction logic" (≤150 words);
3. `takeaways`: A list of brief bullet-point takeaways summarizing the key points from the conversation (e.g., ["User clarified delivery time differences between regular and remote areas"]).
4. `question`: A list of brief declarative statements summarizing the pitfalls the user encountered during the current conversation.Return an empty list if none are present.
5. `info_score`: Numerical score (0100) representing conversation information richness.
- Language Style: Concise, objective, conversational (avoid overly formal terms).
# Example JSON Output
{
"theme": string,
"theme_intro": string,
"summary": string,
"takeaways": array[string],
"question": array[string]
"info_score": 85
}
{% endraw %}