QuestionQ13

VerifiedKnowledge Retrieval and Genie Configuration

A context engineer is reviewing a Databricks agent pipeline designed for a contract review assistant. Users submit queries such as “Can I get out of this?” and “What does this cover?”. The pipeline retrieves syntactically valid contract clauses through a vector search index, but generated responses consistently address the wrong contractual context. Tracing logs confirm that the vector search index, prompt assembly, and LLM generation stages all execute without errors. The pipeline stages are: input ingestion, pre-retrieval enrichment, context retrieval, prompt construction, and response synthesis.

At which pipeline stage should the context engineer intervene to ensure that retrieval operates on a grounded representation of the user’s contractual request?

Explanation

Pre-retrieval enrichment can use available contractual or conversation context to rewrite a vague request into a more specific retrieval query. This gives vector search a better representation of the user’s intent before clauses are selected. If the available context is insufficient to resolve the ambiguity, the assistant should seek clarification rather than invent details. (docs.databricks.com)

Learn more

Community Discussion

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