Compact And Refine
Last updated
Last updated
This is the default when no Response Synthesizer is explicilty defined.
Compact the prompt during each LLM call by stuffing as many text chunks that can fit within the maximum prompt size. If there are too many chunks to stuff in one prompt, "create and refine" an answer by going through multiple compact prompts.
Pros: The same as Refine, Good for more detailed answers, and should result in less LLM calls
Cons: Due to the multiple LLM calls , can be expensive
Refine Prompt
Text QA Prompt