@absolutejs/rag 0.0.31 → 0.1.0
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/dist/manifest.js +112 -17
- package/dist/manifest.js.map +4 -4
- package/dist/manifest.json +77 -2
- package/dist/src/manifest.d.ts +13 -1
- package/package.json +3 -3
package/dist/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contract":
|
|
2
|
+
"contract": 2,
|
|
3
3
|
"identity": {
|
|
4
4
|
"accent": "#10b981",
|
|
5
5
|
"category": "ai",
|
|
@@ -421,6 +421,16 @@
|
|
|
421
421
|
"annotations": {
|
|
422
422
|
"readOnlyHint": true
|
|
423
423
|
},
|
|
424
|
+
"authorization": {
|
|
425
|
+
"approval": "never",
|
|
426
|
+
"audience": "owner",
|
|
427
|
+
"effects": [
|
|
428
|
+
"read"
|
|
429
|
+
],
|
|
430
|
+
"requiredScopes": [
|
|
431
|
+
"rag:read"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
424
434
|
"description": "Report the vector store backing this collection: backend, vector mode, dimensions, and capabilities (persistence, native vector search, server-side filtering). Not every store reports status.",
|
|
425
435
|
"input": {
|
|
426
436
|
"type": "object",
|
|
@@ -432,6 +442,29 @@
|
|
|
432
442
|
"annotations": {
|
|
433
443
|
"idempotentHint": true
|
|
434
444
|
},
|
|
445
|
+
"authorization": {
|
|
446
|
+
"approval": "policy",
|
|
447
|
+
"audience": "owner",
|
|
448
|
+
"destinations": [
|
|
449
|
+
"configured-embedding-provider",
|
|
450
|
+
"configured-vector-store"
|
|
451
|
+
],
|
|
452
|
+
"effects": [
|
|
453
|
+
"write",
|
|
454
|
+
"external-network"
|
|
455
|
+
],
|
|
456
|
+
"idempotency": {
|
|
457
|
+
"mode": "resource"
|
|
458
|
+
},
|
|
459
|
+
"requiredScopes": [
|
|
460
|
+
"rag:write"
|
|
461
|
+
],
|
|
462
|
+
"resource": {
|
|
463
|
+
"idField": "sourceId",
|
|
464
|
+
"type": "rag-source"
|
|
465
|
+
},
|
|
466
|
+
"reversible": false
|
|
467
|
+
},
|
|
435
468
|
"description": "Add (or replace) one text document in the search index under a stable sourceId. Re-ingesting the same sourceId replaces its previous chunks, so it is safe to repeat.",
|
|
436
469
|
"input": {
|
|
437
470
|
"type": "object",
|
|
@@ -461,6 +494,28 @@
|
|
|
461
494
|
"destructiveHint": true,
|
|
462
495
|
"idempotentHint": true
|
|
463
496
|
},
|
|
497
|
+
"authorization": {
|
|
498
|
+
"approval": "always",
|
|
499
|
+
"audience": "owner",
|
|
500
|
+
"destinations": [
|
|
501
|
+
"configured-vector-store"
|
|
502
|
+
],
|
|
503
|
+
"effects": [
|
|
504
|
+
"delete",
|
|
505
|
+
"external-network"
|
|
506
|
+
],
|
|
507
|
+
"idempotency": {
|
|
508
|
+
"mode": "resource"
|
|
509
|
+
},
|
|
510
|
+
"requiredScopes": [
|
|
511
|
+
"rag:delete"
|
|
512
|
+
],
|
|
513
|
+
"resource": {
|
|
514
|
+
"idField": "sourceId",
|
|
515
|
+
"type": "rag-source"
|
|
516
|
+
},
|
|
517
|
+
"reversible": false
|
|
518
|
+
},
|
|
464
519
|
"description": "Delete every indexed chunk previously ingested under a sourceId. Removing an unknown sourceId deletes nothing and succeeds.",
|
|
465
520
|
"input": {
|
|
466
521
|
"type": "object",
|
|
@@ -483,7 +538,27 @@
|
|
|
483
538
|
},
|
|
484
539
|
"search_content": {
|
|
485
540
|
"annotations": {
|
|
486
|
-
"
|
|
541
|
+
"idempotentHint": true,
|
|
542
|
+
"openWorldHint": true
|
|
543
|
+
},
|
|
544
|
+
"authorization": {
|
|
545
|
+
"approval": "policy",
|
|
546
|
+
"audience": "owner",
|
|
547
|
+
"destinations": [
|
|
548
|
+
"configured-embedding-provider",
|
|
549
|
+
"configured-vector-store"
|
|
550
|
+
],
|
|
551
|
+
"effects": [
|
|
552
|
+
"read",
|
|
553
|
+
"external-network"
|
|
554
|
+
],
|
|
555
|
+
"idempotency": {
|
|
556
|
+
"mode": "host"
|
|
557
|
+
},
|
|
558
|
+
"requiredScopes": [
|
|
559
|
+
"rag:read"
|
|
560
|
+
],
|
|
561
|
+
"reversible": false
|
|
487
562
|
},
|
|
488
563
|
"description": "Search the indexed content and return the best-matching passages with scores, titles, and sources. Use this to ground answers in the site's own content.",
|
|
489
564
|
"input": {
|
package/dist/src/manifest.d.ts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
import type { CreateRAGCollectionOptions, RAGCollection } from "../types";
|
|
2
|
-
export declare const manifest: import("@absolutejs/manifest").PackageManifest<CreateRAGCollectionOptions, RAGCollection
|
|
2
|
+
export declare const manifest: Omit<import("@absolutejs/manifest").PackageManifest<CreateRAGCollectionOptions, RAGCollection>, "tools" | "contract" | "settings"> & (({
|
|
3
|
+
contract: 1;
|
|
4
|
+
tools?: Record<string, import("@absolutejs/manifest").LegacyManifestTool<RAGCollection>> | undefined;
|
|
5
|
+
} | {
|
|
6
|
+
contract: 2;
|
|
7
|
+
tools?: Record<string, import("@absolutejs/manifest").AuthorizedManifestTool<RAGCollection>> | undefined;
|
|
8
|
+
}) & {
|
|
9
|
+
settings: import("@sinclair/typebox").TObject<{
|
|
10
|
+
defaultCandidateMultiplier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
11
|
+
defaultModel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
defaultTopK: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
13
|
+
}>;
|
|
14
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/rag",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"homepage": "https://github.com/absolutejs/rag",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/absolutejs/rag/issues"
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"./manifest.json": "./dist/manifest.json"
|
|
63
63
|
},
|
|
64
64
|
"absolutejs": {
|
|
65
|
-
"manifestContract":
|
|
65
|
+
"manifestContract": 2
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@absolutejs/manifest": "^0.
|
|
68
|
+
"@absolutejs/manifest": "^0.4.0",
|
|
69
69
|
"@sinclair/typebox": "^0.34.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|