QuestionQ12

VerifiedKnowledge Retrieval and Genie Configuration

A context engineer is developing an agent to support legal teams reviewing multi-part pharmaceutical trial protocols. Each protocol document includes a narrative background section, nested dosage tables with footnote qualifiers, cross-referenced section identifiers, and figure captions describing study design diagrams. The agent must answer precise questions such as which protocol section governs a specific dosage threshold and what footnote conditions apply to that threshold.

Available data sources include:

  • A PDF binary store in Unity Catalog Volumes.
  • A Delta table of plain-text chunks extracted from the protocols, each tagged with page number and document identifier, indexed in a Databricks AI Search index.
  • A Delta table of protocol structure metadata at the page level, containing table summaries, figure captions, and section hierarchy, accessible through Unity Catalog functions.

Which context elements should the context engineer include to answer structural and footnote-level questions accurately?

Explanation

AI Search can retrieve relevant protocol passages, while document identifiers and page numbers can scope a Unity Catalog function lookup for the corresponding table summaries, figure captions, and section hierarchy. This combines passage content with structural context without loading the entire metadata table into the prompt. (docs.databricks.com)

Footnote-level accuracy still depends on the relevant footnote text being captured in the chunks or metadata; table summaries alone do not guarantee that it is available. Structured document parsing can extract tables and footnote elements when more complete content is needed. (docs.databricks.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!