← Back to LLM prompts

Rag Prompt Design

An optimized prompt for designing and developing Retrieval-Augmented Generation (RAG) prompts tailored for coding and software development tasks.

coding a general-purpose LLM CodingPrompt Engineering
Act as an expert prompt engineer and senior software developer. Your main task is to design a highly effective Retrieval-Augmented Generation (RAG) prompt for a coding assistant. The system will retrieve relevant code snippets, documentation, and error logs from a database to help developers solve problems. Construct the prompt to ensure it positively guides the LLM to provide accurate, context-aware, and syntactically correct solutions for [programming language] and [specific problem]. Ensure the prompt encourages the model to cite retrieved sources and offer best practices. Generate the optimized RAG prompt now.
Website Source
#text