OkraLong: A Flexible Retrieval-Augmented Framework for Long-Text Query Processing
This work addresses a domain-specific problem for applications like enterprise document analysis and financial report comprehension, offering an incremental improvement over existing methods.
The paper tackles the problem of efficiently processing long-text queries with LLMs, proposing the OkraLong framework which enhances answer accuracy and achieves cost-effectiveness across various datasets.
Large Language Models (LLMs) encounter challenges in efficiently processing long-text queries, as seen in applications like enterprise document analysis and financial report comprehension. While conventional solutions employ long-context processing or Retrieval-Augmented Generation (RAG), they suffer from prohibitive input expenses or incomplete information. Recent advancements adopt context compression and dynamic retrieval loops, but still sacrifice critical details or incur iterative costs. To address these limitations, we propose OkraLong, a novel framework that flexibly optimizes the entire processing workflow. Unlike prior static or coarse-grained adaptive strategies, OkraLong adopts fine-grained orchestration through three synergistic components: analyzer, organizer and executor. The analyzer characterizes the task states, which guide the organizer in dynamically scheduling the workflow. The executor carries out the execution and generates the final answer. Experimental results demonstrate that OkraLong not only enhances answer accuracy but also achieves cost-effectiveness across a variety of datasets.