@fabric-harness/databricks 4.1.0 → 4.2.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/README.md +6 -6
- package/dist/agent.js +46 -3
- package/dist/agent.js.map +1 -1
- package/dist/app-deployment.d.ts +71 -0
- package/dist/app-deployment.d.ts.map +1 -0
- package/dist/app-user-authorization.d.ts +17 -1
- package/dist/app-user-authorization.d.ts.map +1 -1
- package/dist/app-user-authorization.js +38942 -0
- package/dist/app-user-authorization.js.map +1 -0
- package/dist/certification.d.ts.map +1 -1
- package/dist/certify.js +94 -9
- package/dist/certify.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +361 -87
- package/dist/index.js.map +1 -1
- package/dist/raw-protocol-client.d.ts.map +1 -1
- package/dist/sdk-error.d.ts +4 -0
- package/dist/sdk-error.d.ts.map +1 -0
- package/dist/sql-sandbox.js +5 -0
- package/dist/sql-sandbox.js.map +1 -1
- package/dist/vector-search.d.ts +10 -4
- package/dist/vector-search.d.ts.map +1 -1
- package/package.json +7 -3
package/dist/vector-search.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { EmbeddingProvider, Retriever } from
|
|
2
|
-
import type { VectorSearchClient } from
|
|
3
|
-
|
|
1
|
+
import type { EmbeddingProvider, Retriever } from "@fabric-harness/sdk";
|
|
2
|
+
import type { VectorSearchClient } from "@databricks/sdk-vectorsearch/v1";
|
|
3
|
+
import type { DatabricksRawProtocolClient } from "./raw-protocol-client.js";
|
|
4
|
+
export type DatabricksVectorSearchClient = Pick<VectorSearchClient, "queryVectorIndex">;
|
|
4
5
|
export interface DatabricksAiSearchOptions {
|
|
5
6
|
client: DatabricksVectorSearchClient;
|
|
7
|
+
/**
|
|
8
|
+
* Private bundle transport used only when SDK 0.21 rejects a valid floating-point score while
|
|
9
|
+
* decoding a live query response. Other SDK failures remain fail-closed.
|
|
10
|
+
*/
|
|
11
|
+
rawProtocolClient?: DatabricksRawProtocolClient;
|
|
6
12
|
/** Full index name: `catalog.schema.index`. */
|
|
7
13
|
index: string;
|
|
8
14
|
/** Column that holds the chunk text returned to the model. */
|
|
@@ -15,7 +21,7 @@ export interface DatabricksAiSearchOptions {
|
|
|
15
21
|
* `'text'` (default) for Databricks-managed-embedding indexes (send `query_text`); `'vector'` for
|
|
16
22
|
* self-managed / direct-access indexes (embed the query via `embeddings` and send `query_vector`).
|
|
17
23
|
*/
|
|
18
|
-
queryType?:
|
|
24
|
+
queryType?: "text" | "vector";
|
|
19
25
|
/** Required when `queryType: 'vector'`. */
|
|
20
26
|
embeddings?: EmbeddingProvider;
|
|
21
27
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search.d.ts","sourceRoot":"","sources":["../src/vector-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"vector-search.d.ts","sourceRoot":"","sources":["../src/vector-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAIjB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAIV,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE5E,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AAExF,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,4BAA4B,CAAC;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;IAChD,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAID,oGAAoG;AACpG,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,SAAS,CAgChF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabric-harness/databricks",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Databricks tools and filesystem sources for Fabric Harness agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Fabric",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"./sql-sandbox": {
|
|
46
46
|
"types": "./dist/sql-sandbox.d.ts",
|
|
47
47
|
"import": "./dist/sql-sandbox.js"
|
|
48
|
+
},
|
|
49
|
+
"./app-user-authorization": {
|
|
50
|
+
"types": "./dist/app-user-authorization.d.ts",
|
|
51
|
+
"import": "./dist/app-user-authorization.js"
|
|
48
52
|
}
|
|
49
53
|
},
|
|
50
54
|
"files": [
|
|
@@ -75,7 +79,7 @@
|
|
|
75
79
|
"@databricks/sdk-uc-tables": "0.21.0",
|
|
76
80
|
"@databricks/sdk-uc-volumes": "0.21.0",
|
|
77
81
|
"@databricks/sdk-vectorsearch": "0.21.0",
|
|
78
|
-
"@fabric-harness/sdk": "^
|
|
82
|
+
"@fabric-harness/sdk": "^4.1.1"
|
|
79
83
|
},
|
|
80
84
|
"peerDependencies": {
|
|
81
85
|
"@fabric-harness/node": ">=3.0.0",
|
|
@@ -90,7 +94,7 @@
|
|
|
90
94
|
}
|
|
91
95
|
},
|
|
92
96
|
"devDependencies": {
|
|
93
|
-
"@fabric-harness/node": "^
|
|
97
|
+
"@fabric-harness/node": "^4.1.1",
|
|
94
98
|
"tsup": "8.5.0",
|
|
95
99
|
"typescript": "^5.8.3",
|
|
96
100
|
"vitest": "^4.1.5"
|