Skip to content

Stuck? Find the first broken step ​

If an answer cites the wrong policy, first ask what the search returned. One source ID can narrow a confusing problem to a single part of your app.

Four prints of one leaf are compared against a tonal scale on a light box.

LinkedIn opens a draft you can review before posting.

Take one question that got a wrong answer. Open the first passage your search returned and read it beside the source you expected.

  • The needed words are missing. Check that the original made it into the index, then inspect the chunks the search returned.
  • The passage contains the answer. Check whether those words reached the model. If they did, inspect the model’s response.
  • The answer is supported but the link opens elsewhere. Follow the returned source and chunk IDs to the location your app displays.

Use the table below for the first step that failed. Optional debugging prompt

What you seeTry this firstIf that check fails
A source is missing after importCount imported rows and look for its stable ID.Check the file path, permission to read it, parser, and importer error.
A second import creates duplicatesCompare IDs and counts before and after repeating the import.Check how the importer recognizes an existing version.
Search finds nothingInspect the stored text or graph and query the index directly.Check the chunk boundaries, tokenization, and whether the model/index is ready.
Vector results look unrelatedCompare the embedding model/version for documents and questions. Open the passages behind the scores.Compare with a keyword baseline, then test one change in chunking or filters.
A graph points to the wrong person or factFollow one relationship back to its source passage.Check whether two entities were merged or a relationship was extracted incorrectly.
The answer ignores the documentsInspect a redacted copy of the passages actually sent to the model.Fix the search or context selection if the expected passage is missing.
A citation opens the wrong passageCompare the source ID and text with the claim on screen.Check how the app maps IDs to links and add a test for this case.
The model call failsCheck service readiness and the returned status. Keep credentials out of logs.Confirm the provider configuration, account access, and resource limits.
The app works locally but fails onlineCompare the active configuration and health of the two environments.Check HTTPS, proxy, bind address, and database persistence.
Everything disappears after a restartRestart a test instance and look for the same source ID.Check whether the data lives in a durable volume or store.

Diagnostic order ​

Follow one source through five places: original document → stored record → retrieved passage or path → model context and answer → hosted result. If the expected sentence is already missing at retrieval, changing the response wording cannot bring it back.

Two safe fallbacks ​

Retrieval is blocked. Use a keyword search on the same source to see whether import and IDs work. Label it as a baseline and return to your chosen vector or graph implementation once you’ve isolated the problem.

The model is unavailable. Demonstrate the real import and search that you can run. Mark generation as incomplete. Check your existing local, shared, or provider access. If you use a fixed response to test a button, label it as a mock.

What to bring to class or office hours ​

Bring the repo and URL, one action you tried, the source ID or query, what you expected, and the actual result or redacted error. Include the checks you already ran. Remove API keys, passwords, full environment files, and private student information.

Small build path · Verification worksheet · Official course brief

IS373 · Documentation and contract labs available · Research runtime planned