1 comment

[ 6.7 ms ] story [ 13.3 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.