User GuidesRetrieve & Chat
Knowledge-Base Q&A with Citations
Ask questions that retrieve from workspace documents, read the citations, and follow up without losing sources
Knowledge-Base Q&A with Citations
Overview
Knowledge-base Q&A answers from the documents in a workspace and cites the passages it used. Instead of relying on the model's memory, the assistant searches the workspace knowledge base, reads the matching chunks and links the sources in its answer.
Prerequisites
- At least one document, note or synced source in the workspace with status Ready.
- Membership in the workspace. Private workspaces only search their own documents.
- An embedding model configured for the workspace. Without one, search returns no hits.
Step-by-step
- Open the workspace and start a new chat.
- Ask a question in natural language. Name the document or the topic when the workspace is large, for example
In the travel policy, what is the hotel cap?. - Read the answer and its citations. Each citation identifies the document and the passage used.
- Click a citation to open the source document at the cited content.
- Ask follow-ups in the same chat. The assistant keeps the conversation context and can retrieve new sources for each turn.
- To force a fresh retrieval, ask the assistant to check the knowledge base for a specific term.
Example
What does our travel policy say about domestic hotel limits, and does any document mention an exception for Jakarta?
The answer quotes the limit, cites the policy document, and adds the exception clause with a second citation from the same document.
Expected result
- The answer is grounded in retrieved passages, with inline citations.
- The cited documents open at the referenced content.
- When no document covers the question, the assistant says it could not find it in the knowledge base instead of inventing an answer.
Limits and troubleshooting
- Retrieval returns a limited set of chunks per question (the
surfwise_search_knowledge_basetool defaults to 5, tunable up to 20). Broad or ambiguous questions may retrieve the wrong passages; name the document or rephrase. - Citations reference the document, not a page number, unless the source provides one. Use the document viewer to confirm context.
- Only Ready documents are searchable. Check the knowledge-base status for Pending or Failed rows.
- If answers ignore a document you know exists, re-index it after changing OCR or embedding settings, and confirm it is in the same workspace.
- Organization knowledge bases are available according to the organization's workspace and permission settings; a workspace may not see every organization source.