@lloyal-labs/rig 3.0.0 → 3.0.1
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 +15 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# @lloyal-labs/rig
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**The App runtime for the [lloyal HDK](https://github.com/lloyal-ai/hdk).**
|
|
4
|
+
|
|
5
|
+
An App packages a knowledge source, its tools, and a skill prompt into a signed, installable capability. `rig` is everything between a signed bundle and tools live in an agent's context: load, verify, register, configure, authorize, and compose Apps into the shared prompt spine — plus the framework toolset (`report`, `delegate`, `plan`) and the shared reranker every App scores against.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm i @lloyal-labs/rig @lloyal-labs/lloyal-agents @lloyal-labs/lloyal.node
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```typescript
|
|
12
|
+
import { createAppRegistry, loadBundle, renderSpine } from "@lloyal-labs/rig";
|
|
13
|
+
|
|
14
|
+
const registry = yield* createAppRegistry();
|
|
15
|
+
const factory = yield* loadBundle("lloyal/corpus"); // fetch + Ed25519-verify from the channel
|
|
16
|
+
const app = yield* registry.enable(factory);
|
|
17
|
+
const spinePrompt = renderSpine({ apps: registry.enabled() });
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**[Docs →](https://docs.lloyal.ai)** · **[Build an App →](https://docs.lloyal.ai/build-an-app/what-is-an-app)** · **[harness.dev CLI →](https://www.npmjs.com/package/harness.dev)**
|
|
21
|
+
|
|
22
|
+
## Why retrieval lives inside generation
|
|
10
23
|
|
|
11
24
|
RAG retrieves first, then generates. A retrieval step runs upfront — query the vector DB, get top-k passages, inject them into the prompt, call the model once. The model sees static context. Retrieval and generation are separate phases.
|
|
12
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lloyal-labs/rig",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Retrieval-Interleaved Generation for lloyal-agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"semver": "^7.8.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@lloyal-labs/lloyal.node": "^
|
|
52
|
+
"@lloyal-labs/lloyal.node": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist/",
|