Repository navigation
v1.6.0
This release adds documents to projects, with a gauge that shows what each model takes of them, and starter suggestions under the empty message box.
Project documents
A project can now carry documents: text files that the model should know in every conversation of the project, such as a style guide, a price list or a product FAQ. They are added from the new Context entry of the project settings, which opens the context pages of the project, on the whole screen on a phone. The Documents page takes text (.txt), Markdown, CSV and PDF files, picked or dropped, up to 1 MB each and 5 MB of text per project. Only the text is kept: it is read once when the file is added, and a PDF with no text layer is refused. A file that cannot be added says why, under the drop zone, without stopping the others. Each document shows its size in estimated tokens and has a button to remove it. Documents apply at once, without waiting for the project settings to be saved.
The documents are written in IndexedDB, which holds more than the browser storage the conversations use, and stay in the browser: they are not exported, the embedded widget sends none, deleting a project deletes its documents, and Clear all data removes them too. Settings → Data shows their size under the storage gauge. Where the browser refuses IndexedDB, a private window for instance, the documents live in memory until the tab closes, and the page says so. The other tabs follow the changes.
Every request of a conversation of the project carries them, in the system message, after the instructions and under a short introduction, each one under its name, oldest first. They are fitted to the window of the model that answers, after the conversation has been compacted if needed, and the compaction never counts them. When the documents do not all fit, the When the context overflows choice of the project decides: Truncate, the default, sends them in order until the room runs out and cuts the one that crosses the limit, with a note that its end was removed, while Exclude sends none of them, so the model never works from half a document. The room is counted in steps of a thirty-second of the window, so the cut does not move at every message and a llama.cpp server can reuse what it already computed. When a server still refuses a request for exceeding its context and the documents account for the excess, the request is sent again once with the documents cut by that excess, before the conversation is split or summarized.
The Context page also has a Send the instructions switch. Off, the project sends no instructions, the global system prompt applies to its conversations, and the header and the composer stop showing them. The switch and the overflow choice are saved with the project settings, and the page below them shows a gauge for each enabled model: what the project shares, the conversation and the room kept for the answer, with a badge saying whether everything fits, or whether the window truncates the documents or sends none. Those gauges follow your edits before you save. A conversation of a project that shares something also gets a Project context section in its model menu, with the same gauges measured on the conversation as it stands, so you can see which model takes the whole context before picking one; the Project context in the model menu switch of Settings → Appearance turns that section off. The sizes are estimates, at four characters per token, and a model whose server does not announce its window is measured against the fallback of the chunking settings.
Starter suggestions
A deployment can list a few starter prompts in config.json, under a new suggestions key: a map from a language code to categories, each with a label, an optional icon among pen-line, chart-column and code, and items with a title and an optional prompt, the title standing in when there is none. They show under the message box of an empty conversation, including the first one of a project, as one pill per category. A pill opens its suggestions in place of the pills, pointing at or focusing one previews its prompt in grey in the field, and choosing it sends the prompt with the files already attached. They disappear as soon as you type, while an answer is produced, in the compare view and in the embedded widget, and without the key nothing changes. The interface language is used, else English, else the first language written. The example config of the repository has a short list.
Smaller changes
The Data page says how much room the project documents take, and its Clear all data confirmation names them. The instructions chip of the composer and the instructions popover of the header are no longer shown for a project whose instructions switch is off.
Nothing has to change when upgrading from 1.5.0: config.json, local overrides and stored settings are read as before. A project gains two optional fields only when you change the context options, and the browser creates a small IndexedDB database the first time the page loads.
Documentation
The README and the features, models and embed guides describe the project documents, the context pages and the starter suggestions, and carry the new screenshots, in the light and dark folders.