Allow reprocessing after video drop: skip audio/shots steps lacking media, limit reprocess dropdown to docs+; plus pending ext/report/ui changes

This commit is contained in:
Stefano Zini
2026-11-06 10:56:30 +01:00
parent d1d71ddafc
commit b80207a186
6 changed files with 36 additions and 23 deletions
+8 -3
View File
@@ -66,6 +66,11 @@ def _tick(note):
db.tick(PROG[0], PROG[1], max(PROG[2], PROG[1] + 1) if note != "fine" else PROG[1], note)
# User refinement prompt saved in meta (set from the reprocess dialog); appended to topic and overview prompts.
def _refine(name):
text = db.meta(name).get("refine", "")
return f"\nIstruzioni aggiuntive dell'utente per il report: {text}" if text else ""
# Title typed manually in the meeting metadata (wins over the LLM title).
def _manual_title(name):
return db.meta(name).get("title", "")
@@ -492,8 +497,8 @@ def run(name, window_words=3000):
n_chunks + 3 * n_chunks + 1,
] # chunks + ~3 topics per chunk (docs pass) + overview
db.tick(name, 0, PROG[2], f"argomenti: blocco 1 di {n_chunks}")
# System prompt + glossary (or "nessuno").
system = SYS_A + (", ".join(glossary) or "nessuno")
# System prompt + glossary (or "nessuno") + optional user refinement.
system = SYS_A + (", ".join(glossary) or "nessuno") + _refine(name)
topics, buffer, words, wstart = [], [], 0, 0
# Send the buffered chunk to the LLM and append its topics.
@@ -569,7 +574,7 @@ def run(name, window_words=3000):
# Overview pass: title and TL;DR from the topics.
overview = (
chat(
SYS_B,
SYS_B + _refine(name),
json.dumps(
[
{