@kernl-sdk/protocol 0.2.5 → 0.2.7
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
> @kernl-sdk/protocol@0.2.5 build /Users/andjones/Documents/projects/kernl/packages/protocol
|
|
3
|
+
> tsc && tsc-alias --resolve-full-paths
|
|
4
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @kernl/protocol
|
|
2
2
|
|
|
3
|
+
## 0.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump to pick up @kernl-sdk/shared with pagination types
|
|
8
|
+
|
|
9
|
+
## 0.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @kernl-sdk/shared@0.2.0
|
|
15
|
+
|
|
3
16
|
## 0.2.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { SharedProviderMetadata } from "../provider/index.js";
|
|
2
2
|
import { EmbeddingModelRequest } from "./request.js";
|
|
3
|
+
/**
|
|
4
|
+
* An embedding is a vector, i.e. an array of numbers.
|
|
5
|
+
* It is e.g. used to represent a text as a vector of word embeddings.
|
|
6
|
+
*/
|
|
3
7
|
export type Embedding = number[];
|
|
4
8
|
/**
|
|
5
9
|
* Embedding model interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/embedding-model/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,W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H,UAAU,EAAE,SAAS,EAAE,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernl-sdk/protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Protocol specification for kernl",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kernl",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@kernl-sdk/shared": "0.
|
|
33
|
+
"@kernl-sdk/shared": "0.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/json-schema": "^7.0.15",
|
|
@@ -2,6 +2,10 @@ import { SharedProviderMetadata } from "@/provider";
|
|
|
2
2
|
|
|
3
3
|
import { EmbeddingModelRequest } from "./request";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* An embedding is a vector, i.e. an array of numbers.
|
|
7
|
+
* It is e.g. used to represent a text as a vector of word embeddings.
|
|
8
|
+
*/
|
|
5
9
|
export type Embedding = number[];
|
|
6
10
|
|
|
7
11
|
/**
|
|
@@ -42,7 +46,9 @@ export interface EmbeddingModel<TValue = string> {
|
|
|
42
46
|
*
|
|
43
47
|
* @param request - The embedding request.
|
|
44
48
|
*/
|
|
45
|
-
embed(
|
|
49
|
+
embed(
|
|
50
|
+
request: EmbeddingModelRequest<TValue>,
|
|
51
|
+
): Promise<EmbeddingModelResponse>;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|