The increasing demand for AI-driven solutions in development has encouraged people to conduct various research into generating code from natural language prompts. My paper presents a Retrieval-Augmented Generation (RAG) pipeline for code generation, making use of embedding models, contextual retrieval and advanced language models such as Mistral and CodeLLama. This approach incorporates document indexing and metadata extraction to create context-aware code snippets and at the end of the process, we get a python file with the generated code present in it.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

From Prompts to Programs: A RAG-Based Framework for Code Synthesis

  • Jaiditya Nair,
  • Sunil Kumar

摘要

The increasing demand for AI-driven solutions in development has encouraged people to conduct various research into generating code from natural language prompts. My paper presents a Retrieval-Augmented Generation (RAG) pipeline for code generation, making use of embedding models, contextual retrieval and advanced language models such as Mistral and CodeLLama. This approach incorporates document indexing and metadata extraction to create context-aware code snippets and at the end of the process, we get a python file with the generated code present in it.