AIYINGFrom AI Awareness to Accomplishment
Showing posts with label Retrieval Augmented Generation. Show all posts
Showing posts with label Retrieval Augmented Generation. Show all posts

Thursday, November 5, 2026

The Effective AI Engineer #006: The Engineer Who Helped the Document Explain Itself

THE EFFECTIVE AI ENGINEER · CASE 006 OF 16

The Engineer Who Helped the Document Explain Itself

Applying Lateral Thinking to Create Meaningful Impact with AI

By Ravindra Dastikop


Engineering focus: Document preparation, retrieval, provenance and freshness.
Case type: Research-grounded fiction. Characters, events and trial observations are invented.
Sources checked: 5 November 2026.

1. The situation and impact sought

Ananya was building an internal knowledge assistant for a software company.

Support engineers used it to find explanations, operating instructions and product limitations across technical manuals. The assistant used retrieval-augmented generation, or RAG: it searched a document collection and supplied selected passages to a language model.

The documents contained the answers. Yet the assistant sometimes retrieved the wrong passage—or retrieved the right words without the information needed to interpret them.

A section said that a feature was unsupported. But the product name appeared several pages earlier. Another passage described a workaround whose version restriction appeared only in its heading.

The existing system divided documents into passages and searched their text using embeddings—numerical representations used to find semantic similarity.

Ananya’s task was to improve the usefulness of retrieved evidence within a two-week test. She could change document preparation and retrieval, but she could not rewrite the underlying manuals.

The useful outcome: Help support engineers find applicable, verifiable evidence with less searching and correction.

Retrieving something plausible would not be enough.

↑ Back to contents

2. The story

The answer was in the manual.

Ananya knew because she had found it herself.

The assistant had been asked whether a particular export option was available in the self-hosted edition. It returned a confident answer supported by a passage about the hosted edition.

Both passages discussed the same feature. Both used similar language.

Only one applied.

“We could try a different embedding model,” said Vikram, the support lead.

They added that option to the experiment list. But Ananya first opened the retrieved passage without the rest of its document.

It began: “This option is available after the administrator enables the setting.”

Which option? Which edition? Which release?

The passage made sense to someone who had read the preceding pages. The search system encountered it alone.

Ananya copied the document title and section heading above the passage.

Now its meaning was clearer.

At first, she considered adding headings to every passage and stopping there. Then she paused.

What was the heading actually doing?

It was helping a fragment retain the identity and scope it had possessed inside the complete document.

That was a broader idea than “add a heading.”

She wrote:

Help each fragment carry the information needed to recognise where it belongs.

From that idea, several possibilities emerged.

One was straightforward: attach reliable metadata such as document identity, edition, version and section path.

Another was to search small passages but retrieve the surrounding section when necessary.

A third was to generate a short, passage-specific explanation using the complete source document.

An AI assistant helped Ananya expand these possibilities. Several suggestions were merely different names for the same mechanism. She removed the duplicates.

Then she asked it to draft a contextual explanation for a passage.

The explanation looked useful. It also described the limitation as applying to every edition.

The manual did not say that.

Ananya marked the generated explanation as incorrect.

Helping a document explain itself could easily become helping a model invent what the document meant.

She changed the design.

Original text would remain unchanged. Generated explanations would be stored separately. Each explanation would be linked to its source version and treated as a derived annotation requiring checks.

For the first experiment, the team compared the existing passages, passages with verified headings and metadata, and passages with additional generated context. They kept the initial retriever and retrieval depth comparable.

Some ambiguous passages became easier to find with simple metadata. Some seemed to benefit from more specific explanations. Others gained little.

A larger section helped with one exception but brought irrelevant material into another answer.

Then a support engineer noticed something else: the correct old passage was still being retrieved after the manual had been updated.

The context was well written.

It was also obsolete.

Ananya added an update test. A source change had to trigger reconsideration of its passages and annotations. A deleted source had to disappear from active search results according to the system’s deletion process.

A separate permission test exposed another issue. An explanation generated from an entire document contained information from a restricted section.

The team stopped that route until they could preserve the appropriate access boundary. Restricting the original passage alone would not protect information copied into an annotation.

By the end of the fictional trial, Ananya had no universal winner.

She proposed verified metadata as the first change for the selected document collection, with generated context reserved for a narrower experiment on passages that remained difficult to retrieve.

Hybrid search and reranking remained separate candidates for later comparisons.

Vikram looked at the revised plan.

“So the answer wasn’t simply a better search model?”

“That was one possibility,” Ananya said. “First we needed to understand what the searchable passage had lost.”

↑ Back to contents

3. The thinking tool explained

The tool is concept extraction followed by generating alternatives.

In Serious Creativity, Edward de Bono describes pulling back from a specific idea to identify its underlying concept. The concept becomes a point from which other practical ideas can be developed.

The relevant discussion appears in “From Idea to Concept,” printed pages 139–141, with a further summary under “Concepts,” pages 315–316, in the supplied edition. [1]

In this case:

  • Specific idea: Add the document title and heading to a passage.
  • Extracted concept: Preserve the identity and scope a fragment needs when separated from its source.
  • Alternative implementations: Metadata, surrounding-section retrieval, or a verified contextual annotation.

The concept must be broad enough to generate alternatives and specific enough to guide useful work.

“Improve information” is too broad.

“Always prepend the section heading” is already an implementation.

This case does not require PO. Concept extraction is a distinct Lateral Thinking practice. Calling every change of perspective a provocation would obscure the method being used.

The retrieval application is our contemporary adaptation of de Bono’s thinking tool.

↑ Back to contents

4. The thinking made visible

Thinking step Application in this case
Focus Find evidence that applies to the user’s actual question.
Initial idea Add a title and heading to an isolated passage.
Pull back Ask what useful function that addition performs.
Extracted concept Preserve a fragment’s identity and scope outside its original surroundings.
Generate alternatives Supply structured metadata, recover surrounding sections, or add verified explanatory context.
Judge Compare retrieval quality, applicability, annotation errors and maintenance effort.
Act Test a bounded change against the existing system.

AI’s contribution

AI helps propose implementations and identify possible failure modes. It can also draft contextual annotations.

The engineer must check whether the alternatives differ in mechanism, whether annotations follow from the source, and whether access and update rules remain intact.

Reusable prompt

We are exploring this specific idea: [idea].

Explain the useful function it performs. Extract two or three possible underlying concepts at different levels of generality.

Choose a concept that is broad enough to generate alternatives but specific enough to guide this task: [task].

Generate three materially different implementations. For each, explain the mechanism, required information, likely failure, maintenance burden and smallest useful test.

Keep source facts separate from generated interpretation. Do not invent missing document details or assume that adding text improves retrieval.

↑ Back to contents

5. The engineering decision

Ananya separates improvements to the searchable material from changes to the search method.

Changing both at once might improve the system, but it would make the reason harder to identify.

Alternative Potential benefit Cost or difficulty Critical uncertainty Decision
Existing passage search Provides a baseline. May lose surrounding meaning. Which failures come from missing context? Retain for comparison.
Verified headings and metadata Preserves explicit identity and scope. Extraction and version mapping. Are the required details present and reliable? Test first.
Small passages with surrounding-section retrieval Recovers nearby qualifications. More text and retrieval logic. Does the extra material resolve ambiguity? Test separately.
Generated contextual annotations Can explain a passage’s role. Generation, verification and refresh. Does the annotation introduce unsupported meaning? Narrow experiment.
Hybrid search or reranking Changes how candidates are found or ordered. Additional configuration and evaluation. Is the bottleneck retrieval method rather than representation? Separate comparison.

Keep evidence and annotation distinct

An original passage, authoritative metadata and a generated explanation have different origins. Preserve that distinction in storage, inspection and answer presentation.

A citation should lead to a source location supporting the claim. A generated description of a passage is not independent evidence.

Treat updates as part of the design

Record which source version produced each derived artifact. When relevant source content changes, refresh or invalidate dependent material.

Access changes need their own tests. A generated annotation must not become a route around restrictions on its source information.

These are design requirements for the fictional system, not guarantees supplied automatically by a retrieval product.

↑ Back to contents

6. The evidence behind the case

What research supports

Anthropic’s Contextual Retrieval approach adds passage-specific context before indexing. Its published experiments also explore lexical retrieval and reranking. The reported gains belong to those configurations and datasets; they are not guarantees for another organisation’s manuals. [2]

Anthropic’s accompanying cookbook provides an implementation example and a retrieval evaluation using expected passages. This supports testing the retrieval stage directly, rather than judging it only through polished final answers. [3]

Dense Passage Retrieval demonstrates learned passage retrieval in open-domain question answering. It establishes an important retrieval approach, but its benchmark results do not settle which method best suits this case’s version-sensitive documents. [4]

Microsoft’s documentation describes document-level access controls, including security filtering and several approaches marked as preview. Its Azure Storage indexing guidance also distinguishes change detection from deletion detection: deletion requires an appropriate configured process. These illustrate why permissions and source lifecycle need explicit engineering attention. [5] [6]

What this case adds

The protagonist, failure sequence, comparison plan and proposed metadata-first decision are fictional teaching choices.

What remains uncertain

The appropriate passage boundaries, annotation method, retrieval strategy and refresh process depend on the collection and user questions. Better retrieval does not automatically establish correct answers or lower total operating cost.

No claim is made that the cited organisations use de Bono’s methods.

↑ Back to contents

7. Try the move

Accessible exercise

Choose an approved document with headings, qualifications or version-specific instructions.

  1. Select a passage that becomes ambiguous when read alone.
  2. Add information that makes it interpretable.
  3. Ask what useful function your addition performs.
  4. Express that function as a

The Effective AI Engineer #005: The Engineer Who Gave AI Less to Read

The Effective AI Engineer · Case 005 of 16

The Engineer Who Gave AI Less to Read

Applying Lateral Thinking to Create Meaningful Impact with AI

By Ravindra Dastikop

Research-grounded fiction. The characters, organization and experimental observations are invented. Engineering sources checked on 5 November 2026.



In this case

1. The situation and impact sought

Priya was building an internal assistant that helped engineers investigate software deployment failures.

For each incident, it received the incident conversation, deployment logs, service documentation and previous troubleshooting notes. It drafted an explanation and suggested checks for an engineer to review. It could not execute commands or change production systems.

Whenever the assistant missed something, the team added more material.

Soon, individual requests contained repeated logs, outdated suggestions and documentation for several service versions.

The material fitted inside the model’s supported context window. That did not establish that the assistant used it correctly.

Priya had two weeks to investigate the problem using approved historical incidents and a test environment.

Her objective was to help an engineer reach an evidence-supported next check with less investigation and correction effort. The existing assistant and the current manual process were the baselines.

A shorter input would be useful only if it preserved the evidence needed for that decision.

Back to contents ↑

2. The story

The assistant’s latest explanation sounded convincing.

It attributed a deployment failure to a database connection problem and cited a timeout from the logs.

Dev, the reviewing engineer, shook his head.

“That timeout happened after the deployment had already failed.”

Priya inspected the input.

The timeout appeared repeatedly because several people had copied it into the incident conversation. The earlier configuration error appeared once.

She marked the sequence in her notebook.

At the next meeting, someone proposed adding the complete service handbook.

“Then it will have everything.”

Priya almost agreed.

Instead, she tried an uncomfortable thought: suppose the assistant could no longer read the incident archive.

What would remain?

A service name. A deployment identifier. A question. Perhaps a list of places where evidence could be found.

At first, the idea seemed to remove the assistant’s usefulness.

Then Priya imagined the next moment.

The assistant would have to ask for something specific.

Which deployment? Which service version? What was the first failing step? Where was the original error recorded?

The archive could remain available without appearing in every input.

She wrote three possibilities.

First, prepare a small evidence packet before asking for an explanation.

Second, let the assistant request additional records through a limited lookup process.

Third, separate the work: one step locates candidate evidence; another examines a selected set.

She asked an AI assistant to develop these directions and identify what each might lose.

It suggested compressing every incident into a short summary.

That sounded efficient.

Priya tried it on a development example.

The summary preserved the main error but omitted the fact that an earlier mitigation had already been attempted.

The next assistant recommended that same mitigation again.

Dev pointed to the original conversation.

“We made it shorter by removing the reason this suggestion was wrong.”

Priya stopped treating token count as the objective.

She replaced the free-form summary with a more explicit evidence packet:

  • The question being investigated.
  • Service and deployment identifiers.
  • Relevant versions.
  • An ordered sequence of selected events.
  • Exact error excerpts.
  • Actions already attempted and their observed results.
  • Unresolved questions.
  • References back to the original records.

She kept observations separate from participants’ hypotheses.

Then she tested the packet.

On one case, the assistant identified an earlier configuration failure without being distracted by repeated downstream timeouts.

On another, it missed a relevant event that the packet builder had excluded.

The first result was encouraging. The second exposed the new design’s weakness.

“We’ve moved part of the problem into selection,” Priya said.

She added a way to request surrounding records when the supplied evidence was insufficient. The test harness limited the number of retrieval rounds and recorded what was requested.

The assistant sometimes asked useful questions.

It also sometimes searched broadly without improving its explanation.

Priya added a stopping condition: when the available evidence did not support a next check within the defined limits, the assistant should identify the gap and hand the investigation back.

Then a colleague noticed another problem.

A document labeled “latest” described the current service, but the historical incident involved an older release.

Priya changed the evidence preparation to preserve applicability. Where historical documentation was unavailable, the packet stated that limitation.

For retrospective tests, she also excluded information added after the point at which the assistant was supposed to advise the engineer.

Knowing the eventual resolution would make the demonstration easier. It would make the comparison misleading.

The team compared the original broad input, a prepared packet and a packet with bounded follow-up retrieval.

They used the same model and task instructions where possible, and recorded selection effort, retrieved material, review time and unsupported claims.

The fictional results were mixed.

Focused packets helped on some cluttered incidents. Other incidents needed broader context. Follow-up retrieval recovered some missing evidence but added delay and more behavior to inspect.

Priya proposed a limited pilot for a defined incident category.

At the review, her manager asked how much less the assistant would read.

“That depends on the incident,” she said.

“What changed, then?”

“We stopped making it read everything before we knew what it needed.”

Back to contents ↑

3. The thinking tool explained

The tool is escape provocation followed by deliberate movement.

In Serious Creativity, de Bono describes escape as identifying a normal feature taken for granted and temporarily removing it. The next step is movement toward a useful idea. [1]

For this case:

Taken-for-granted feature: The incident assistant receives the incident archive as part of its initial input.

Original contemporary provocation:

PO: The incident assistant cannot read the incident archive.

This is a thinking stimulus. It is not a deployment requirement.

Priya uses two movements:

  • Moment to moment: Imagine the assistant facing a question without the archive. What must it request next?
  • Extract a principle: Information can remain accessible without being loaded into every model call.

These movements generate distinct possibilities:

  1. Prepare a task-specific evidence packet.
  2. Retrieve additional evidence when a defined need arises.
  3. Separate evidence collection from interpretation.

The practical design restores selective access. A provocation does not have to survive literally in the resulting solution.

The PO is our original adaptation. Context selection and retrieval are established engineering practices; this case does not claim to invent them.

Back to contents ↑

4. The thinking made visible, including AI’s contribution

Focus: Help an engineer identify an evidence-supported next check.

Restricting assumption: Giving the model more available material is the appropriate response to an omission.

Escape: Remove the incident archive from the initial input.

Movement: Explore what information the assistant would need to request, and how the system could provide it.

Direction Practical possibility Main uncertainty
Prepare evidence in advance Assemble a packet preserving sequence, applicability and source references Will selection omit a decisive fact?
Obtain evidence progressively Allow bounded requests for original records Will requests recover useful information efficiently?
Separate responsibilities Collect evidence before interpreting it Will the handoff preserve qualifications and disagreements?

AI helps generate packet designs, missing-evidence scenarios and retrieval questions.

Priya and domain reviewers establish which records support a claim, inspect omissions and decide whether a proposed check is justified.

Reusable prompt

Explore this escape provocation: PO, the incident assistant cannot read the incident archive.

Useful outcome: [outcome].
Available authorized sources: [sources].
Information available at the decision time: [details].
Constraints: [limits].

Use moment-to-moment movement and extract a useful principle.

Develop three different ways to supply sufficient evidence without loading the entire archive initially.

For each, identify what could be omitted, how missing evidence could be recovered and when the system should stop.

Preserve identifiers, event order, exceptions, attempted actions and source references where relevant.

Keep observations separate from hypotheses. Do not invent incident facts or claim that shorter context is always better.

Back to contents ↑

5. The engineering decision

Priya selects a prepared evidence packet with a bounded route to additional records for a limited pilot.

Alternative Potential benefit Cost or failure mode Decision
Broad initial context Retains material whose relevance is not yet known Repetition, conflicting versions and difficult inspection Keep as a baseline
Prepared evidence packet Makes relevant evidence easier to inspect Selection can omit necessary facts Test on a defined incident category
Packet with follow-up retrieval Can recover missing evidence Added latency, retrieval failures and variable requests Pilot within explicit limits
Compressed summary Reduces repeated material Can lose exact details, qualifications or failed attempts Use only with evaluated preservation requirements

The packet is a proposed design for this task, not a universal schema.

Its construction must be evaluated alongside answer generation. A model cannot reason from a decisive fact that the selection process has removed.

A useful diagnostic comparison supplies a manually verified evidence packet. If performance improves, selection deserves investigation. That does not independently establish a single cause or validate the automated packet builder.

Resource limits should support useful work. Arbitrarily cutting every incident to the same token count could remove essential evidence.

Back to contents ↑

6. The evidence behind the case

Anthropic’s context-engineering guidance discusses selecting useful information, retrieving material when needed and managing accumulated context. It also warns that aggressive compaction can lose important details. This supports examining both what enters the input and what is removed. It does not establish that the shortest input performs best. [2]

Lost in the Middle found that the position of relevant information affected performance on the models and retrieval tasks studied. It provides a reason to test whether available evidence is used reliably. Published research on those models does not establish identical behavior for every contemporary model or incident workflow. [3]

Anthropic’s Contextual Retrieval research examines how isolated chunks can lose information needed to interpret them. Its approach preserves additional context during indexing. This reinforces a complementary lesson: selecting less material must not strip away applicability or meaning. Its reported results are specific to its experiments. [4]

The incident scenario, evidence packet and pilot decision are fictional adaptations. No source demonstrates that this invented system reduces investigation time or that the organizations use de Bono’s methods.

Back to contents ↑

7. Try the move

Choose a document-heavy AI task.

Select several approved examples and identify what a competent reviewer needs to judge the answer.

For each example:

  • State the question.
  • Record the information available at the decision time.
  • Identify necessary facts and qualifications.
  • Preserve references to the originals.
  • Mark disagreements and missing evidence.

Apply the escape: imagine the initial model call cannot receive the source collection. Develop three ways to obtain sufficient information.

Accessible exercise: Give a colleague a prepared packet. Ask them to identify a next action and record every additional item they need. Revise the packet around those observations.

Technical extension: Compare broad context, a selected packet and selected context with bounded follow-up retrieval.

Keep model and instructions comparable. Record preparation effort, retrieval calls, supported correctness, omissions, unresolved cases, review time, latency and cost. Include preparation or indexing costs when assessing overall value.

Use development and reserved assessment cases. Repeat variable trials.

Define unacceptable omissions and pilot limits before selecting a candidate. Evaluate useful outcomes rather than celebrating token reduction alone.

Back to contents ↑

8. Take it into your work, including limits of transfer

For the engineer: Inspect one failure and ask whether the model lacked a fact, received conflicting evidence or failed to use information already present.

For the technical leader: Ask who owns evidence selection and how that process is evaluated.

This approach fits tasks with repetitive, mixed or selectively relevant source material.

It may fit less well when the task requires exhaustive review or relationships across a large body of evidence. A broader input can be the appropriate baseline or final choice.

Retrieval adds failure modes and maintenance. Summaries can remove important qualifications. A human-designed packet can encode the designer’s mistaken expectations.

Start with the least elaborate comparison that can inform the decision.

Transfer question: Which detail would make your shorter input dangerously incomplete—and how would the system recover it?

Back to contents ↑

9. Reusable artifact and sources

The Context Selection Record

Document:

  1. User and useful outcome.
  2. Question being answered.
  3. Authorized sources.
  4. Applicable versions and decision time.
  5. Required evidence and qualifications.
  6. Observations, hypotheses and unresolved conflicts.
  7. Selection method.
  8. Exact excerpts and source references.
  9. Information deliberately omitted and why.
  10. Conditions for requesting more evidence.
  11. Retrieval limits and stopping conditions.
  12. Baseline and reserved assessment cases.
  13. Quality, effort, latency and cost measures.
  14. Unacceptable omissions.
  15. Pilot owner and review date.

References checked 5 November 2026

  1. Edward de Bono, Serious Creativity, 1992, “The Escape Method,” printed pages 165–167 in the supplied project edition.
  2. Anthropic, Effective context engineering for AI agents, 29 September 2025.
  3. Nelson F. Liu and colleagues, Lost in the Middle: How Language Models Use Long Contexts, 2023.
  4. Anthropic, Introducing Contextual Retrieval, 19 September 2024.

Publication note: Priya, Dev, their organization and all experimental observations are fictional. The PO, prompt and reusable artifact are original contemporary applications. Sources support the underlying methods and engineering considerations, not empirical results for this invented case.

Back to contents ↑

AIYING — Accomplishing with AI

Lateral Thinking · Engineering Judgment · Meaningful Impact

By Ravindra Dastikop · The Effective AI Engineer · Case 005 of 16

Accomplish with AI

Powered by Blogger.

Featured post

AI Engineering Hands-On Lab #001 — Build an AI Answer Reliability Test Bench Without Code

AIYING | Daily 24 — Post 009 AI Engineering Hands-On Lab #001 Build an AI Answer Reliability Test Bench — Without Writing Code Lea...

Search This Blog

List of blogs

Search This Blog

About

Translate

Instant Stories

Read in Your Language

Test

share this

ShareThis

Popular Posts