V2-Dev-Stand: Skala 1-10, Benefits/Concerns, DEV-Isolation und Gitea-Doku.
Bündelt die Neuentwicklung in AssigmentMonitorV2 (eigene Ports/DB), die Umstellung auf numerische Bewertungen, Meeting-Checklisten, KI-Tagging und die geplante Feedback-Kaskade — als Basis für Versionsverwaltung in Gitea. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
782678a1cf
commit
234f87d408
71 files changed
+7567
-705
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { getAllRows } from '../crud'
|
||||
import type { ConversationEntry, MeetingInstance, ConversationLineTag } from '../../../src/db/types'
|
||||
|
||||
/**
|
||||
* Flacht `lineTags`/`generalNoteTags` über ALLE Assignments hinweg zu einem globalen
|
||||
* (Zeilentext → Kriterium)-Korpus ab — Grundlage für die lokale Ähnlichkeitssuche im
|
||||
* selbstlernenden Kriterien-Tagging (Client, `src/utils/criterionSuggestion.ts`). Gleiches
|
||||
* Iterationsmuster wie `getCriterionUsageMap()` in `feedbackStructure.ts`, hier aber die
|
||||
* Rohdaten statt aggregierter Zählungen. Rückgabetyp ist bewusst `ConversationLineTag[]` (kein
|
||||
* neuer Typ) — jeder Korpus-Eintrag IST eine bereits vergebene Zeilen-Zuordnung, nur aus zwei
|
||||
* Quellen (Gesprächsbeiträge + allgemeine Notizen) zusammengeführt.
|
||||
*/
|
||||
export function getGlobalLineTagCorpus(): ConversationLineTag[] {
|
||||
const corpus: ConversationLineTag[] = []
|
||||
|
||||
for (const e of getAllRows<ConversationEntry>('conversationEntries')) {
|
||||
for (const tag of e.lineTags ?? []) {
|
||||
corpus.push({ text: tag.text, criterionItemId: tag.criterionItemId })
|
||||
}
|
||||
}
|
||||
for (const m of getAllRows<MeetingInstance>('meetingInstances')) {
|
||||
for (const tag of m.generalNoteTags ?? []) {
|
||||
corpus.push({ text: tag.text, criterionItemId: tag.criterionItemId })
|
||||
}
|
||||
}
|
||||
|
||||
return corpus
|
||||
}
|
||||
Reference in new issue
Block a user