1 comment

[ 3.7 ms ] story [ 16.0 ms ] thread
RAG takes an input and retrieves a set of relevant/supporting documents given a source (e.g., Wikipedia). The documents are concatenated as context with the original input prompt and fed to the text generator which produces the final output.