feat: improve reminders summarizer output and system metadata handling

This commit is contained in:
cesnimda
2026-03-22 14:58:56 +01:00
parent 2ae27433e8
commit f1c7c38a19
9 changed files with 177 additions and 110 deletions
+15 -2
View File
@@ -237,11 +237,24 @@ async def summarize(req: SummarizeRequest):
if info["tech"]:
uniq = []
for t in info["tech"]:
for t in _rank_tech_skills(info["tech"]):
if t not in uniq:
uniq.append(t)
lines.append("")
lines.append("Relevant hard skills: " + ", ".join(uniq[:14]))
lines.append("Top hard skills: " + ", ".join(uniq[:10]))
if info["soft"]:
uniq_soft = []
for s in info["soft"]:
if s not in uniq_soft:
uniq_soft.append(s)
lines.append("")
lines.append("Relevant soft skills: " + ", ".join(uniq_soft[:8]))
out = "\n".join(lines).strip()
cache[key] = out
return {"summary": out, "cached": False}
skills: " + ", ".join(uniq[:14]))
if info["soft"]:
uniq_soft = []