Design Applications
DB-GENAI · 28 questions
- A customs-compliance agent at Meridian must return its HS-code classification result as machine-readable output that a downstream tariff-calculation service can parse without a human reading it first. What should the engineer add to the prompt design to guarantee this?
- The port-operations copilot for Meridian's terminal planners retrieves the most recent berth-allocation circulars and grounds its answer in them, but planners currently see raw retrieved passages glued in front of the model's answer in the chat window. Which chain component is missing?
- Meridian's maintenance-triage lead says: 'A technician pastes in a raw crane maintenance log entry, and the assistant should return the equipment ID, the fault category, and whether the fault requires an immediate shutdown.' Which description of desired pipeline inputs and outputs matches this ask?
- The charter desk at Meridian Ocean Carriers wants a tool that answers clause-level questions about charterparty contracts and always cites the clause number it drew from. Which model task should the GenAI engineer design the pipeline around?
- Meridian receives thousands of scanned bills of lading per week and needs a consistent set of fields (shipper, consignee, container ID, port of discharge) pulled from every one into a table, with no open-ended question answering involved. Which Agent Bricks pattern fits this requirement with the least custom code?
- A single planner query at Meridian sometimes needs both a charter-clause lookup and a customs-tariff lookup answered together in one response, and each lookup requires a different specialized retrieval corpus and different domain logic. Which Agent Bricks pattern is purpose-built for orchestrating this kind of multi-domain request?
- Meridian wants a single assistant that can answer any question a terminal planner asks against the entire library of port-authority circulars, complete with citations, and the team has no interest in maintaining custom retrieval or prompt-engineering code for it. Which approach best fits this requirement?
- A customs-compliance agent needs to validate a declaration by (1) looking up the correct HS code for the goods description and (2) checking that code against the destination country's current tariff rules. In what order should these two tools be defined and called for reliable multi-stage reasoning?
- Meridian's safety team wants every incoming near-miss report automatically tagged as 'low', 'medium', or 'high' severity so they can be triaged into the right review queue, with no free-text explanation needed at this stage. Which model task fits this requirement best?
- The engineer is designing few-shot examples inside the prompt for extracting fields from bill-of-lading text. Each example shows a sample OCR'd document snippet followed by the exact JSON the model should output for it. What is the primary design benefit of including these worked examples rather than relying on the instruction text alone?
- In the system prompt for the charter-desk assistant, the engineer writes: 'You are a maritime contracts assistant. Answer only using the retrieved clause text provided below; if the answer is not in the retrieved text, say you don't know.' Why is this instruction placed in the system prompt rather than left for the user to type each time?
- For the same near-miss reports, safety leadership later asks for a second capability: 'once a report is tagged high severity, give the reviewer a two-sentence plain-English digest of what happened.' How should this be added to the existing design?
- Meridian's legal team asks for an assistant that reviews a proposed charter clause and explains, in plain language, what obligation it creates for the shipowner - drawing only on the actual clause text supplied, never on the model's general knowledge of maritime law. Which instruction belongs in the prompt to enforce this constraint?
- Deck and engine-room crew on Meridian vessels file reports in English, Tagalog, and Mandarin. The port-ops copilot needs to summarize a batch of mixed-language reports for a monolingual English-speaking shift supervisor. In what order should translation and summarization be applied?
- A marine-insurance underwriter partnering with Meridian wants a tool that reads incoming casualty claim narratives and returns exactly three bullet points: cause, estimated exposure, and recommended next action - nothing else, in that fixed order, every time. What prompt-design technique most directly enforces this?
- Meridian's port-ops copilot must answer 'which berths are free right now for a 300-meter vessel,' which requires checking a live scheduling system that changes by the minute, not text sitting in a static document index. What does this requirement imply about the pipeline's design?
- A rail intermodal yard partnering with Meridian on cross-docked containers wants an assistant that, given a shipment ID, pulls together customs status, current yard location, and any open maintenance flags on the container itself - three different backend systems - into one combined answer. Which capability must the chain include beyond a single retriever and a single LLM call?
- The engineer is choosing between building a fully custom agent for the customs-compliance workflow versus using an Agent Bricks pattern. The workflow has highly bespoke, multi-step business logic specific to Meridian's internal escalation policy that no generic pattern anticipates. What does this imply about the right approach?
- Meridian wants the charter-desk assistant's answers to always end with a standard disclaimer sentence, word-for-word identical every time, regardless of what the retrieved clause says. Where is the most reliable place to enforce this exact, invariant text?
- The engineer drafting the charter-desk assistant's prompt writes the retrieved clause text directly into the same message as the user's question, with no labels distinguishing which part is retrieved context and which part is the user's actual question. What risk does this design choice introduce?
- Meridian's engineer is deciding what a customs-lookup tool should return to the calling agent: the raw, full-text government tariff webpage, or a small structured object with just the fields the agent's next reasoning step needs (code, rate, effective date). Which choice better supports reliable multi-stage reasoning?
- Meridian's data science lead reviews the design for the safety-review summarizer and notes that incident narratives sometimes contain crew members' names and other personally identifiable details. At the design stage - before any pipeline is built - what should the engineer flag as a required design consideration, even though PII masking implementation itself belongs to governance?
- Meridian's charter desk says the assistant sometimes answers confidently even when no clause in the retrieved set actually addresses the question. Which prompt-design fix most directly targets this specific failure mode?
- A vessel captain wants a tool where they describe an unusual engine noise in plain conversational language and the assistant asks clarifying follow-up questions before suggesting likely fault categories, rather than requiring a single perfectly-formed query up front. What does this requirement suggest about the chain design?
- Meridian wants the customs-compliance agent's tool-calling behavior to be auditable after the fact: for any declaration it processed, a compliance officer should be able to see exactly which tools were called, in what order, and what each one returned. What must the chain design account for to make this possible?
- Meridian is deciding between two designs for the maintenance-triage assistant: (A) one large prompt that asks the model to read a raw log entry and, in a single pass, extract fields, classify the fault, and decide the shutdown flag; or (B) three separate, chained prompts, each handling one of those three sub-tasks in sequence. Which factor most directly favors design (B) for this use case?
- A charter clause references a defined term ('Laytime') whose meaning depends on an earlier definitions section of the same contract, dozens of pages before the clause in question. The assistant, when asked about laytime obligations in this clause, needs both passages to answer correctly. What does this imply for retrieval design at the input/output translation stage?
- The port-ops copilot is being scoped, and Meridian's product owner asks: 'Should this be a single conversational assistant, or should we split berth-schedule questions, circular questions, and crane-status questions into three separate agents coordinated by a supervisor?' Under what condition does the three-agent-plus-supervisor design become the better choice over a single agent?