@superadnim/rlm-pro 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bin/rlm-codebase.js +18 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RLM PRO
|
|
2
2
|
|
|
3
|
-
Analyze
|
|
3
|
+
Analyze **any corpus of unstructured data** using Recursive Language Models - enables LLMs to handle near-infinite context through recursive decomposition.
|
|
4
|
+
|
|
5
|
+
Works with codebases, document collections, research papers, logs, and any text-based data corpus.
|
|
4
6
|
|
|
5
7
|
Based on the [RLM research](https://arxiv.org/abs/2512.24601) from MIT OASYS lab.
|
|
6
8
|
|
package/bin/rlm-codebase.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* RLM
|
|
4
|
+
* RLM PRO CLI - Node.js wrapper for the Python RLM library
|
|
5
5
|
*
|
|
6
|
-
* Analyzes
|
|
7
|
-
* to handle near-infinite context through recursive decomposition.
|
|
6
|
+
* Analyzes any corpus of unstructured data using Recursive Language Models,
|
|
7
|
+
* enabling LLMs to handle near-infinite context through recursive decomposition.
|
|
8
|
+
*
|
|
9
|
+
* Works with codebases, documents, research papers, logs, and any text data.
|
|
8
10
|
*
|
|
9
11
|
* Usage:
|
|
10
|
-
* npx rlm-
|
|
11
|
-
* npx rlm-
|
|
12
|
+
* npx @superadnim/rlm-pro ./my-data -q "Analyse this corpus"
|
|
13
|
+
* npx @superadnim/rlm-pro ./docs -q "Summarise key findings" --json
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
const { program } = require('commander');
|
|
15
17
|
const { analyzeCodebase, getVersion } = require('../src/index.js');
|
|
16
18
|
|
|
17
19
|
program
|
|
18
|
-
.name('rlm-
|
|
19
|
-
.description('Analyze
|
|
20
|
-
.version('
|
|
21
|
-
.argument('<path>', 'Path to
|
|
22
|
-
.requiredOption('-q, --query <query>', 'Question or task to perform on the
|
|
20
|
+
.name('rlm-pro')
|
|
21
|
+
.description('Analyze any corpus of unstructured data using Recursive Language Models')
|
|
22
|
+
.version('1.0.3')
|
|
23
|
+
.argument('<path>', 'Path to directory or file to analyze')
|
|
24
|
+
.requiredOption('-q, --query <query>', 'Question or task to perform on the data')
|
|
23
25
|
.option('-b, --backend <backend>', 'LLM backend (openai, anthropic, etc.)', 'openai')
|
|
24
26
|
.option('-m, --model <model>', 'Model name to use')
|
|
25
27
|
.option('-e, --env <env>', 'Execution environment (local, docker, modal, prime)', 'local')
|
|
@@ -55,4 +57,9 @@ program
|
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
// Show help if no arguments provided
|
|
61
|
+
if (process.argv.length <= 2) {
|
|
62
|
+
program.help();
|
|
63
|
+
} else {
|
|
64
|
+
program.parse();
|
|
65
|
+
}
|
package/package.json
CHANGED