Knowledge, memory, and RAG
Give chats and agents durable facts, searchable files, time-aware claims, reviewed source reconciliation, behavior skills, relationship context, and Obsidian notes with clear provenance.
Follow the numbered steps for the everyday path. Open Advanced details for compatibility, settings, technical limits, and deeper checks. Times are estimates; large downloads and model loading can take longer.
Screenshots show the real app with illustrative sample data. They show where controls are; example answers, jobs and telemetry are not measured results. Open any image at full size to follow along.
Find one workflow
Filter this collection by name, outcome, provider, engine, channel, mode, or command.
Add a fact to persistent memory
Save a preference or durable constraint that should survive new conversations.
Before you start
- The fact is appropriate to store persistently.
Open Knowledge > Memory. Turn on Use memory if needed, then click Add fact at the top.
In the inline Something your models should know about you field, write one precise fact. Choose its category under Goes under. Use Details… only when you need the structured Entity, Attribute and Value editor.
Click Save fact. Start a new Chat and ask a question that should use the fact.
Return to Memory and choose Manage → What was added to chats to inspect whether and why the fact reached the prompt.
You are done when
The fact appears in Memory, and the injection log records its use when it is relevant.
Advanced details
Only facts you wrote or approved are added to prompts automatically. Model suggestions wait for you to keep them; facts taken from documents or outside channels are never added automatically. Read Manage → How memory works for this distinction.
Memory reaches a chat while Use memory is on and Personal memory is selected under that chat’s Automatic context settings. Learn from chats controls automatic extraction from simple phrases such as “my name is…”, “I prefer…” and “remember that…”.
If something looks wrong
Review or delete auto-extracted memory
Check what the assistant remembered and remove stale or overly personal facts.
Before you start
- Memory extraction has produced one or more facts.
Open Knowledge > Memory and use Search facts to find the person, project or preference.
Click a fact to open Where this came from. Read who saved it, its workspace and dates, and any recorded evidence or confidence. Details… opens the structured editor.
Hover over a fact and use the pencil to edit its wording; press Return to save. Use Forget to remove a wrong, expired or unnecessary fact. The notice offers Undo if you removed it by mistake. The same actions are available by right-clicking.
Choose Manage → What was added to chats to review recent prompt injections and confirm that new prompts use the intended facts.
You are done when
Search no longer returns removed facts, and new prompt-audit entries show only the intended memory.
Advanced details
The source popover shows provenance that was actually recorded. Use Details… to edit Entity, Attribute and Value; use Open chat when a source conversation is available.
The Memory Injection Audit records where and why facts entered prompts and their approximate token cost. It stays in memory only and is not saved to disk. Clear audit log removes log entries, not facts.
If something looks wrong
Let a model suggest memories, and approve them yourself
Turn on model-assisted suggestions, decide whether a cloud model may ever see your messages, and approve or reject each suggested fact.
Before you start
- Use memory and Learn from chats are on.
- A local chat model is running (needed unless you allow cloud processing).
Open Knowledge > Memory. Choose Manage → Let a model tidy new facts to turn on model-assisted suggestions.
In the same Manage popover, leave Extractor model on Automatic eligible model, or choose a running model. Available models are marked Local or Cloud.
Leave Allow cloud processing off unless you accept that the messages you type may be sent to the chosen cloud model. Turning it on asks Allow Cloud Memory Enrichment?; choose Keep Local Only to back out.
Chat normally. After an answer, the model may propose a fact. Return to Memory, clear Search facts if needed, and scroll to Noticed in recent chats when suggestions are available.
Read the suggestion and its recorded source line, including the evidence quote and model when available. A cloud run is marked Cloud. Click Keep to save the fact or Not this to discard it.
Choose Manage → How memory works for the memory rules, or Manage → What was added to chats to inspect the injection log.
You are done when
A kept suggestion joins the saved facts; Not this removes the suggestion. Suggestions awaiting your choice do not enter prompts or the injection log.
Advanced details
With cloud processing allowed, only the message you typed is sent; assistant replies and tool output are never sent, and suggestions still need your approval.
Learn from chats also controls the simpler phrase-based extraction, such as “my name is…” or “remember that…”. Let a model tidy new facts adds a separate reviewable suggestion path; Keep is what approves a proposed fact.
If something looks wrong
Ask your PDF, text or Office documents
Set up document search, add a file and ask a question with numbered source passages.
Before you start
- A small representative PDF, text, Markdown or supported Office file.
- An embedding runtime for indexed Documents; a Ready chat model is needed to write an answer.
Open Knowledge > Documents. If search is not configured, choose Set Up Document Search or Set Up Search…. In the window that opens, pick a Search model (or Find Embedding Models… to download one first), click Start, then Test, then Use This Model.
Click Add Files… and select one small file. Wait until its row says Indexed. If it says Failed, the reason is printed in red under the file name. An orange note such as Docling fallback means a simpler reader was used; hold the pointer over it to see why.
In Ask your documents on the right, type a specific question whose answer you already know is in the file, such as What date does this agreement expire?, and click Ask. The Search documents box above the list only filters file names; the question searches the text.
Read the answer, then the numbered boxes under Passages it used. Each shows the file name and the page, slide or sheet when known. Click Inspect Source on a box to see that passage in the original file. The same numbers light up beside the files in the list.
Use Continue in Chat when you want a longer conversation about the answer (it needs a written answer, so it is unavailable when no chat model was running). The new chat carries your question, the answer and an attachment named Document sources.json holding the numbered passages. The full files are not attached.
Change the source file when necessary, then right-click the document in the list and choose Re-index. (The circular-arrows button under the list re-indexes every document that still has its file.) Verify a changed sentence is found and the old version no longer supplies the answer.
You are done when
The file is Indexed, a known-answer question finds the correct passage, and the answer’s citations support its claims. Without a chat model, retrieved passages remain useful on their own.
Advanced details
Indexed Documents use the selected embedding runtime. Chat attachments have a separate language-aware embedding path and can use the embedding runtime when configured; do not assume the two paths share one setup.
Source inspection records parser, chunking, embedding identity, document location and fallbacks. A replacement preserves its source and scope identity; deleting a source removes its eligible passages.
If something looks wrong
Keep a folder synchronized
Index a changing folder and let watched-folder reconciliation add, update, and remove document entries.
Before you start
- A stable local folder you control.
- A Ready Embedding instance.
Open Knowledge > Documents and click Watch Folder under the document list. Add Folder beside it indexes a folder once and does not keep watching it.
Choose the folder in the file dialog. There are no options: every supported file in that folder and all its subfolders is indexed, and only hidden files are skipped. Pick a folder that holds only what you want searched.
Indexing starts by itself as soon as you choose the folder. Wait for the progress bar under the list to finish; Cancel beside it stops the work.
Add or edit one harmless test file inside the folder and return to Documents; the change is normally picked up within moments. To check, click the gear (Configuration) and look under Watched Folders: the folder shows Live, how many supported files it holds and when it last changed, with Refresh to rescan now.
Open the Search Passages tab on the right, search for a unique phrase from the test file, then delete the test file when finished.
You are done when
The new/changed file appears without re-adding the folder, and its unique phrase is retrievable.
Advanced details
Folder reconciliation updates changed sources and removes missing descendants only within the watched root and scope. Launch reconciliation also catches files removed while Ai Keeper was closed.
An emptied source loses its old passages. To stop watching, click Remove beside the folder under Configuration > Watched Folders. That only stops the watcher: the files on disk are untouched and the documents already indexed stay in the list until you delete them there.
If something looks wrong
Answer a question using indexed documents
Ask for a grounded answer and verify that retrieved sources actually support it.
Before you start
- At least one indexed document with successful search results.
- A Ready chat model.
Open Knowledge > Documents and ask one known-answer question first. Confirm useful passages are found before moving to Chat.
Choose Continue in Chat under the document answer. To use your documents in an existing conversation instead, click Chat settings and tools in the chat header and, under Automatic context, turn on Global knowledge (your Knowledge library).
Ask for a concrete answer with citations and for missing information to be stated explicitly, for example Using these documents, compare the renewal dates and cite each source.
Open the cited excerpts and compare them with the original file. A quotation, date or calculation must actually be present or derivable from the cited material.
Ask a follow-up. A chat opened with Continue in Chat answers from the passages it was given; it does not search your documents again unless you turn on Global knowledge under Automatic context. If the answer drifts, narrow the question or go back to Documents and ask there. There is no collection or source picker.
You are done when
Retrieved chunks come from the intended source and support the answer; unsupported claims are clearly qualified.
Advanced details
Automatic retrieval preserves both global and selected-chat scope before ranking. A top-K setting chooses candidate passages, while prompt budgets still limit how much evidence reaches the model.
Retrieval and answer quality are separate. Run Retrieval Test to measure source ranking; run Chat Test and optional Ragas scoring to inspect answer support and correctness on the same questions.
If something looks wrong
Create and link a Wiki page
Write a curated internal reference page with tags, links, backlinks, and edit history.
Before you start
- A topic that benefits from a maintained canonical page.
Open Knowledge > Wiki. In the page-list Manage menu choose New page…. In New Wiki Page, enter a clear, unique Title and a Category.
In Content, write the stable facts, decisions, owner, and last-reviewed date. Type focused tags in Tags (comma-separated), then click Create.
To link two pages, include the other page’s exact title in the new page’s text before creating it. Title matches create links automatically, ignoring case. Adding text later with Edit page does not create new links.
Select each page and expand Details below its text. Check Links To on the referring page and Referenced By on the other.
In the selected page’s Manage menu choose Edit page, make a small change, then click Save. Check Details → Metadata → Edit Count. The page-list Manage → Overview shows Recent Edits. Copy important text with Manage → Copy as Markdown before replacing it: earlier page text is not retained as a revision.
You are done when
The page appears in the list, Details shows its tags and links, and Edit Count increases after a saved change.
Advanced details
Automatic title matching runs when a page is created. Distinctive titles reduce accidental links; check the resulting Links To and Referenced By lists.
Pages are listed by most recently updated. Filter pages appears for a larger collection; Details contains tags, provenance, links and metadata. Saving an edit replaces the page text; claim History is separate from page revision history.
If something looks wrong
Classify legacy Wiki claims without losing history
Preview and migrate older claims into timeless facts, dated snapshots, or pointers to current truth while preserving the original revision.
Before you start
- An existing Wiki created before temporal claim metadata was introduced.
- A backup if the Wiki contains irreplaceable manual edits.
Open Knowledge > Wiki > Health and find Legacy temporal classification. Read the preview counts for timeless, snapshot, and pointer claims before changing anything.
Interpret the proposed classes: stable facts become timeless; potentially volatile facts become 30-day snapshots; source-backed claims become pointers to their current source.
Choose Review & Migrate. Read the confirmation, then choose Apply Classification only when the proposed rules fit this Wiki.
A lint pass runs by itself after you apply; click Run Lint to repeat it. Then open a page on Pages and, under Claims, look at one claim of each kind: check Observed, Valid, Freshness or Current truth.
Expand History under the migrated claim. The pre-migration text must still be listed there with a Superseded date rather than overwritten.
You are done when
Health no longer offers legacy classification for the migrated claims, lint reports their real freshness issues, and the original values remain in revision history.
Advanced details
The Legacy temporal classification row appears under Knowledge Health only while unclassified claims exist, with the three counts on one line. The confirmation states the rule: each original claim is preserved as a revision; source-backed claims become pointers, volatile claims become 30-day snapshots and stable claims become timeless.
Applying the classification starts a lint pass by itself, so new freshness issues can appear under Lint & Provenance straight away. That is the expected result, not a failed migration.
If something looks wrong
Resolve stale or invalid Wiki claims
Use Wiki Health to find undated volatile claims, stale observations, and broken current-truth pointers before they reach retrieval.
Before you start
- At least one Wiki page with claims.
- Access to the source when re-observing or creating a pointer.
Open Knowledge > Wiki > Health and click Run Lint. Review groups for missing temporal metadata, missing observation dates, stale observations, and invalid source pointers.
Open an affected page from the lint result. Inspect the claim's temporal kind, Observed and validity dates, freshness window, Current truth pointer, evidence, and prior revisions.
Choose exactly one resolution: Re-observe Now after checking the source; Use Source Pointer when a stable current-truth location is available (the button is offered only when the page or its evidence has a usable source path); or Retire when the claim should no longer be active.
Run Lint again. Search Documents/Wiki for the claim and test a grounded Chat question if the claim should remain retrievable.
For a retired claim, confirm it remains in revision/history evidence but is excluded from normal current search and retrieval.
You are done when
The selected issue disappears after lint, active claims resolve to current evidence, and retired/stale/unresolved claims are not supplied as current retrieval context.
Advanced details
Lint & Provenance groups issues by type and lists up to five pages per group. Clicking one opens that page on the Pages tab, where an affected claim is marked Freshness review needed with the resolution buttons beneath it.
Use Source Pointer is offered only when the page's source path or the claim's evidence gives a pointer the freshness check can resolve. A retired claim raises no further freshness issues and keeps its History.
If something looks wrong
Export the Wiki as Markdown files
Write every Wiki page, plus an index and health reports, to a folder you can open, back up or read in another app.
Before you start
- At least one Wiki page.
Open Knowledge > Wiki > Health.
Under Compiler, click Compile Vault. The button reads Working while it runs.
Read the line that appears: the number of pages, claims and reports written, and the folder path.
Click Reveal to open the folder in Finder. Start from
index.md.Click Compile Vault again whenever you want the folder to match the Wiki; it is not updated by itself.
You are done when
The folder opens,index.md lists your pages, and the counts match the numbers at the top of Health.
Advanced details
The folder is memory_wiki_vault inside Ai Keeper’s Application Support folder. It includes report pages such as reports/contradictions.md.
A failed export shows Wiki export failed with the reason in red above the buttons.
If something looks wrong
Turn inbox sources into an approved wiki digest
Review messages from connected sources before approving them into lasting Wiki knowledge.
Before you start
- At least one supported connector inbox source.
- Permission to retain the selected messages as knowledge.
Open Knowledge → More → Sources, headed Where your documents come from. Click the intended inbox or channel card to expand its settings. If none is connected, use Add a source… → An inbox or channel to open Channels, configure one, then return. Check Mode is Digest to wiki and Require approval before wiki write is on; Retention controls how far back messages are read.
Click Request Run on that source (it reads Run Now when approval is off). Expand the source card and find its Sync History: the new run is marked Needs Approval and shows how many messages were scanned. The same request appears in Automation → Approvals under Knowledge Ingestion.
Expand Review N proposed changes on that run. Each entry names the page and what will happen to it (Create source, Replace source, Add evidence, Flag conflict, Create synthesis or Retire removed), with a short summary, Before: and After: previews and, when the match is not exact, a Match confidence. Sources that did not change are not listed.
The proposal cannot be edited: the only choices are Approve and Reject. If it contains private or irrelevant material, click Reject, deal with the messages where they came from, and request a new run. Do not approve a low-confidence page match until you have checked the target page.
Choose Approve. If a target page changed after your review, the app refreshes the proposal instead of applying it; review the new proposal and approve a second time.
Click Review Wiki and open the changed pages. Under Provenance & Health check Source Path and Source Hash; under Claims check the dates and each claim’s History.
You are done when
Only the reviewed proposal is applied, unchanged sources are no-ops, and every changed page retains provenance and revision history for the intended connector items.
Advanced details
A policy is created for each channel source and starts Enabled, in Digest to wiki mode, with Require approval before wiki write on, a 360-minute refresh interval and 30-day retention. Inbox only scans the messages and writes nothing to the Wiki. Run due runs every enabled policy whose Next due time has passed.
If a target page changed between your review and Approve, nothing is written and the run's message becomes: A target changed after review. The proposal was refreshed; review and approve it again. A run that proposes no changes says: Nothing to apply. Approving only closes this run.
If something looks wrong
Install, draft, and test a Skill
Add reusable instructions without granting executable plugin privileges.
Before you start
- A repeatable behavior you can describe as instructions.
- A test prompt with an observable expected result.
Open Extensions > More > Skills. Skills are managed only there; the Skills row in Knowledge > More > Prompts & Personality is a shortcut to the same screen. Its tabs are Recommended, Installed, Drafts, Curator and Registry.
On Installed, select a skill and read its Skill Prompt before switching it on. To write your own, open Drafts, click New Draft, fill in Display Name, Description and a Draft Prompt with one narrow purpose, then click Approve to Installed. An approved draft is installed switched off.
Switch a skill on with its checkbox in the Installed list or with Activate in its details; it then reads Active. To attach a skill to one agent, tick it under Skills in Agents > Agents > Edit.
Run the test prompt with the skill on, then off. Compare whether it produces the intended behavior without unwanted side effects.
Revise or disable the skill if it duplicates system context or conflicts with another active skill.
You are done when
The enabled skill produces a repeatable, visible behavior change and does not require executable permissions.
Advanced details
A draft stays out of every prompt until you click Approve to Installed, and it is installed switched off; it affects prompts only once you activate it. Draft Copy on an installed skill makes an editable draft of it, and Reset to Original undoes edits made to an installed skill's prompt.
Curator runs a dry run that scores installed skills for stale prompts, duplicate procedures and protected items and produces a report to review. It changes nothing by itself.
If something looks wrong
Connect an Obsidian vault
Reference existing notes alongside native Ai Keeper memory without copying an entire vault blindly.
Before you start
- A local Obsidian vault folder.
- Permission for Ai Keeper to read it.
Open Knowledge → More → Sources. Click Add a source… → An Obsidian vault, or Obsidian vaults… under Recent changes, to open the vault page. Click Add Vault, then Browse… in Add Obsidian Vault and choose the folder; Vault Name fills in from its name.
Click Add. The vault appears under Vaults with a green tick when its folder can be read. To leave private folders out, type their names in Ignored folders, comma-separated, optionally lower Max file bytes, and click Save Settings.
The notes are read as soon as you click Add and listed under Notes; there is no separate Connect button. Type a unique note title or phrase under Search Notes and click Search. The circular-arrows button on the vault row reads the vault again later.
Click the arrow button on a result (Open note) and confirm it is the note you expected. Click Import only on notes you truly want copied into the Wiki.
Use the Sources back button beside Obsidian vaults to return to the list of watched folders and connected inboxes.
You are done when
Search returns the expected note and its source path belongs to the selected vault.
Advanced details
Each vault has a Mode. URL Scheme works with the vault folder directly. Local REST adds REST base URL and REST API key fields and enables Discover Commands. Check Status reports whether the folder, and the REST address if used, can be reached.
Adding a vault reads its notes for search only. Nothing is copied into the Wiki until you click Import on a note or switch on Sync all notes to Memory Wiki.
If something looks wrong
.obsidian directory. The app accepts any readable folder, so it will not warn you about a wrong choice.Keep Obsidian and Memory Wiki reconciled
Mirror selected vault notes into source-backed Wiki pages, detect edits/renames/deletions, and optionally write reviewed changes back without overwriting a newer note.
Before you start
- A connected local Obsidian vault.
- A harmless test note that can be edited, renamed, and deleted.
Open Knowledge → More → Sources and click Obsidian vaults… under Recent changes. In the vault settings, set ignored folders and maximum file size, enable Sync all notes to Memory Wiki, and choose Save Settings.
Choose Reconcile Wiki Now for the first controlled pass. Confirm the status reports changed, unchanged, and failed counts; run it again without editing the vault and expect unchanged/no duplicate pages.
Enable Watch and schedule, set the fallback interval with Every N min, and click Save Settings; the switches do nothing until saved. Edit and rename the test note; wait for the filesystem watcher or periodic pass, then confirm its Wiki page keeps the same identity while the source path/hash and snapshot update.
Delete the test note and reconcile. Confirm the source page is marked deleted/retired and disappears from normal current search without erasing its Wiki history.
Optional: enable Allow conflict-checked write-back (it can be switched on only while Sync all notes to Memory Wiki is on) and click Save Settings. Edit an imported page in Knowledge > Wiki, then click Write Back to Obsidian under Provenance & Health in the page details. If the note changed since the last imported hash, sync and review instead of forcing the write.
You are done when
An unchanged pass is a no-op, edits and renames update one stable page, deletion retires current retrieval, and write-back succeeds only when the source hash still matches.
Advanced details
Everything in a vault's settings box is a draft until Save Settings: Sync all notes to Memory Wiki, Watch and schedule, Every N min (1 to 1440) and Allow conflict-checked write-back. Write-back can be switched on only while wiki sync is on.
Write Back to Obsidian appears under Provenance & Health only on pages that came from a vault with write-back allowed. If the note was deleted from the vault, the button is disabled with the message that write-back stays unavailable until the note returns.
If something looks wrong
Add contact context and inspect idle activity summaries
Keep relationship context separate from Dreaming’s local usage summaries.
Before you start
- For Contacts, only store information you are entitled to retain.
- For idle summaries, enough recorded request activity to summarize.
Open Knowledge > More > Contacts and click Add contact (the person-with-plus button). Fill in Name, Platform and User ID (the service and the person’s handle on it), plus Alias and Notes if useful, and click Add. Select the contact and check Platforms rather than equating people by display name.
Open Knowledge > More > Idle summaries. Turn on Write idle summaries. Choose the delay with Idle for, or click Summarize now for a cycle immediately. Read the diary entries and the available Activity topics and Usage patterns.
Click Open Summary Diary in How summaries work to read the complete
DREAMS.mdhistory. The app keeps up to 365 recent entries. The button stays unavailable until a diary file exists.Review whether these activity topics should be available to new chats through personal-memory context. Turn off Write idle summaries when you do not want new idle summaries or their matching topics added to chat context.
Use Knowledge > Memory to inspect actual saved personal facts; a Dreaming entry is not proof that a personal fact was created.
You are done when
The contact is visible, idle summaries describe recorded activity, and Memory contains only intended facts.
Advanced details
Ordinary cycles do not extract personal facts from conversations. Explicit API backfill/promotion is a separate operation; disabling Dreaming does not remove already-promoted memory.
When personal-memory context is selected, enabled Dreaming can add matching activity-topic pages to the prompt. This changes available context, not model weights or sampling.
If something looks wrong
Preserve tables and sections in Office and PDF files
Use Docling conversion, inspect fallback information and reindex files when changing the importer.
Before you start
- One DOCX, PPTX, XLSX or PDF with a known table or heading.
- A configured document-search embedding runtime.
Open Knowledge > Documents and click the gear at the top right (Configuration). The window that opens is titled Document Indexing Settings.
Find Structured Office Documents. Use Install Tool if needed; installation runs in a separate managed environment.
Review Use Docling for DOCX, PPTX, and XLSX, Use Docling for PDF and Use structure-aware chunks. Once the tool is installed these three switches are on by themselves, and a switch you turned off earlier stays off. Read each one before leaving it on.
Click Done, then add a representative file, or right-click an existing document and choose Re-index. The first PDF conversion can download about 500 MB of layout/table assets.
Inspect source details and search for a row/column relationship whose meaning depends on a table header. Check page, slide or sheet provenance.
Use Test Collection to compare answer behavior before adopting a new chunking choice across many documents.
You are done when
The source reports the intended parser/chunking path, important headings and table rows survive, and a known-answer question retrieves the correct context.
Advanced details
Structure-aware chunk size is the app’s existing character budget, not the selected embedding model’s tokenizer limit. Docling keeps source blocks and repeats headers for split tables.
Importer guardrails and process deadlines are app work budgets, not universal file-format limits. Conversion fallbacks are recorded; compare source/answer quality on your own collection rather than assuming structured parsing guarantees better answers.
If something looks wrong
Read PDF figures, charts and formulas locally
Add labeled visual interpretations beside original PDF evidence with an explicitly selected vision model.
Before you start
- Docling is installed for the PDF path.
- A compatible local vision model is downloaded, configured and running.
- A PDF with one figure or formula you can check.
Start the local vision runtime through Models and Runtime. Confirm it can interpret a simple image before using it on documents.
Open Knowledge > Documents > Configuration and Structured Office Documents.
Make sure Use Docling for PDF is on; the next two switches are greyed out without it. Enable Describe PDF figures and charts and/or Transcribe PDF formulas with a vision model, then choose your model in Local vision runtime, which starts on None.
Lower Figures and formulas per document (24 unless changed; 1 to 200) for the first test, click Done, then right-click the PDF in the list and choose Re-index.
Inspect source evidence for generated interpretations and original page/image locations. Compare a figure description or formula with the actual page.
Ask one question needing the visual information and check that its cited generated interpretation is both relevant and correct.
You are done when
The original text remains available, generated visual interpretations are labeled, and a checked figure/formula is represented accurately.
Advanced details
Both visual features are opt-in and start off. They operate on source-page crops and retain separate generated/literal provenance; source text is not replaced.
More figures and larger budgets cost model time and memory. Per-item failures remain inspectable, and reindexing is required after changing vision options.
If something looks wrong
Check retrieval and answer quality on your own documents
Create known-answer questions, run source and chat tests, and compare reports before changing retrieval settings.
Before you start
- A representative indexed collection.
- A few questions with known sources and required facts.
- A working chat route for Chat Test; Ragas is optional.
Open Knowledge > Documents and click Test Collection.
Choose Export Template, fill several real questions, exact expected source paths and known-answer facts, then Import Questions….
Run Run Retrieval Test. Inspect precision, recall, reciprocal rank, errors and the actual passages.
Run Run Chat Test with the intended model. Read answers and distinguish facts present in passages, chat context and the final answer.
Optionally configure and run Score Report with Ragas. Review its endpoint disclosure: selected evaluators receive questions and passages.
Click Export Report… to save a baseline. Change one retrieval option, reindex if required, rerun the same dataset and use Import Baseline… to compare.
You are done when
The report covers the same questions and source scope, exposes actual passages and explains whether a changed setting improved your representative answers.
Advanced details
Collection reports record embedding, index, retrieval and model context so incompatible runs cannot silently count as paired evidence.
Reranking, contextual chunk summaries, surrounding evidence and approximate indexes solve different problems. Compare quality and latency separately before broad changes.
If something looks wrong
Improve document search without losing source evidence
Choose an index, reranking, contextual retrieval or surrounding passages using a known-answer baseline.
Before you start
- An indexed collection and saved Test Collection baseline.
- A running reranker/chat model when the chosen option requires one.
Open Knowledge > Documents > Configuration and note the current Chunk Size, Overlap Size, Top-K Results and Search index (Exact (SQLite), TurboVec or USearch (native, approximate)).
Choose the actual problem: missing sources, wrong ordering, insufficient nearby context or slow search.
Try one change: Search index for lookup, Rerank results with a running reranker for order, Write chunk contexts with a chat model for ingestion context, or Include nearby sentences from the same section for surrounding evidence.
Re-index when changing chunk or contextual-ingestion settings. Check warnings for context failures and missing embedding identities.
Run the same Retrieval Test and Chat Test; compare correct source ranking, answer support and latency with the baseline.
Keep the improvement only if it helps your workload; restore the old value when tradeoffs are unacceptable.
You are done when
The paired report shows a meaningful source or answer-quality benefit within acceptable latency/memory, with the original provenance retained.
Advanced details
Exact search checks the indexed collection directly; approximate search can make larger collections quicker to search, with a possible tradeoff in which passages it finds. Compare the available choices on the same known-answer questions and retain the one that gives useful evidence at an acceptable speed.
Reranking reorders selected candidates; contextual summaries change index context; surrounding evidence expands same-source/section passages within the existing excerpt budget. None changes model weights.
