feat: improve reminders summarizer output and system metadata handling
This commit is contained in:
+15
-2
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user