Repository navigation
fix(archivist): write filings in the household language - #185
Merged
Merged
Conversation
Image captures in a German household were filed with English titles,
summaries and tags. The classify prompts told the model to write in
"the content's own language". A pasted photo has no words, so the model
followed the language of the prompt, which is English. The same rule
kept a Spanish invoice in Spanish, although the family reads the wiki
compiled from these entries in their own language.
The archivist now writes title, summary, facts, action items and tags
in the household language (`[core] language`), whatever language the
source is in:
- the prose is translated; names, amounts, numbers, addresses and
established technical terms ("Kubernetes") stay as printed
- the document itself, its PDF and OCR text, is not changed
- the prompt names only the household language, so an English
household is never shown German
- language names come from one shared table, which the diary uses too
German content filed on an English install is now summarized in
English. Entries filed before this change keep their language.
Fixes: 2edcce3 ("fix(docs): stop an English household getting German summaries (#86)")
A room can now choose the language the archivist files in, for example a room for English IT bookmarks in a German household: - `!config language en` writes every filing from that room in English; `de`, `es`, `fr`, `it`, `nl` and `pt` work the same way - `!config language source` keeps the language the content is written in; content without words of its own falls back to the household language - `!config language default` resets the room to the household language The setting applies to captures, documents and corrections sent in that room, and `!config` lists it with the household language named. The worked examples in the prompt follow the chosen language, so an English room is never shown German examples. Email captures and `stack docs reprocess` keep the household language.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
!config language <code>, keep the source's with!config language source, and reset with!config language default.Two commits that each stand alone: rebase merge.