A prompt template is reusable prompt text with variable placeholders. In a retrieval-augmented application, it keeps instructions, retrieved context, and the user’s question in a consistent structure. section 7.4.2
Product question answering
A LangChain application combines the template with Chroma retrieval and GPT-3.5 Turbo. A query asking for a 30-word description produces an answer about the New SmartX 2023 and returns source documents.
Figure 7.14 The implemented architecture
Use the architecture view to trace how the prompt template connects the vector database, retrieval interface, and language model. section 7.4.2




















