feat: record from the metadata of the file when no model analyses it #78

Closed
opened 2026-11-29 18:12:30 +00:00 by crapougnax · 0 comments
Owner

Without a language model (or when it fails), the draft record takes the file name as title.

Expected: read what the file says of itself:

  • Markdown: frontmatter, first # heading;
  • HTML: <title>, <meta name="author|description">;
  • PDF: document information (title, author, creation date), read by pdf-parse;
  • DOCX, ODT, EPUB: docProps/core.xml, meta.xml, the OPF metadata.

With a model, these metadata are given to it as hints.

Without a language model (or when it fails), the draft record takes the file name as title. **Expected**: read what the file says of itself: - Markdown: frontmatter, first `#` heading; - HTML: `<title>`, `<meta name="author|description">`; - PDF: document information (title, author, creation date), read by `pdf-parse`; - DOCX, ODT, EPUB: `docProps/core.xml`, `meta.xml`, the OPF metadata. With a model, these metadata are given to it as hints.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
modaka/studio#78
No description provided.