Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / aidependencies / llm

Local Q&A Model

Answer questions on-device by quoting your Knowledge

AI ExtensionWeb app

Let the Q&A Agent answer on your device by quoting the right passage from your knowledge base, instead of asking a chat model.

Local Q&A Model is a model you plug into the Model slot of the Q&A Agent. With it connected, the agent answers in your browser, free and private, and only with text that is really in your documents. When the agent runs:

  1. It finds the most relevant passages in its connected Local Knowledge (Knowledge documents (k) on the agent, 4 by default).
  2. The model looks for the answer in each passage (each cut to Max knowledge context length, 4000 characters by default).
  3. The best-scoring answer wins, with the document it came from.

Because it can only quote, the Q&A Agent must have a Knowledge connected when you use this model.

  • Look up facts in your own documents without sending them or the question to a server.
  • You want short answers quoted word for word, not generated text.

For open questions that need a written, combined answer, connect a chat model such as Web LLM instead.

SettingTypeWhat it does
Model Model pickerAn on-device extractive Q&A model (e.g. DistilBERT SQuAD). Install one from Local AI, or download it from the picker.

The Model picker lists on-device question-answering models (for example DistilBERT SQuAD). Install one from the Local Models page, or download it from the picker. When you publish or share the workflow, Model is cleared, so whoever installs it picks their own.

This node has no output port. It plugs into a slot on another node instead of passing items along.

The Q&A Agent produces the output: answer (the quoted text), score (how sure the model is; higher is better) and source (the document it came from).

None. This node needs no connection and has no slots for other nodes.

  1. Fill a knowledge base with your product manuals on the knowledge bases page.
  2. A Context Menu trigger on selected text (the question).
  3. Q&A Agent with Prompt {{ $input.selectionText }}, with Local Q&A Model in its Model slot and Local Knowledge (your manuals) in its Knowledge slot.
  4. Browser Notification with Message {{ $input.answer }} ({{ $input.source }}).
  • “The Local Q&A Model answers by quoting a passage, so it needs a context: connect a Knowledge to the Q&A Agent.” Connect a Local Knowledge to the agent.
  • “Choose an on-device Q&A model in the Local Q&A Model node.” Model is empty. Pick a model.
  • “Model “…” isn’t available. Install it from Local AI.“ Install it from Local Models, or download it from the picker.
  • The answer is empty. None of the passages found contained an answer (the run log shows a warning). Raise Knowledge documents (k), rephrase the question, or check that the knowledge base holds the information.
Edit page

Last updated:

Was this page useful?
Ask Aria about Local Q&A Model