AI Reading Notes: Prompt Engineering, Agent and RAG
Prompt Engineering and Reasoning https://arxiv.org/pdf/2212.09597 2 types of reasoning enhancement Strategy based enhancement Prompt engineering Single stage enhancement Few shot Chain of thoughts Multi stage enhancement enhance through multiple round of input and output Define specific follow up questions Inject additional context at each round Process optimization - optimize the whole inference and training process Self-Optimization: rate and correct the output from one rationale by using extra module Ensemble-Optimization: Execute multiple rationale in parallel and do majority vote Iterative-optimization: rate the output and iteratively fine tune the model with good output External engine - optimize with help of external tools Physical simulator: use physical simulator’s output as prompt to LM code interpreter: convert LM output into code and execute other tool like calculator, search api Knowledge based enhancement Implicit knowledge Use prompt to...