Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ask your notes

People ask their notes a question in the apps and get an answer written by a chat model from their own pages, with a link to each block it used. For standard workspaces the answer is made on the server, the same way for every app:

  1. The server finds blocks for the question: full-text search, plus search by meaning if an embedding model is set, only in workspaces the person can read.
  2. It sends them, with the question, to the chat model the person chose.
  3. It streams the answer back, and saves the conversation in the account, so every device has it.

The answer is written by a task of its own on the server, so if a phone sleeps or the connection drops, it’s still saved.

Set it up

Ask needs a chat model. Without one, the apps say Ask isn’t set up and point here. Add one as an AI provider and make it the default:

[ai.providers.vendor]
kind = "mistral"
api_key_file = "/run/secrets/mistral"
models = ["mistral-small-latest"]

[ai.defaults]
chat = "vendor/mistral-small-latest"

People can choose another model, from the server’s providers or their own, in Ask’s model menu.

[ask.chat] is the older, single-model form, and still works:

[ask.chat]
base_url = "http://vllm.example.test:8000/v1"
model = "meta-llama/Llama-3.1-8B-Instruct"
name = "Llama (our server)"

Limits

KeyDefault
[ask] enabledtruefalse turns Ask off
[ask] sources12The most blocks an answer draws on
[ask] max_context_chars24000The most text from pages sent with one question
[ask] history_turns4Earlier questions and answers sent with a follow-up
[ask] per_minute / per_day10 / 500Questions one person may ask; two at once at most
[ask] timeout_secs300The longest an answer may take
[ask] idle_secs120The longest the model may go quiet once it’s started
[ask] audit_days90How long the record of what was sent is kept
max_tokens (on the provider)4096The longest answer; a reasoning model’s thinking counts too

The per-person limits count the audit records, so they hold across replicas.

What to know before turning it on

  • The provider sees the blocks it’s sent: up to sources blocks, and the question. The question also goes to the embedding model.
  • Journal entries are left out unless the person turns on Settings → Journal → Ask your notes reads the journal.
  • Conversations are the asker’s alone. Other members of a workspace don’t see them. Titles and messages are sealed with the workspace’s key.
  • Text from pages is data, not instructions. Each block goes to the model inside an element named with a random tag made for that question, which a page can’t close, and the instructions say never to obey what a source says. The model has no tools, and the apps show answers as plain text with citations: nothing in an answer can load an image or follow a link.
  • Reasoning models are fine: a <think> block at the start of an answer is held back, and reasoning sent in its own field is never read. Their thinking counts toward max_tokens; if answers come back empty, raise it.

Encrypted workspaces and guests

In an end-to-end encrypted workspace, Ask runs on the person’s device: it finds the blocks there, builds the prompt there, and sends it to a model kept on that device. Only if an owner lets the server’s AI read pages when asked does the prompt go through the server, to one of its models or the person’s account providers, one request at a time. A guest has no server search or Ask; their devices search the pages shared with them.