Meeting title: Teams topic first, else from the transcript; never from shots
One shot copied a shared AWS page title into meeting_title; it became the report title and the docs search query, pulling off-topic Confluence pages into the summaries. Shots no longer emit the meta title; report/docs ignore old "video" metas and fall back to the LLM title from the transcript topics (docs then searches with transcript-derived queries only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bc16b01232
commit
edb8ee3731
+1
-1
@@ -25,7 +25,7 @@ def _twg(*args, timeout=120):
|
|||||||
def _run(name):
|
def _run(name):
|
||||||
if not os.path.exists(TWG): raise FileNotFoundError("twg not found")
|
if not os.path.exists(TWG): raise FileNotFoundError("twg not found")
|
||||||
d = db.out_dir(name)
|
d = db.out_dir(name)
|
||||||
meta = [json.loads(e["text"]) for e in db.events(name, "meta")]
|
meta = [json.loads(e["text"]) for e in db.events(name, "meta") if e["who_key"] != "video"] # Teams topic only, never a shot guess
|
||||||
title = (meta[-1].get("title") or "") if meta else ""
|
title = (meta[-1].get("title") or "") if meta else ""
|
||||||
shots = json.loads((d / "shots.json").read_text(encoding="utf-8")) if (d / "shots.json").exists() else []
|
shots = json.loads((d / "shots.json").read_text(encoding="utf-8")) if (d / "shots.json").exists() else []
|
||||||
gl = json.loads((d / "glossary.json").read_text(encoding="utf-8")) if (d / "glossary.json").exists() else []
|
gl = json.loads((d / "glossary.json").read_text(encoding="utf-8")) if (d / "glossary.json").exists() else []
|
||||||
|
|||||||
+1
-1
@@ -186,7 +186,7 @@ def run(name, window_words=3000):
|
|||||||
usable = lambda s: s["kind"] in CONTENT_KINDS and (not crop_ok or (s.get("view") or "").startswith("view_"))
|
usable = lambda s: s["kind"] in CONTENT_KINDS and (not crop_ok or (s.get("view") or "").startswith("view_"))
|
||||||
evs = db.events(name, "meta", "present", "share_start", "share_stop", "chat", "hand")
|
evs = db.events(name, "meta", "present", "share_start", "share_stop", "chat", "hand")
|
||||||
names = db.speaker_names(name)
|
names = db.speaker_names(name)
|
||||||
meta = [json.loads(e["text"]) for e in evs if e["kind"] == "meta"]
|
meta = [json.loads(e["text"]) for e in evs if e["kind"] == "meta" and e["who_key"] != "video"] # Teams topic only; else LLM title from transcript
|
||||||
title = (meta[-1].get("title") or "") if meta else ""
|
title = (meta[-1].get("title") or "") if meta else ""
|
||||||
shares = _shares(evs, dur)
|
shares = _shares(evs, dur)
|
||||||
att, src, counts = {}, set(), {}
|
att, src, counts = {}, set(), {}
|
||||||
|
|||||||
@@ -185,6 +185,4 @@ def run(name, max_frames=60, scene=0.05):
|
|||||||
if pr: ev.append((r["t"], "share_start", "video", pr, ""))
|
if pr: ev.append((r["t"], "share_start", "video", pr, ""))
|
||||||
last = pr
|
last = pr
|
||||||
if last: ev.append((dur, "share_stop", "video", last, ""))
|
if last: ev.append((dur, "share_stop", "video", last, ""))
|
||||||
titles = collections.Counter(r["meeting_title"] for r in rows if r["meeting_title"])
|
|
||||||
if titles: ev.append((0, "meta", "video", "", json.dumps({"title": titles.most_common(1)[0][0], "call_elapsed": "", "url": ""}, ensure_ascii=False)))
|
|
||||||
db.add_events(name, ev)
|
db.add_events(name, ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user