Index Status and Evaluation

Vault Index keeps a derived copy of every released document (chunks, vectors and a full-text index). This page covers how an operator sees what is in it, fixes a document that did not index, finds out why a passage is not found, chooses how each document type is chunked, and measures how well it retrieves.

Vault Index is under development and ships only inside the host. Its Angular library, @dignite/ng.vault-index, is built with the host SPA and not published to npm yet.

The Status Page

The host SPA shows it under Vault Index → Index Status (/vault-index/status). It needs the VaultIndex.Status permission, as do the chunk view and the retrieval test below; the Rebuild and Recompile buttons need VaultIndex.Status.Rebuild, and disabling a chunk needs VaultIndex.Status.ManageChunks. --migrate-database grants all three to the seeded admin role; grant them to other roles under Identity → Roles.

The summary at the top shows:

  • documents by state: indexed, failed, pending or indexing, and those out of retrieval (in Extract's recycle bin, or withheld after a reclassification until their next release);
  • chunks, and a warning when the tenant has more than 50,000 vectors. Vector search is exact, and the storage proof of concept sized it for about that many rows after the read-scope filter;
  • the embedding model the index was built with and the one the host is configured with. With no model configured nothing is indexed. After the model changed, the rebuild for the new one and how far it is;
  • the keyword index: missing (Full-Text Search not installed, so search uses vectors only), populating after a backfill, or how many changes it has not absorbed yet. It follows writes by about five seconds;
  • with a chat model configured, how many documents have compiled summaries, and how many of those carry a note.

The document list shows each indexed document with its type, state, chunk count, last indexing time, where its summaries stand and, for a failed one, the last error. Summaries are pending when the type compiles them and none exist yet, current while they match the document's chunks, and out of date when the chunks, a disabled chunk or the language changed since, or an older template wrote them; an out-of-date summary is not served. The compile time, the LLM tokens it took and its note (such as sections the model did not summarize) are shown under it. It shows only documents within the operator's Extract read scope, because it shows titles. Runs expands a document's last 20 index runs: trigger, outcome, attempt, chunks, embedding tokens, the LLM tokens enrichment took, and the error, skip reason or note (such as chunks enrichment could not reach).

Rebuild queues the document to be indexed again from its current Extract text, even when nothing changed. Use it after fixing what made a document fail. The rebuild goes through the same queue, claim and retry cap as an event, so it does not race an index job already running.

Recompile queues the document's summaries to be compiled again from its chunks, even when they are current: after a note, or to try another model. It is refused without a chat model (VaultIndex:ChatModelUnavailable) and when the type does not compile summaries (VaultIndex:SummariesOff), where it would only remove them.

Errors that end a document at once carry a VaultIndex: code:

Code Meaning
VaultIndex:EmptyDocument The document has no text
VaultIndex:DocumentTooLarge Longer than Vault:IndexIngestion:MaxMarkdownLength
VaultIndex:TooManyChunks More chunks than Vault:IndexIngestion:MaxChunksPerDocument
VaultIndex:EmbeddingDimensionMismatch The model returns vectors of another length than the storage holds

Anything else is transient (a model timeout, a database error) and is retried up to Vault:IndexIngestion:MaxFailedAttempts times before the document is marked failed.

Changing the Embedding Model

Configuring another embedding model (Changing the model) rebuilds the index in the background. Until the new model's vectors are complete, search reads the old ones; then it switches, and the old vectors are deleted. Each layer (the Host and each tenant) does this on its own.

While it runs, the summary's embedding model line adds Being rebuilt for the new model, with the documents already in the new generation out of those with chunks, and when it started. Each document gets a run with the trigger Model change, which records the embedding tokens it took. The summary warns:

  • before the rebuild has started: it starts with the next document indexed, or the next --migrate-database;
  • while the host does not have the model the serving index was built with: search is refused (VaultIndex:EmbeddingModelChanged) until the new generation takes over, unless that model is configured as the previous one;
  • when documents could not be embedded with the new model. The rebuild cannot finish without them. A transient failure is retried by ABP's background-job retry for up to two days; otherwise open the document's runs for the error, fix the cause, and run --migrate-database to retry every document still missing. Reverting the configuration to the old model abandons the new generation instead.

A document's own state (indexed, failed) does not change while it is rebuilt: the rebuild only adds vectors for the chunks it already has.

The Chunk View

Chunks on a document's row opens /vault-index/documents/{documentId}/chunks: the chunks the document was cut into, in order, each with its heading path, its text, its pointer, and its keywords and questions when it was enriched. Like the document list, it shows only documents within the operator's read scope, including those in the recycle bin or withheld.

Each chunk also shows the pages it was read from, whether it holds a table or a figure, and Show in file: Extract's file preview of the document (/vault-extract/documents/{id}/file), opened on the layout view with the chunk's regions outlined and scrolled to. Where the parse reported no regions (a page an OCR engine or a vision model read) it opens at the chunk's first page instead. Only a PDF has the layout view: a PPTX opens the preview's download card, and a document submitted as text without its original file opens a notice that it has none. The preview takes the regions from its link, ?regions=page,left,top,width,height;… in fractions of the page, or ?page=N, so any other page can link to a passage the same way; opening it needs Extract's right to read the document.

Disable takes a chunk out of retrieval: search, outline and read no longer return it, for every caller. Use it for a chunk that is noise, such as a repeated disclaimer or a garbled table, and that keeps crowding out the passages people look for. The text itself cannot be edited here: correct the document's Markdown in Extract, so that the index can always be rebuilt from Extract.

A disabled chunk stays disabled across a rebuild as long as its text is unchanged; the mark follows the text, not the chunk's id. When a correction or a new chunking changes the text, the new chunk starts enabled. Enable puts a chunk back.

The Retrieval Test

Vault Index → Retrieval test (/vault-index/search-test) runs a query as search runs it, within the operator's read scope, and shows every candidate either leg found, not only the top hits:

  • its place in the final order, which is the order search returns;
  • its place after fusion, with the fused score;
  • its rank in the keyword leg with the full-text score, and in the vector leg with the cosine distance (smaller is nearer);
  • the rerank score, for the candidates the reranker read.

Each candidate shows its pages, table and figure marks and Show in file like the chunk view.

With Vault:IndexSearch:MinRerankScore set, the page shows the floor and still lists every candidate: the ones under it, which search drops, are marked and come last. When the query could not be embedded, the page says so and shows the keyword leg alone, as search would answer.

The table can be ordered by any of these, which answers most "why is this passage not found" questions: whether a leg found it at all, and where fusion or the reranker put it. The leg weights, the candidates per leg, whether to rerank and how many candidates to rerank can be changed for one run; empty boxes take the host's values (Vault:IndexSearch), and nothing is saved. A run that reranks calls the rerank model, like a search.

Index Profiles

Vault Index → Index profiles (/vault-index/profiles, permission VaultIndex.Profiles) sets how each document type is cut into chunks. The first row is the layer default, used by every type without its own profile (and by the built-in settings, heading chunking at 400 tokens, until it is saved). Profiles follow Extract's two layers: the Host's for Host documents, each tenant's for its own.

Strategy What it does For
By headings (default) Chunks follow the heading tree and each carries its heading path. A section larger than the chunk size is split by paragraph. A table stays whole with the text around it; a table larger than the chunk size is split by rows, each piece repeating the header row Contracts, rules, manuals, invoices, reports
By tokens A fixed token count with overlap, ignoring headings. Chunks carry no heading path, so a hit cites only the document Text without headings
Whole document The document as one chunk while it fits the chunk size, so a question about two parts of it (the customer at the top of an invoice, the bank account at the bottom) finds both in one hit; a longer document is chunked by headings at the same size. The chunk carries no heading path Invoices, receipts, quotes and other short documents
By table row Every data row of a table as its own chunk, holding the heading path, the header row and the row; a row with no text is skipped and a table with no data row stays with the text. A row longer than the chunk size is still one chunk. Everything else is chunked by headings. A spreadsheet of more than MaxChunksPerDocument rows (5,000) fails to index Price lists, ledgers, rosters, spreadsheets
By page Every page of the document's file as a chunk, cut where the page's text starts in the Markdown (a table the parse joined across a page break stays whole on the page it starts on); a page larger than the chunk size is chunked by headings. Pages that arrive later (a re-parse) re-chunk the document; pages that could not be read this time leave its chunks as they were cut. A document without pages (no layout, or Markdown corrected after the parse) is chunked by headings. Page chunks carry no heading path Slides, forms, catalogues

The last three are RAGFlow's one, table and presentation chunk methods. A document outline is built from heading paths, so a type chunked whole or by page has an outline only where a chunk was split by headings.

Tables written as HTML, as Azure Document Intelligence writes every table (merged cells, captions), are read as tables too: the chunker rewrites them as Markdown tables first, repeating a merged cell's text into every cell it spans and putting the caption above. Figures (<figure>) become their text.

Enrichment has an LLM add to each chunk a few keywords, which go into the keyword index, and the questions it answers, which go into the keyword index and into what is embedded. Neither appears in what search returns. It is off by default: it costs a model call per 10 chunks, and with a rerank model it changed nothing on the evaluation set (below). It needs the Index chat model; without one the switches are disabled, and a profile saved with enrichment rebuilds nothing until a model is added.

Section and document summaries have an LLM write one sentence for each section of the outline and a short summary of the whole document. They are built bottom-up: each section from its own text and its subsections' summaries, the document from the text before its first heading and its top sections' summaries (or, when everything sits under one top heading, from that heading's text and its subsections' summaries). A summary that states a number its text does not is not kept, and nothing is sent with only a heading or a title to go on. A section too long for one call is summarized in parts first. Above 300 sections, the deepest levels are summarized only within their parents. They are compiled by their own job after each sync, so the chunks serve first, and are stored as an artifact of the document. The outline shows them only while they match the document's chunks: a re-chunk, a disabled chunk or a language change hides them until the next compilation. Turning them on and saving compiles them for the type's documents in the background. Turning them off removes them as the rebuild reaches each document. They need the same chat model as enrichment.

Editing a row shows, before anything is saved, what the change would rebuild: the indexed documents whose chunks it changes, their chunks today, and the embedding tokens their last successful indexing took, which is about what re-embedding them costs; with enrichment on, also the model calls it would make; with summaries on, the documents whose summaries would be compiled and about the model calls that takes (one per eight chunks and two more per document, within one call of what the evaluation set took). Saving queues the rebuild in the background at low priority: the affected documents are re-chunked and re-embedded one by one, through the same queue and retry cap as an event, and a document whose settings did not change is skipped. Use default removes a type's own profile, with the same estimate first.

REST API

The page uses these endpoints, which other tools can call with the same permissions:

Endpoint Permission Returns
GET /api/vault-index/status VaultIndex.Status The summary above
GET /api/vault-index/status/documents?status=&filter=&sorting=&skipCount=&maxResultCount= VaultIndex.Status Indexed documents within the caller's read scope. status is 0 pending, 1 indexing, 2 indexed, 3 failed; filter matches the title; sorting is title, status or lastIndexedTime with an optional desc
GET /api/vault-index/status/documents/{documentId}/runs VaultIndex.Status The document's last 20 runs, newest first
POST /api/vault-index/status/documents/{documentId}/rebuild VaultIndex.Status.Rebuild Queues the rebuild; nothing to return
POST /api/vault-index/status/documents/{documentId}/recompile VaultIndex.Status.Rebuild Queues the summaries' compilation; nothing to return
GET /api/vault-index/chunks?documentId=&skipCount=&maxResultCount= VaultIndex.Status The document's chunks in order, disabled ones included, up to 200 per page, with the disabled count
POST /api/vault-index/chunks/{id}/disable VaultIndex.Status.ManageChunks Takes the chunk out of retrieval; nothing to return
POST /api/vault-index/chunks/{id}/enable VaultIndex.Status.ManageChunks Puts it back; nothing to return
GET /api/vault-index/profiles VaultIndex.Profiles The layer default and every visible document type, with the settings that apply and the indexed document count
GET /api/vault-index/profiles/rebuild-estimate?documentTypeId=&chunkingStrategy=&maxTokensPerChunk=&overlapTokens=&enrichment=&compilation= VaultIndex.Profiles What saving those settings would rebuild: documents, chunks, last embedding tokens, enrichment calls, and the documents whose summaries would be compiled with about the calls that takes. chunkingStrategy is 0 by headings, 1 by tokens, 2 whole document, 3 by table row, 4 by page; maxTokensPerChunk is 100 to 4,000; the overlap is smaller than the chunk; enrichment is a flag set, 1 keywords and 2 questions; compilation is 1 for summaries
PUT /api/vault-index/profiles VaultIndex.Profiles Saves the layer default (no documentTypeId) or a type's profile and queues the rebuild
DELETE /api/vault-index/profiles/{documentTypeId} VaultIndex.Profiles Removes the type's own profile and queues the rebuild
POST /api/vault-index/search-test VaultIndex.Status The retrieval test. The body is a search's (query, documentTypeCode, fieldFilters) plus optional keywordWeight, vectorWeight (0 to 10), candidatesPerLeg (1 to 100), rerank and rerankCandidateCount (1 to 100). It returns the settings used, each leg's candidate count and time, and every candidate in final order

A document or chunk outside the caller's read scope is not found.

Measuring Retrieval

Retrieval quality is measured with an evaluation set: a corpus of documents and queries whose right answer is known. The first set is in modules/vault.index/test/Dignite.Vault.Index.EntityFrameworkCore.SqlServer.Tests/Evaluation/. It holds 18 synthetic Japanese business documents (Corpus/) and 94 cases (evaluation-set.json):

  • 39 field cases, generated from each document's field values through per-type templates, such as "INV-2026-1112" or "株式会社みどり印刷の請求書". They ask for a document by a value a reviewed field would hold.
  • 55 written questions, each naming the document and the heading of the section that answers it: 44 in Japanese, 5 in Chinese and 6 in English.

Later versions added documents and question kinds; evaluation-set.json describes each. Version 6 adds entity questions (source entity): each names its document only by a field value that is neither in the title nor in the section that answers it, such as a tenant, a vendor or a meeting date.

The evaluation indexes the corpus through the real ingestion job and embedding model on a real SQL Server, then ranks every case several ways: each leg alone, fusion with keyword weights 1, 0.5 and 0.25, the same rankings reranked when a rerank model is configured, and service, the search service as the host would configure it. It reports Hit@k, the share of cases whose answer is in the top k, and MRR@10, the mean reciprocal rank of the first right answer in the top 10. Document level counts any chunk of the right document. Passage level also needs the right heading, and covers the written questions.

Run it against a SQL Server 2025 with Full-Text Search, and any OpenAI-compatible embedding endpoint whose vectors match VAULT_INDEX_EVAL_DIMENSIONS (default 1024):

export VAULT_INDEX_TEST_SQLSERVER="Server=localhost,14333;User ID=sa;Password=...;TrustServerCertificate=true"
export VAULT_INDEX_EVAL_EMBEDDING_ENDPOINT="https://api.siliconflow.cn/v1"
export VAULT_INDEX_EVAL_EMBEDDING_API_KEY="..."
export VAULT_INDEX_EVAL_EMBEDDING_MODEL="BAAI/bge-m3"
export VAULT_INDEX_EVAL_RERANK_MODEL="BAAI/bge-reranker-v2-m3"   # optional; _RERANK_ENDPOINT / _RERANK_API_KEY default to the embedding's
export VAULT_INDEX_EVAL_REPORT="$PWD/index-evaluation.md"
dotnet test modules/vault.index/test/Dignite.Vault.Index.EntityFrameworkCore.SqlServer.Tests --filter "FullyQualifiedName~IndexEvaluation"

The test creates and fills its own database, VaultIndexEvaluation, and writes the report. A second test in the same run compares chunking strategies and writes VAULT_INDEX_EVAL_STRATEGY_REPORT (or index-strategies.md). It measures; it does not fail on low numbers. Without those variables it is skipped, and so are the store's other SQL Server tests, which need only VAULT_INDEX_TEST_SQLSERVER.

Baseline (2026-11-12)

With BAAI/bge-m3 (1024 dimensions), heading chunking at 400 tokens and RRF k = 60, on 101 chunks. The full report is baseline-2026-11-12.md next to the set.

Ranking Hit@1 Hit@5 MRR@10
Document level, 94 cases fused 0.95 0.98 0.964
keyword 0.84 0.93 0.878
vector 0.95 1.00 0.969
Passage level, 55 questions fused 0.76 0.95 0.838
keyword 0.58 0.73 0.651
vector 0.91 1.00 0.949

What it shows so far:

  • On written questions the vector leg alone finds the right section more often than the fused search. Equal-weight fusion lets the keyword leg pull up chunks that share a word with the question but answer something else.
  • On field cases (identifiers, names, amounts) the keyword leg is the strongest (MRR 0.983 against 0.938 for vectors).
  • Across languages the keyword leg finds almost nothing (MRR 0.409 on the Chinese and English questions), as expected for a Japanese full-text index; the vector leg finds every one.

Reranking (2026-11-12)

The same set with BAAI/bge-reranker-v2-m3 reranking the leading 30 candidates (rerank-2026-11-12.md next to the set):

MRR@10 fused 1:1 fused 0.25:1 reranked
Passage level, 55 questions 0.832 0.873 0.974
Document level, 94 cases 0.959 0.948 0.995
Field cases, 39 0.957 0.938 1.000
Chinese and English questions (passage) 0.677 0.741 0.932

Reranking lifts every slice, and reranking the fused or the vector ranking gives the same result here. Down-weighting the keyword leg trades field cases for questions, and at a weight of 0.5 or less it ranks keyword-only finds below every vector candidate, a loss this 101-chunk corpus is too small to show. So the weights stay equal, and a rerank model is the recommended way to rank paraphrased questions. With it, the keyword leg's gap on Chinese and English questions no longer shows in the results. A query translation step for that leg is not needed for now.

Chunking strategies (2026-11-12)

Version 2 of the set adds three documents whose tables carry the answers: a price list with a Markdown table, and a sales report and an expense claim with HTML tables as Azure Document Intelligence writes them (21 documents, 108 cases, 12 of them answered by a table). The corpus was indexed once per strategy, and each case ranked by the fused legs and by search with BAAI/bge-reranker-v2-m3 (strategies-2026-11-12.md next to the set):

MRR@10, search with rerank Passage, 69 questions Passage, 12 table questions Document, 108 cases Chunks
By headings, 400 tokens (default) 0.958 0.875 0.981 112
The same, HTML tables dropped (before) 0.871 0.375 0.936 110
By headings, 200 tokens 0.972 0.958 0.991 115
By headings, 800 tokens 0.958 0.875 0.981 112
By tokens, 400 with 40 overlap 0 0 0.995 25
  • Reading HTML tables as tables is the largest gain: before it, the table questions found their section half the time at best.
  • 200, 400 and 800 tokens differ by one or two questions, because most sections of this corpus are shorter than 200 tokens. The default stays at 400 until a corpus with long sections says otherwise.
  • Chunking by tokens finds the right document as well, but its chunks carry no heading path, so no hit can cite a section.

Chunking templates (2026-11-18)

Version 5 of the set, each template indexed from scratch and every case ranked by search with BAAI/bge-reranker-v2-m3 (templates-2026-11-18.md next to the set). A passage counts as found when a heading line of the hit names it, so a whole-document chunk that holds the answer counts. By type is a profile per document type: invoices, quotes and expense claims whole (1,500 tokens), the price list and the sales report by table row (400), the rest by headings (400):

MRR@10, search with rerank Passage, 84 questions Passage, 12 table questions Document, 127 cases Chunks Characters per top-3 hit
By headings, 400 (default) 0.959 0.875 0.980 143 113
Whole document, 1,500 0.982 0.917 0.988 23 823
By table row, 400 0.971 0.958 0.988 174 93
By type 0.979 0.958 0.992 145 147
  • By type puts first two answers headings missed: the bank account of the invoice sent to a named customer (the customer is at the top, the account at the bottom: one whole chunk holds both), and an English question about one item of a Japanese price list (its row, from nowhere in the top ten to first).
  • Whole documents score highest, but every hit is a whole document, seven times the text an agent has to read per hit, and the passage is not located inside it. Use it for short documents, not as the default.
  • By table row helps exactly where tables carry the answers and changes nothing else, at a fifth more chunks on this corpus.
  • The default stays by headings: the right template depends on what a type's documents look like, which is what a profile per type is for. By page has no case here (the set has no paged documents) and is covered by tests only.

Enrichment (2026-11-12)

The same set, heading chunking at 400 tokens, enriched by Qwen/Qwen3-30B-A3B-Instruct-2507 (enrichment-2026-11-12.md next to the set):

MRR@10 None Keywords Questions Both
Passage, 69 questions, with rerank 0.958 0.958 0.958 0.958
Passage, 69 questions, fused legs only 0.836 0.845 0.868 0.866
Chinese and English questions, fused legs only 0.718 0.759 0.818 0.807
Document, 108 cases, fused legs only 0.946 0.944 0.955 0.957

With a rerank model, enrichment changes nothing on this set: the reranker reads the chunk text and already puts the answer first. Without one, the questions lift the fused ranking, most for questions asked in another language than the document's. Both kinds together took 22 model calls for the 21 documents, about 670 input and 1,020 output tokens per document. So enrichment stays off by default; it is worth a try on a deployment without a rerank model.

Outline navigation (2026-11-13)

Version 3 of the set adds two documents whose article headings carry no caption, only "第5条", as older contracts and rules are written: a master outsourcing agreement and a safety rule with chapters (23 documents, 84 written questions answered under a heading). Compare_navigation compiles section and document summaries with VAULT_INDEX_EVAL_CHAT_MODEL, then has the same model pick, from the expected document's outline, the one section that answers each question: once from the titles, once from the titles and summaries. A pick counts when its heading path contains the expected heading. With Qwen/Qwen3-30B-A3B-Instruct-2507 (navigation-2026-11-13.md next to the set):

Questions Titles Titles and summaries
All, 84 76% 99%
Captioned headings, 69 90% 100%
Uncaptioned headings, 15 13% 93%
Chinese and English, 20 70% 100%

Titles alone fail where they say nothing ("第5条"), and where a table or list section is named for its form rather than its content ("単価一覧" for a delivery time). Compiling took about 3 model calls, 1,750 input and 460 output tokens per document. Summaries stay off by default, to be switched on per type where an agent navigates long or poorly titled documents.

The set is small and synthetic: grow it with real queries before relying on small differences.

Cross-document questions (2026-11-13)

Version 4 of the set adds 13 questions that only several documents answer: a listing with a condition, a comparison, a total, a timeline, a link between documents, a whole type (10 in Japanese, 2 in Chinese, 1 in English). Each names the facts its answer must contain. Compare_agents has a model with tool calls answer each twice, through the MCP tools as published:

  • with the tools before summaries existed: search, outline with titles, read;
  • with summaries compiled and the catalog added.

The agent model is VAULT_INDEX_EVAL_AGENT_MODEL, and the chat model compiles the summaries.

Agent Tools Complete answers Facts Tool calls
deepseek-ai/DeepSeek-V3 search, outline, read 22 / 26 56 / 66 3.0
deepseek-ai/DeepSeek-V3 + summaries, catalog 20 / 26 56 / 66 3.5
Qwen/Qwen3-30B-A3B-Instruct-2507 search, outline, read 12 / 26 36 / 66 2.2
Qwen/Qwen3-30B-A3B-Instruct-2507 + summaries, catalog 14 / 26 42 / 66 3.5

agents-deepseek-v3-2026-11-13.md and agents-qwen3-2026-11-13.md next to the set have every question and answer.

  • A strong agent already gathers across documents. DeepSeek-V3 answered most questions completely with about three tool calls. What it missed were reading errors: which party is the outsourcing side, the issuer of an invoice confused with its addressee.
  • A weak agent fails differently. The small model often answered without looking, or invented documents. Summaries and the catalog helped it a little.
  • Summaries can mislead. With summaries the strong agent named a wrong issuer for two invoices, where reading them got it right. The section summaries were correct, but the document summaries of documents with a single top heading were expanded from that heading's one-sentence summary, once from the title alone, and stated dates and payment methods the document does not have. That is fixed (below).

So no server-side deep retrieval tier, type wiki or timeline is planned (see the design record).

Summary faithfulness (2026-11-13)

What changed in compiling (template version 2):

  • A document summary is written from the text and subsections' summaries under the document's only top heading, not from that heading's one sentence.
  • No item is sent with only a heading or a title.
  • A summary stating a number its text does not state is not kept. The check reads the values whatever their spelling: separators, full-width digits, 万 units, kanji numerals, afternoon hours. The document summary is asked for once more first.
  • The prompt asks never to say what the text leaves out.

The outline and the catalog serve only version 2. Compare_navigation now also counts what can be checked without a judge, against each whole document (summaries-v1-2026-11-13.md and summaries-v2-2026-11-13.md next to the set print every document summary):

Version 1 Version 2
Document summaries stating a number the document does not 1 of 23 0 of 23
Document summaries saying what the text lacks 2 0
Section summaries written 156 of 156 153 of 156
Navigation with summaries, precise 98% 92%
Compile tokens per document, input / output 1,752 / 475 1,958 / 545
  • The document summaries now carry the facts. Version 1 said of the cloud invoice that its amounts and payment terms "are not stated". Version 2 names the issuer, the amounts and the card payment date.
  • Navigation stays within run-to-run variance. Five runs ranged from 92% to 99% with summaries and from 77% to 81% with titles only.
  • Agent results stay within variance too. With DeepSeek-V3 as the agent (agents-deepseek-v3-summaries-v2-2026-11-13.md), the summaries and catalog toolset completed 19 of 26 answers. The payment-dates question was answered in 2 calls each time, where the titles-only toolset took 5 and 10.
  • The remaining misses are readings. The agent takes an invoice's addressee (御中) for its issuer.

Embedding models (2026-11-13)

Measure_retrieval_on_the_evaluation_set was run once per embedding model on version 4 of the set (127 cases), each at 1024 dimensions, the shipped storage. The models returning more were shortened through dimensions. The rerank model BAAI/bge-reranker-v2-m3 was configured throughout (embeddings-2026-11-13.md next to the set has the four reports). MRR@10:

Ranking bge-m3 Qwen3-Embedding-0.6B Qwen3-Embedding-4B Qwen3-Embedding-8B
Passage, search with rerank 0.959 0.965 0.965 0.965
Document, search with rerank 0.980 0.984 0.984 0.984
Passage, fused legs 0.838 0.832 0.854 0.862
Chinese and English questions, fused legs 0.727 0.721 0.814 0.860
Questions a table answers, fused legs 0.833 0.801 0.917 0.875
Japanese questions, vector leg 0.938 0.904 0.934 0.910
  • With the reranker the models are within one case of each other.
  • Without it, Qwen3-Embedding-4B and 8B help questions asked in another language and questions a table answers.
  • On Japanese questions bge-m3 is as good as any.

The recommendation is in AI Provider.

Field context (2026-11-20)

Compare_field_context indexes version 6 of the set (146 cases, 19 of them entity questions) once without field values and once with them, which Index puts in front of every chunk in what is embedded and what the reranker reads (Field values). On the second index it also writes the values into the keyword leg, which Index does not do. Embedding BAAI/bge-m3, rerank BAAI/bge-reranker-v2-m3 (field-context-2026-11-20.md next to the set). MRR@10:

Ranking Title only With field values Values in the keyword leg too
Passage, search with rerank 0.957 0.973 0.973
Passage, Japanese questions, search with rerank 0.968 0.988 0.988
Passage, entity questions, search with rerank 0.947 1.000 1.000
Document, search with rerank 0.983 0.986 0.986
Passage, vector leg 0.913 0.960 0.960
Passage, entity questions, vector leg 0.867 1.000 1.000
Passage, fused legs 0.833 0.863 0.867
Questions a table answers, fused legs 0.833 0.792 0.792
  • The values place a passage in its document. Four leases with the same clauses were told apart by their tenant only once the tenant rode with every clause: entity questions went to 1.000 with and without the reranker.
  • The reranker has to read them too. With the values in the vectors alone, search with rerank stayed at 0.957: the reranker reorders the leading 30 by title and chunk, and gave back what the vectors gained.
  • The keyword leg gains nothing, so the values stay out of the full-text index.
  • One loss, without a reranker: questions a table answers dropped from 0.833 to 0.792 in the fused legs (one case of 12); with the reranker they stay at 0.875.
  • The entity questions were written for this measurement, knowing what it tests, and are few (19); read their 1.000 as "the effect exists", not as its size.

Field names. That run named the fields in Japanese (当事者: 山田太郎), as the set does. Extract's field names are identifiers (party: 山田太郎), and the integration DTO carries no display name, so a second run handed the same values out under identifiers (fieldNames in the set; field-context-names-2026-11-20.md). MRR@10:

Ranking Title only Identifiers (what Index receives) Japanese names
Passage, search with rerank 0.957 0.968 0.973
Passage, Japanese questions, search with rerank 0.968 0.982 0.988
Passage, entity questions, search with rerank 0.947 1.000 1.000
Passage, vector leg 0.913 0.950 0.960
Questions a table answers, fused legs 0.833 0.833 0.792

The values carry the gain; display names would add about half a case of 103, within run-to-run variance, so Index keeps the names it receives. Not measured: Select fields, which contribute their option's label (since 2026-11-20; the stored value before, a code if the type defines codes), and short CKEditor bodies, which go in as stored (Markdown, or HTML with its tags when the field's content format is HTML); the set has neither.

Field values or field filters (2026-11-20, local host)

Two checks on a development host (AppHost SQL Server container, embedding Qwen/Qwen3-Embedding-4B, no rerank model), against the sample-document type: 13 Ready documents, one with the Select field status set to in_review (option label "In Review"), one with approved, the rest without a value.

A shared value in the field context does not tell documents apart. An operator's edit set status on a service contract; the Ready event it fired synced the document by itself, and its field context became status: In Review (the label, not the stored in_review) beside its other values, the Table field left out. Every chunk's embedding text grew by those lines (about 37 tokens a chunk). The same contract also exists as a copy of another type, with no field values. Asked for "In Review の業務委託契約の秘密保持義務" and two rewordings, the vector leg still ranked the copy's confidentiality clause above the one carrying the status. A status, a category or a yes/no is shared by many documents and says little about which one is meant; the field context helps values that single a document out, such as a party's name (the entity questions above).

A field filter does. Searching "金額" in the type:

Search Documents in the hits
documentTypeCode=sample-document 7 different documents (invoices, expense sheets, sales data, receipts)
+ fieldFilters[0].name=status&fieldFilters[0].value=in_review the contract only
+ …value=approved the one approved document only
+ …value=draft none (no document is a draft)

The filtered hits were exactly the documents the database holds with that value. A filter without documentTypeCode is refused with HTTP 400. So a condition on a categorical field belongs in fieldFilters, which Extract evaluates exactly within the caller's read scope; the field context is for the free-text and identifying values a question names in passing.