Discover and explore top open-source AI tools and projects—updated daily.
yszLLM for unbounded context processing via recursive exploration
Top 65.9% on SourcePulse
Recursive Language Models (RLM) provides a Python implementation for processing unbounded context lengths with Large Language Models (LLMs). It addresses the "context rot" problem by storing context as Python variables rather than within prompts, enabling LLMs to recursively explore and partition vast amounts of text (100k+ tokens). This approach is beneficial for researchers and engineers needing to analyze or query extremely long documents efficiently and accurately.
How It Works
RLM operates by maintaining the context as a Python variable, allowing the LLM to interact with it programmatically. The core mechanism involves a root LLM that receives the query and instructions, while the context is explored recursively. The LLM can "peek" at context segments, perform searches (e.g., using regex), and call itself recursively on sub-sections of the context. This adaptive exploration is managed via a REPL executor that safely executes Python code using RestrictedPython, enabling dynamic context navigation without prompt inflation.
Quick Start & Requirements
git clone https://github.com/ysz/recursive-llm.git), navigate into the directory, and install via pip install -e . or pip install -e ".[dev]".Highlighted Details
Maintenance & Community
The project is primarily associated with Grigori Gvadzabia, based on the provided citation. While explicit community channels like Discord or Slack are not mentioned, the GitHub repository serves as the central hub for development, issues, and contributions.
Licensing & Compatibility
The project is released under the MIT License. This permissive license allows for commercial use and integration into closed-source projects without significant restrictions.
Limitations & Caveats
The REPL execution environment is currently sequential, lacking parallel code execution capabilities. Prefix caching is not yet implemented, and the recursion depth is configurable but limited. Streaming support is also not available in the current version. The package is not yet available on PyPI, requiring installation from source.
3 weeks ago
Inactive
datamllab