Yeah. Hmm… I took a look at a few similar issues and put together some things that might be worth checking first:
A step-by-step starting point
For your mix of PDFs, Excel files and website information, I would start by making one failed answer traceable from its original source to the answer shown on screen, before replacing Claude or rebuilding the application.
A wrong number may come from extraction, selection of another property’s record, or generation. A thin answer may lack evidence, omit available facts, or be shortened afterward. Your symptoms do not yet identify the responsible stage.
Preserve identifiable source facts, find evidence for the question, and check the answer and its attribution. A verified row lookup for exact fields can coexist with RAG for descriptions and explanations; you need not abandon the project.
What I would check first
- Choose one question with a known correct answer. Note the property, requested field, correct value, unit, applicable date and original page or row. First check that the source itself is current and unambiguous.
- Compare the original with the imported text/data. Is the number still attached to the right property and column heading? A successful file upload does not establish that.
- Inspect the evidence returned for that question. Use the results retained after any filters or reranking, not just the list of uploaded documents. Does the correct record appear?
- Check what reaches the model, if visible. Shortening and formatting may alter evidence. If the input is hidden, a small direct-context comparison still helps, with more limited conclusions.
- Compare the answer, citation and screen output, including the raw response if available. Does the source support this property, field, unit and date? A correct API response displayed incorrectly is a separate application problem.
- Change the first identifiable failing part and repeat. Then add a few representative questions. This gives you a reason to choose a parser, retrieval setting, prompt or model change.
This builds on nootxlm’s suggestion to check answers against sources and keep manually verified questions. One addition for numbers: finding the same digits somewhere in a passage is not enough. They must describe the right property and field, with the right meaning.
Which branch applies?
| What the failed example shows |
The next useful check |
| Original sources disagree or lack the answer |
Source authority, dates and how to report missing information |
| Original is correct; imported text is not |
Extraction, table headings, cell values and chunk boundaries |
| Correct information is stored but absent from the answer’s evidence |
Search, filters, ranking and final context assembly |
| Correct evidence reaches the model; answer is wrong or incomplete |
Instructions, synthesis, calculations and controlled model comparison |
| Raw answer is correct; displayed value or citation is wrong |
Post-processing and source-reference mapping |
If you use Amazon Bedrock Knowledge Bases, the retrieval-only test helps separate finding evidence from writing an answer. If Bedrock only supplies Claude inference, use the equivalent views in the application handling your documents. “Claude via Bedrock” does not tell us which setup you have.
The question, expected answer, source excerpt, returned passage and actual answer are enough to begin; every log is not required. Keep company documents, tenant/customer data, internal links and credentials private. Use fictional data preserving the layout for public discussion.
The sections below are separate branches, not a list of tasks you must complete before making progress.
1. Finding the first mismatch in one failed answer
Follow a fact, not just its digits
A useful debugging note can be this small. All values below are fictional:
Question: What is P-104's advertised monthly rent as of 2026-11-01?
Expected fact: P-104; monthly rent; USD 1250; effective 2026-11-01
Source: properties_v7.xlsx / Listings / row 18
Imported representation: actual extracted row or paragraph
Stored representation: chunk ID, text and retained identity/date
Returned evidence: source IDs and passages retained for the question
Final model evidence: actual input, or "not visible" if unavailable
Raw answer: response and references before display formatting
Displayed answer: differences from the raw response
First observed mismatch: source / import / search / input / answer / display
An answer can copy 1250 perfectly but attach it to another property, call it a purchase price, or present an old listing as current. Conversely, 1250, 1,250 and 1,250.00 need not represent different amounts. Verify the entity, field, units, period and version, not just string equality.
If the imported row already places the amount under the wrong heading, there is an upstream mismatch to address. If the exact record survives into the model’s input and the answer changes it, that observation points elsewhere. More than one fault can coexist, so repeat the whole comparison after fixing the first one.
Try a short, verified-context comparison
Give the same model the correct row or paragraph directly, with the same question. This bypasses retrieval for one case. Sometimes called an oracle-context test, it simply supplies the evidence you already know should have been found.
Keep the model/API route and task instructions as similar as practical. A consumer chat interface may use different instructions and document handling, so success there is informative but not a like-for-like Bedrock test.
- Short verified context works; normal application fails: inspect extraction, retrieval, competing context and prompt assembly. This does not isolate retrieval alone, because context length and presentation also changed.
- Short context still fails: check that the question, field definition and instructions are unambiguous. If so, generation or model capability remains a genuine candidate.
- Value is correct; citation is wrong: follow attribution separately from answer selection.
- Removing other rows fixes it: investigate record disambiguation, conflicting versions or context organization. An isolated success can hide the real difficulty.
As a countercheck, remove the requested fact from fictional evidence, or provide only a different property’s row. The useful behavior is to identify missing support, not invent a plausible amount. This is a small test of evidence use, not proof of reliability across your collection.
The LlamaIndex RAG failure-mode checklist maps missing evidence, poor context and failed synthesis. That distinction is useful without adopting the framework.
2. Excel, PDF tables, and exact numbers
Check the representation, not only the original document
Excel/PDF inputs plus incorrect numbers make table extraction worth checking early. They do not establish it as the cause.
A person viewing a workbook uses merged headings, indentation, sheet names, cell formatting and nearby notes. A text conversion can preserve a number while losing what it describes. Compare one original row with the chunk used to answer: could someone seeing only that chunk identify the property, field, unit and date without guessing?
A Markdown table, database row or validated object can all work if those associations survive. Keep a stable property/unit ID where possible. A row number is a locator within a particular saved workbook, not a permanent identity when rows can be sorted. Preserve meaningful sheet and section labels; do not mistake a report title or repeated table header for a data record.
Formula text, cached results and recalculation are different
For a formula cell, distinguish the expression, the result saved in the workbook, and the result of recalculating with the intended current inputs. The openpyxl documentation explains that data_only selects stored results where available; it does not calculate formulas.
The check is therefore not simply “enable data_only.” It is “what did the importer read, and does it agree with the authoritative workbook result?” A missing cache can yield no value; a stale cache can yield a plausible outdated value; formula text alone may omit the inputs needed to calculate anything.
I checked this in a small synthetic component test, using openpyxl 3.1.5 and pandas 2.2.3, not your application. A formula cell without a saved result was missing in the value-reading path. Deliberately inserting a cache of 1250 produced 1250; inserting an incorrect cache of 1300 produced 1300. The wrong cache was an artificial negative control, not evidence that Excel normally miscalculates. It demonstrates that returning a saved result does not establish its correctness.
If recalculation is needed, use your normal trusted spreadsheet workflow on a copy. Do not enable untrusted macros or ask the model to rewrite the workbook just to check this.
Conversion can change what is available downstream
The same component check showed pandas rendering 123456789.123 as 1.234568e+08 in HTML. Scientific notation is not itself wrong; the issue is that this rendered text no longer preserves all the digits. If only that text reaches the model, the missing precision is unavailable.
This tested pandas’ representation, not an end-to-end run of MarkItDown, Docling, Bedrock or Claude. MarkItDown #2532 reports a related Excel numeric-precision issue and remained open when checked on November 16, 2026. It is a mechanism to recognize if your importer uses that path, not evidence that it does.
Other checks are useful only when the relevant fields occur:
- Codes versus missing values: a literal
NA or NULL may be meaningful. pandas’ Excel-reading options describe missing-value and header handling; MarkItDown #2498 illustrates a related report. Test real blanks as well as literal codes before changing conversion rules.
- Identifiers versus amounts: leading zeroes may matter in a property code.
1 becoming 1.0 can be harmless for a count but inappropriate for an identifier. Preserve the intended field type.
- Units and periods:
0.05 can mean 5%, but 5 normally does not. Monthly and annual charges differ. Currency, decimal conventions, area units and rounding rules must stay attached to the field.
These are reasons to inspect an actual failed value, not to apply every possible parser setting.
PDF tables need their surrounding meaning
For a PDF failure, inspect the page: is the table selectable text, an image or both? Does it continue across pages? Are units in a title or footnote? Is the property ID on the preceding page?
A text parser can extract some tables successfully; “text-only” does not mean it reads no tables. Equally, selectable text does not guarantee that row/column relationships survive. Compare rows before and after a page break, with their headings and units.
Some related examples show why version and scope matter:
| Example |
Relevant mechanism and status |
| Docling #3687 |
Merged spreadsheet section heading treated as a header; closed with a merged fix |
| Docling #2975 |
Header context in later table chunks; closed, with later maintainer guidance describing header propagation support |
| Docling #2976 |
A logical table split across pages; still open as an issue/enhancement discussion when checked on November 16, 2026 |
These are examples from another project, not a diagnosis of your stack or a claim that old defects remain in every current version. If your extracted table and final evidence are correct, this branch should lose priority.
When extraction is wrong, compare one ordinary layout, one failing layout and one previously working example before reprocessing everything. Docling is one structure-aware option to examine, not a guaranteed fix. If clean records already exist, retaining them as structured data may avoid repeated reconstruction from document text.
3. Retrieval, source coverage, and final context
Stored somewhere is not the same as available to this answer
Follow the correct record through indexing, search, filtering, reranking and context assembly; none is yet an established fault.
Is the exact spreadsheet record, PDF page or website page present, rather than just a filename, homepage or link?
A successful crawl need not include every interactive page. The Managed Knowledge Base web-crawler guide describes its discovery limits. Compare expected URLs with indexed content, especially pages reached through forms. Other crawlers need their own checks.
For restricted content, that guide also states that the Managed crawler does not support document-level ACLs: indexed content is accessible to users with access to the knowledge base. Crawler authentication is not evidence that the original per-user permissions survive indexing. This is a conditional safeguard, not an observed problem in your application.
An older brochure, a new workbook and a live website may disagree legitimately. Keep each field’s authority and effective date explicit; the latest upload is not automatically authoritative.
Match retrieval to the question
An exact unit code and a descriptive query need not benefit from the same search. Exact identifier matching or suitable metadata filters may help the former; semantic search may help the latter. Combining lexical and semantic search is another option where supported.
A building-name match can still identify the wrong unit. A semantically relevant paragraph can omit the amount. Retrieval scores indicate ranking, not truth or completeness.
Metadata requires three separate checks: was it stored correctly, was it used/returned as intended, and did the information needed to interpret the value reach the answer-generation step? A title visible only in a dashboard may not be visible to the model. If a filter removes the correct result, inspect the filter value and type rather than assuming the record is absent.
Keep useful relationships together
The useful evidence unit may be a row with headers, a paragraph with its section title, or a clause plus its exception. Very small chunks can detach those relationships; very large ones can introduce competing facts and consume the input budget.
Inspect the failed chunk for its identifier, headings and qualifications. Row-aware formatting, added context or retrieving the surrounding section may help more than a size change. AWS’s chunking documentation describes configuration-dependent strategies.
Reranking can select among candidates; it cannot repair a missing heading or recover a record that never entered the candidate set. Compare retained results with the final model input if both are visible. A correct document in an early search log is not proof that the needed row reached generation.
Lost in the Middle studied sensitivity to the location of useful information in long contexts. It does not establish your Claude configuration’s behavior, but supports testing context organization rather than equating a large input window with reliable use of every fact.
Check coverage and conversational references
If a comparison asks for rent, area and parking for two properties, one relevant rent passage is not enough. Check evidence per requested field and property. Missing coverage can explain a brief answer without a need to make the model more verbose.
For follow-ups, compare “What is P-104’s monthly rent?” with “What about the second one?” after a prior exchange. If only the explicit question works, inspect any rewritten query and retained conversation state: did they preserve property, field and date? The multi-turn RAG study in TACL is background for this branch, not a reason to add a memory framework before testing one follow-up.
4. AWS Bedrock paths: use only the one that matches your setup
“Claude via Bedrock” does not identify the parser, index or retriever. Use the matching branch; its settings need not apply to the others.
Bedrock supplies inference; another application handles RAG
Start with that application’s imported-text view, retrieved passages and model-request logging. Knowledge Base-specific controls may not exist. There is no need to adopt a new AWS service just to compare the source with the evidence used to answer.
Customer-managed Bedrock Knowledge Base
The retrieval-only guide separates chunk content, metadata, location and score. The RetrieveAndGenerate guide describes answer portions linked to retrieved references. Those citations are not a full transcript of retrieval candidates or final model input.
The parsing documentation describes the default text parser, including XLS/XLSX, and advanced PDF/image options. Format support does not guarantee correct interpretation of every spreadsheet layout. The advanced Bedrock Data Automation/foundation-model discussion does not establish a drop-in solution for Excel formulas or worksheet semantics. Match a parser change to the affected file type and verify a sample first.
Managed Bedrock Knowledge Base
The Managed ingestion guide identifies SMART_PARSING as the default; native multimodal embedding configurations use their separate MULTI_MODAL_EMBEDDINGS path. It says the BEDROCK_FOUNDATION_MODEL and BEDROCK_DATA_AUTOMATION parsing strategies are not supported in this mode. Do not assume the customer-managed parser defaults or switches apply here.
There is an important API boundary: the current RetrieveAndGenerate API reference explicitly excludes Managed knowledge bases, directing this mode to Retrieve or AgenticRetrieveStream. The agentic retrieval guide describes the latter. This distinction does not mean you need agentic retrieval to debug a lookup.
Managed retrieval has its own configuration, including managedSearchConfiguration and mode-specific search/reranking behavior. Use the matching section of the retrieval guide rather than copying a customer-managed vectorSearchConfiguration example unchanged. These documentation details were checked on November 16, 2026; check them against your actual service mode and deployed configuration.
CSV metadata is useful, but is not automatically a typed lookup
AWS’s metadata documentation includes property listings. It allows one content field for chunking/embedding, with other included columns associated as metadata. CSV-derived metadata values are strings, including numeric-looking values.
This is not a typed relational query over price or area. Returned metadata is not necessarily model-visible: storage, filtering, embedding and generation are distinct. Inspect a record in retrieval and the answer’s actual evidence; a long content field may still be chunked.
Direct PDF input is a different comparison
The Claude PDF documentation describes direct processing using page images and extracted text. A RAG application sending only previously extracted text is not necessarily using that path.
Comparing a small authorized PDF page with its extracted text can help show whether layout matters. Keep model, API and input mode clear. A successful direct-PDF answer does not validate the indexed representation or establish that this approach is economical for the whole collection. It also does not guarantee native citations for image-only content, discussed next.
A parser change, re-ingestion job or additional model call can change cost and latency. Test the matching branch on a small source before altering the production collection.
5. If the evidence is right but the answer is wrong or brief
Generation remains a real possibility
After the short-context comparison, add back another property, an older source or the normal instructions to test competing facts and instruction conflicts. Correct evidence does not guarantee correct use.
For a model comparison, fix the question, verified evidence and output requirements. Changing the retriever or cleaning only one model’s input confounds it. Record the exact model identifier, not just the family.
Define completeness, not verbosity
Instead of “give more detail,” a useful answer specification might be:
Answer the requested fields for each requested property.
Include supported units, currency and applicable dates.
Attach source references to the claims they support.
Separate source facts from calculations or interpretation.
Mark requested fields that the evidence does not establish.
Never fill a missing field from a similarly named property.
This is an example specification, not a guaranteed prompt or substitute for evidence.
| A brief answer occurs because… |
Useful next check |
| Evidence lacks requested fields |
Improve coverage or mark those fields unsupported |
| Available facts are omitted |
Test the specification and synthesis against a field checklist |
| Raw output ends abruptly |
Output budget, stop reason and stream completion |
| Raw output is complete, but the UI is brief |
Display limits, summarization and post-processing |
| Sources genuinely support no more |
Preserve the limitation; do not reward speculation |
Citation correctness has several parts
A reference must open the intended location, support the claim, and apply to the correct property, field and version. A valid link alone establishes none of the latter two. One citation may support only part of a sentence containing several claims.
Bedrock Knowledge Base references, Claude native document citations, and application-generated citation labels are different mechanisms. Native citations currently concern text, not images; a scanned PDF without extractable text is not citable through that feature. Visual reading ability and textual citation support are not interchangeable.
If the raw response references the correct source but the UI shows another, inspect source IDs and their display mapping. Reordered results or reused labels are possibilities only if this comparison points there, not inferred bugs in your application.
Calculations and checks need the same fact identity
For a derived value, validate operands, units, periods and rounding rules. An amount divided by an area is wrong if the area belongs to another property. Where practical, calculate from validated values in ordinary code or a constrained tool, then let the model explain. Cite the operands without implying the computed result appeared in the source.
The source-checking step already suggested in the thread can verify these associations. On failure, options include retrieving better evidence, marking one field unsupported, or withholding that value. A retry without better evidence is not necessarily an improvement.
AWS’s contextual grounding checks are another possible component for supported configurations. Agreement with supplied material is not an independent guarantee of its freshness, authority or record identity. Test deliberately mismatched as well as correct examples. Asking the same model to check itself can help, but is not independent verification.
6. A small repeatable scorecard
Build on the manually checked questions already suggested, without making a full evaluation platform the first task. Start with one traced failure, then a few representative cases; expand toward the suggested 20–30 questions once results are interpretable. That is a starting collection, not a statistical guarantee of reliability.
Each case needs the required facts, authoritative source/version and expected behavior when support is missing, not just a preferred sentence. Useful cases include an exact spreadsheet value, a PDF qualification, a multi-property comparison, a website fact and an unanswerable question. Add a conversational follow-up if your product supports one.
| Check |
What a pass means |
| Source validity |
The selected version establishes the expected fact |
| Extraction fidelity |
Value, heading and identity survive import |
| Evidence selection/coverage |
The required records and answerable fields reach generation |
| Correctness |
Entities, values, units, dates and calculations agree |
| Completeness |
Requested supported fields are answered; missing support is identified |
| Attribution |
Each citation supports its attached claim |
| Abstention |
Insufficient evidence does not become an invented fact |
Pass/fail cells and the first mismatch are enough. The AWS RAG evaluation metrics also separate retrieval quality from correctness, completeness, faithfulness and citation quality. That distinction is useful without adopting its evaluation service: one broad “accuracy” score can hide a trade-off.
Compare one relevant change at a time using the same questions and source snapshot. Save evidence and answers, not only averages. Keep some cases outside the prompt examples used for tuning. A fix for one amount should not silently introduce errors in another field.
If a result varies, repeat that case a few times. A lucky response or a low sampling setting does not establish reliability. Measure cost and latency when a proposed fix adds retrieval rounds, model-based parsing or another checker.
The HF RAG evaluation cookbook offers an automation example. LLM judges can miss plausible wrong amounts or dates; retain human-verified facts. ARES uses human labels to account for judge error in system-level estimates, not to guarantee individual answers. A small scorecard is enough for now.
7. Options if the first checks expose a design boundary
Preserve what works and change the relevant boundary
The outcome of the trace can guide a small architectural choice:
- One troublesome layout: handle that subset with a tested extraction rule.
- Exact fields in clean records: consider a validated read-only lookup.
- Descriptions, policies and qualifications: retain document RAG with better evidence selection.
- Questions mixing both: combine structured facts and retrieved prose using stable property IDs and compatible dates.
- Good evidence, poor synthesis: work on the answer specification or compare models on identical inputs.
A lookup can be a validated workbook export and a small function accepting allowed IDs/fields, applying the version rule, and returning provenance or “not found.” Query an existing authoritative database where suitable. Building records from irregular documents has its own cost; prioritize repeatedly used exact fields.
Natural-language-to-SQL is optional, not inherently correct or safe; see AWS’s GenerateQuery guidance. A narrow lookup may be simpler. Read-only access prevents writes, not unauthorized disclosure or semantically wrong queries. Enforce authorization and query scope outside the model.
Background for readers exploring those choices
These are background, not required replacements or diagnoses:
- TableRAG combines text retrieval and SQL-based table operations. Its relevance is separating prose retrieval from structured reasoning, not proving your current component is wrong.
- T-RAG studies table-aware indexing, retrieval and evidence organization; it is more relevant to multi-table questions than to a single-row lookup.
- CiteFix studies citation post-processing. Attribution is a separate engineering concern, but correcting a reference cannot make an unsupported statement true.
General safeguards for company information
These are precautions, not observed security failures in your setup:
- Enforce access before restricted evidence reaches an unauthorized user or model request. Prompts alone do not replace retrieval/tool permissions; check caches and conversation scope too.
- Treat retrieved documents as evidence, not application instructions. Keep tool permissions separate from text that could try to redirect the assistant, especially if actions are added later.
- Preserve source/version information through updates. Replacing a workbook can invalidate values, row locations and old citations; rerun representative checks after re-ingestion.
- Make partial answers normal: identifying a supported area while saying the current rent is unavailable is better than filling the gap with a guess.
You can start with a small set of well-defined question types and expand. One understandable failure trace gives a stronger basis for your next tool or setting than the model name alone.