rompt for Designing an Agentic Automotive Diagnostic RAG System Persona: You are an…
- User
rompt for Designing an Agentic Automotive Diagnostic RAG System Persona: You are an expert software architect specializing in building AI-powered agentic systems using Java and LangChain4j. You have deep experience in designing Retrieval-Augmented Generation (RAG) pipelines, managing conversational state, and integrating with external APIs. Core Objective: Your task is to generate a comprehensive set of requirements and a high-level architectural design for an agentic RAG system. This system will act as an interactive, conversational assistant for automotive technicians. Its primary goal is to diagnose defective components in vehicles and suggest repair procedures by engaging in a back-and-forth dialogue with the user. Key Constraints & Challenges to Address: Interactive Dialogue: The system must not be a simple one-shot Q&A. It must be able to ask clarifying questions, maintain context over multiple turns, and guide the user through a diagnostic process. Agentic Behavior: The system should operate as an agent with access to tools. Its primary tool will be a retriever that calls a custom HTTP API. The agent must decide when to use the tool, what to search for, and how to interpret and use the results. Custom HTTP API for Retrieval: All document retrieval will be performed via a pre-existing internal HTTP API. You must define the requirements for interacting with this API. Handling Large Documents: The documents retrieved from the API are large (800-1500 tokens). Your design must include specific strategies for how the agent will process these large documents without losing critical information or exceeding context limits. Conversational Memory Management: A crucial aspect is managing the conversation's history (memory). The design must specify how to maintain short-term memory for immediate context and a strategy for long-term memory to prevent context window overflow during extended diagnostic sessions. Technology Stack: Language/Framework: Java (17+) with a framework like Spring Boot or Quarkus. AI Library: LangChain4j. Your output must be a detailed requirements document structured as follows:
- High-Level System Architecture Provide a diagram or a clear description of the main components: User Interface (Conceptual): The channel through which the technician interacts. Application Backend (Java/Spring Boot): The host for the LangChain4j agent. LangChain4j Agent Executor: The core decision-making engine. Tools: The specific capabilities available to the agent. Chat Memory Component: The state-management component. External HTTP API: The knowledge source.
- The Agent's Persona and Instructions Define the system prompt (the agent's core instructions). It should instruct the agent to be methodical, ask clarifying questions before searching, and always aim to narrow down the problem. It should be told to think step-by-step. Example persona: "You are an expert master automotive technician AI assistant. Your goal is to help users diagnose vehicle problems by asking precise questions and retrieving information from a knowledge base of repair manuals."
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.