@absolutejs/rag 0.9.0 → 0.10.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/CHANGELOG.md +10 -0
- package/README.md +15 -0
- package/changelog.json +21 -0
- package/dist/index.js +52 -1
- package/dist/index.js.map +5 -4
- package/dist/src/index.d.ts +1 -0
- package/dist/src/retrieval/quoteReferences.d.ts +13 -0
- package/package.json +3 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -34,3 +34,4 @@ export { corpusTextHash, planRAGCorpus, reconcileRAGCorpus, } from "./retrieval/
|
|
|
34
34
|
export type { RAGCorpusApply, RAGCorpusDocument, RAGCorpusPlan, RAGCorpusRecord, RAGCorpusResult, RAGCorpusStore, } from "./retrieval/corpus";
|
|
35
35
|
export { chunkRAGOriginalText, readRAGOriginalText, type RAGOriginalText, type RAGOriginalTextLocator, } from "./ingestion/originalText";
|
|
36
36
|
export { createRAGOriginalTextTools, type RAGOriginalTextToolsOptions } from "./retrieval/originalTextTools";
|
|
37
|
+
export { createRAGQuoteReferences } from "./retrieval/quoteReferences";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A request-scoped, reversible encoding of already-retrieved verbatim quotes.
|
|
2
|
+
* This is not an authorization mechanism: encode only server-owned tool results,
|
|
3
|
+
* and reauthorize/revalidate resolved quotes against originals before committing.
|
|
4
|
+
* Keep one registry across prefetch, subsequent lookups and completion. */
|
|
5
|
+
export declare const createRAGQuoteReferences: () => {
|
|
6
|
+
/** Accepts the JSON envelopes returned by original-text search/read tools.
|
|
7
|
+
* Unrecognized results and tool errors pass through unchanged. Source text
|
|
8
|
+
* is not interpreted as JSON or instructions. Caller retains the originals. */
|
|
9
|
+
encodeToolResult: (serialized: string) => string;
|
|
10
|
+
/** Resolve only a reference issued by this registry. A reference from another
|
|
11
|
+
* request is never loaded from a global cache or used to fetch a source. */
|
|
12
|
+
resolve: (reference: string) => string;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/rag",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"homepage": "https://github.com/absolutejs/rag",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/absolutejs/rag/issues"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"svelte": "^5.35.2",
|
|
78
78
|
"vue": "^3.5.27",
|
|
79
79
|
"@absolutejs/sync": ">=2.14.0 <3",
|
|
80
|
-
"@absolutejs/ai": ">=0.0.54 <0.
|
|
80
|
+
"@absolutejs/ai": ">=0.0.54 <0.3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"@angular/core": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@absolutejs/absolute": "0.20.0-beta.0",
|
|
98
|
-
"@absolutejs/ai": "0.
|
|
98
|
+
"@absolutejs/ai": "0.2.0",
|
|
99
99
|
"@absolutejs/changelog": "^0.6.0",
|
|
100
100
|
"@absolutejs/rag-postgres": "0.0.13",
|
|
101
101
|
"@absolutejs/rag-sqlite": "0.0.11",
|