Discover and explore top open-source AI tools and projects—updated daily.
avbiswasRLMs for arbitrarily long prompts
Top 76.8% on SourcePulse
Summary
fast-rlm provides a minimal Python implementation of Recursive Language Models (RLMs), enabling Large Language Models (LLMs) to process and interact with arbitrarily long prompts. It targets engineers and researchers needing to overcome context window limitations, offering programmatic exploration of extensive data through an external REPL.
How It Works
The core approach leverages an external REPL where an LLM can write and execute code to decompose tasks and explore prompts. It supports recursive invocation of sub-agents, with their responses returned as symbols or variables within the parent agent's REPL, rather than being automatically injected into the context. This design allows for efficient, programmatic handling of data far exceeding standard LLM context windows.
Quick Start & Requirements
Installation is straightforward via pip: pip install fast-rlm. Prerequisites include Python 3.10+, Deno 2+, and optionally Bun for the TUI log viewer. An LLM API key must be set via the RLM_MODEL_API_KEY environment variable. The project provides links to GitHub, documentation, PyPI, and a YouTube tutorial for further guidance.
Highlighted Details
RLMConfig..jsonl logs for each run, with an optional interactive TUI viewer accessible via the fast-rlm-log command.RLM_MODEL_BASE_URL.Maintenance & Community
The project is supported via Patreon. Specific details regarding core contributors, sponsorships, or dedicated community channels (like Discord/Slack) are not detailed in the README. Contributions are welcomed but restricted to small, focused Pull Requests.
Licensing & Compatibility
The project's license is not explicitly stated in the provided README. This omission requires clarification for users considering commercial use or integration into closed-source projects.
Limitations & Caveats
The system requires careful prompt engineering, particularly regarding task placement and marking structured data. Performance is dependent on the chosen LLM's coding capabilities. Development from source necessitates setup for both Deno and Bun. The contribution guidelines emphasize small PRs and discourage large feature requests without prior discussion.
6 days ago
Inactive
microsoft
sobelio