Prompt engineering is the process of designing and structuring prompts to get better results from an LLM.

In a RAG application, a prompt template typically contains:

User query

Retrieved documents from the vector database

Additional context or instructions