@lunora/ai 1.0.0-alpha.46 → 1.0.0-alpha.48
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/rag/index.d.mts +2 -2
- package/dist/rag/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/rag/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ declare const fixedWindowChunks: (text: string, size: number, overlap: number) =
|
|
|
11
11
|
/**
|
|
12
12
|
* `(text) => vector` — the embedder shape `ctx.vectors` accepts on both its
|
|
13
13
|
* write (`upsert`) and read (`query`) inputs. Matches `@lunora/server`'s
|
|
14
|
-
* `VectorEmbedder` and `@lunora/bindings/vectors`' `EmbedFunction
|
|
14
|
+
* `VectorEmbedder` and `@lunora/bindings/vectors`' `EmbedFunction<string>`.
|
|
15
15
|
* @experimental
|
|
16
16
|
*/
|
|
17
17
|
type RagEmbedder = (input: string) => Promise<ReadonlyArray<number>> | ReadonlyArray<number>;
|
|
@@ -458,7 +458,7 @@ interface RagSource {
|
|
|
458
458
|
interface RetrieveResult {
|
|
459
459
|
/** Ranked chunks (best first). */
|
|
460
460
|
chunks: ReadonlyArray<RetrievedChunk>;
|
|
461
|
-
/** Ready-to-inject prompt context: chunks joined under `[source
|
|
461
|
+
/** Ready-to-inject prompt context: chunks joined under `[source:<id>#<n>]` headers. */
|
|
462
462
|
context: string;
|
|
463
463
|
/** Deduped source references, in first-seen (best) order. */
|
|
464
464
|
sources: ReadonlyArray<RagSource>;
|
package/dist/rag/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const fixedWindowChunks: (text: string, size: number, overlap: number) =
|
|
|
11
11
|
/**
|
|
12
12
|
* `(text) => vector` — the embedder shape `ctx.vectors` accepts on both its
|
|
13
13
|
* write (`upsert`) and read (`query`) inputs. Matches `@lunora/server`'s
|
|
14
|
-
* `VectorEmbedder` and `@lunora/bindings/vectors`' `EmbedFunction
|
|
14
|
+
* `VectorEmbedder` and `@lunora/bindings/vectors`' `EmbedFunction<string>`.
|
|
15
15
|
* @experimental
|
|
16
16
|
*/
|
|
17
17
|
type RagEmbedder = (input: string) => Promise<ReadonlyArray<number>> | ReadonlyArray<number>;
|
|
@@ -458,7 +458,7 @@ interface RagSource {
|
|
|
458
458
|
interface RetrieveResult {
|
|
459
459
|
/** Ranked chunks (best first). */
|
|
460
460
|
chunks: ReadonlyArray<RetrievedChunk>;
|
|
461
|
-
/** Ready-to-inject prompt context: chunks joined under `[source
|
|
461
|
+
/** Ready-to-inject prompt context: chunks joined under `[source:<id>#<n>]` headers. */
|
|
462
462
|
context: string;
|
|
463
463
|
/** Deduped source references, in first-seen (best) order. */
|
|
464
464
|
sources: ReadonlyArray<RagSource>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/ai",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"description": "Workers AI helper for Lunora: provider-agnostic AI SDK access from functions, Workers AI by default",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
56
|
+
"@lunora/errors": "1.0.0-alpha.14",
|
|
57
57
|
"ai": "7.0.37",
|
|
58
58
|
"workers-ai-provider": "4.0.0"
|
|
59
59
|
},
|