@hydradb/sdk 2.0.1 → 2.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.
Files changed (191) hide show
  1. package/README.md +494 -554
  2. package/dist/Client.d.ts +4 -7
  3. package/dist/Client.js +6 -10
  4. package/dist/api/client/requests/SearchQueryRequest.d.ts +26 -15
  5. package/dist/api/errors/index.d.ts +0 -1
  6. package/dist/api/errors/index.js +0 -1
  7. package/dist/api/resources/context/client/Client.d.ts +18 -1
  8. package/dist/api/resources/context/client/Client.js +90 -1
  9. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +15 -0
  10. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +9 -0
  11. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +9 -0
  12. package/dist/api/resources/context/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/databases/client/Client.d.ts +109 -0
  14. package/dist/api/resources/{tenants → databases}/client/Client.js +61 -61
  15. package/dist/api/resources/databases/client/requests/CollectionsDatabasesRequest.d.ts +10 -0
  16. package/dist/api/resources/databases/client/requests/DeleteDatabasesRequest.d.ts +10 -0
  17. package/dist/api/resources/databases/client/requests/StatsDatabasesRequest.d.ts +10 -0
  18. package/dist/api/resources/databases/client/requests/StatusDatabasesRequest.d.ts +10 -0
  19. package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +7 -0
  20. package/dist/api/resources/databases/client/requests/index.d.ts +5 -0
  21. package/dist/api/resources/databases/exports.d.ts +2 -0
  22. package/dist/api/resources/{tenants → databases}/exports.js +2 -2
  23. package/dist/api/resources/index.d.ts +2 -4
  24. package/dist/api/resources/index.js +3 -5
  25. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +13 -0
  26. package/dist/api/types/HandlerDeprecationNotice.d.ts +7 -0
  27. package/dist/api/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
  28. package/dist/api/types/{HandlerEnvelopeEmbeddingsDeleteResult.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +2 -2
  29. package/dist/api/types/HandlerErrorDetail.d.ts +3 -0
  30. package/dist/api/types/HandlerResponseMeta.d.ts +14 -0
  31. package/dist/api/types/ListContentFilter.d.ts +8 -2
  32. package/dist/api/types/SearchGraphContext.d.ts +5 -0
  33. package/dist/api/types/SearchMetadataFilters.d.ts +4 -0
  34. package/dist/api/types/SearchQueryRequestCollections.d.ts +4 -0
  35. package/dist/api/types/SearchQueryRequestSubTenantIds.d.ts +4 -0
  36. package/dist/api/types/SearchRecallMode.d.ts +1 -0
  37. package/dist/api/types/SearchRecallMode.js +1 -0
  38. package/dist/api/types/SearchSourceInfo.d.ts +1 -0
  39. package/dist/api/types/SearchV2Chunk.d.ts +1 -0
  40. package/dist/api/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +2 -1
  41. package/dist/api/types/TenantsFailedTenant.d.ts +1 -0
  42. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +1 -0
  43. package/dist/api/types/TenantsSubTenantIdsResponse.d.ts +1 -0
  44. package/dist/api/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
  45. package/dist/api/types/TenantsTenantDeleteResponse.d.ts +1 -0
  46. package/dist/api/types/TenantsTenantIdsResponse.d.ts +2 -0
  47. package/dist/api/types/TenantsTenantStatsResponse.d.ts +1 -0
  48. package/dist/api/types/index.d.ts +8 -10
  49. package/dist/api/types/index.js +8 -10
  50. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +9 -3
  51. package/dist/serialization/client/requests/SearchQueryRequest.js +9 -3
  52. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +13 -0
  53. package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +6 -6
  54. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
  55. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
  56. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
  57. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.js +2 -0
  58. package/dist/serialization/resources/context/client/requests/index.d.ts +1 -0
  59. package/dist/serialization/resources/context/client/requests/index.js +3 -1
  60. package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  61. package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +1 -0
  62. package/dist/serialization/resources/index.d.ts +2 -4
  63. package/dist/serialization/resources/index.js +3 -5
  64. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +19 -0
  65. package/dist/serialization/types/{EmbeddingsRawEmbeddingDocument.js → GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +11 -6
  66. package/dist/serialization/types/HandlerDeprecationNotice.d.ts +13 -0
  67. package/dist/serialization/types/HandlerDeprecationNotice.js +45 -0
  68. package/dist/serialization/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +15 -0
  69. package/dist/serialization/types/{HandlerEnvelopeEmbeddingsInsertResult.js → HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +4 -4
  70. package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +4 -4
  71. package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +4 -4
  72. package/dist/serialization/types/HandlerErrorDetail.d.ts +3 -0
  73. package/dist/serialization/types/HandlerErrorDetail.js +3 -0
  74. package/dist/serialization/types/HandlerResponseMeta.d.ts +7 -0
  75. package/dist/serialization/types/HandlerResponseMeta.js +7 -0
  76. package/dist/serialization/types/ListContentFilter.d.ts +2 -2
  77. package/dist/serialization/types/ListContentFilter.js +2 -2
  78. package/dist/serialization/types/SearchMetadataFilters.d.ts +7 -0
  79. package/dist/serialization/types/{EmbeddingsRawEmbeddingVector.js → SearchMetadataFilters.js} +2 -5
  80. package/dist/serialization/types/SearchQueryRequestCollections.d.ts +7 -0
  81. package/dist/serialization/types/{EmbeddingsDeleteResult.js → SearchQueryRequestCollections.js} +5 -6
  82. package/dist/serialization/types/SearchQueryRequestSubTenantIds.d.ts +7 -0
  83. package/dist/serialization/types/{EmbeddingsInsertResult.js → SearchQueryRequestSubTenantIds.js} +5 -7
  84. package/dist/serialization/types/SearchRecallMode.d.ts +1 -1
  85. package/dist/serialization/types/SearchRecallMode.js +1 -1
  86. package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
  87. package/dist/serialization/types/SearchSourceInfo.js +1 -0
  88. package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
  89. package/dist/serialization/types/SearchV2Chunk.js +1 -0
  90. package/dist/serialization/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +3 -2
  91. package/dist/serialization/types/{SourcesSourceDeleteResponse.js → SourcesMemoryDeleteResponse.js} +3 -2
  92. package/dist/serialization/types/TenantsFailedTenant.d.ts +1 -0
  93. package/dist/serialization/types/TenantsFailedTenant.js +1 -0
  94. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +1 -0
  95. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +1 -0
  96. package/dist/serialization/types/TenantsSubTenantIdsResponse.d.ts +1 -0
  97. package/dist/serialization/types/TenantsSubTenantIdsResponse.js +1 -0
  98. package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
  99. package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.js +1 -0
  100. package/dist/serialization/types/TenantsTenantDeleteResponse.d.ts +1 -0
  101. package/dist/serialization/types/TenantsTenantDeleteResponse.js +1 -0
  102. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  103. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  104. package/dist/serialization/types/TenantsTenantStatsResponse.d.ts +1 -0
  105. package/dist/serialization/types/TenantsTenantStatsResponse.js +1 -0
  106. package/dist/serialization/types/index.d.ts +8 -10
  107. package/dist/serialization/types/index.js +8 -10
  108. package/package.json +1 -1
  109. package/dist/api/errors/TooManyRequestsError.d.ts +0 -6
  110. package/dist/api/errors/TooManyRequestsError.js +0 -54
  111. package/dist/api/resources/embeddings/client/Client.d.ts +0 -80
  112. package/dist/api/resources/embeddings/client/Client.js +0 -351
  113. package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +0 -18
  114. package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -15
  115. package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -14
  116. package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -16
  117. package/dist/api/resources/embeddings/client/requests/index.d.ts +0 -4
  118. package/dist/api/resources/embeddings/exports.d.ts +0 -2
  119. package/dist/api/resources/embeddings/exports.js +0 -21
  120. package/dist/api/resources/tenants/client/Client.d.ts +0 -109
  121. package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +0 -10
  122. package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +0 -10
  123. package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +0 -10
  124. package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +0 -10
  125. package/dist/api/resources/tenants/client/requests/index.d.ts +0 -5
  126. package/dist/api/resources/tenants/client/requests/index.js +0 -2
  127. package/dist/api/resources/tenants/exports.d.ts +0 -2
  128. package/dist/api/types/EmbeddingsDeleteResult.d.ts +0 -5
  129. package/dist/api/types/EmbeddingsInsertResult.d.ts +0 -6
  130. package/dist/api/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -8
  131. package/dist/api/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -8
  132. package/dist/api/types/EmbeddingsRawEmbeddingVector.d.ts +0 -5
  133. package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -7
  134. package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -3
  135. package/dist/api/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -3
  136. package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -7
  137. package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.js +0 -3
  138. package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +0 -7
  139. package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.js +0 -3
  140. package/dist/api/types/SourcesSourceDeleteResponse.js +0 -3
  141. package/dist/serialization/resources/embeddings/client/index.d.ts +0 -1
  142. package/dist/serialization/resources/embeddings/client/index.js +0 -17
  143. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -14
  144. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js +0 -46
  145. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -13
  146. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -14
  147. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js +0 -46
  148. package/dist/serialization/resources/embeddings/client/requests/index.d.ts +0 -3
  149. package/dist/serialization/resources/embeddings/client/requests/index.js +0 -9
  150. package/dist/serialization/resources/embeddings/index.d.ts +0 -1
  151. package/dist/serialization/resources/embeddings/index.js +0 -17
  152. package/dist/serialization/resources/tenants/client/index.d.ts +0 -1
  153. package/dist/serialization/resources/tenants/client/index.js +0 -17
  154. package/dist/serialization/resources/tenants/index.d.ts +0 -1
  155. package/dist/serialization/resources/tenants/index.js +0 -17
  156. package/dist/serialization/types/EmbeddingsDeleteResult.d.ts +0 -11
  157. package/dist/serialization/types/EmbeddingsInsertResult.d.ts +0 -12
  158. package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -14
  159. package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -14
  160. package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.js +0 -46
  161. package/dist/serialization/types/EmbeddingsRawEmbeddingVector.d.ts +0 -10
  162. package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -15
  163. package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -47
  164. package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +0 -15
  165. package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -47
  166. package/dist/serialization/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -15
  167. /package/dist/api/resources/{embeddings/client/requests/DeleteEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +0 -0
  168. /package/dist/api/resources/{embeddings → databases}/client/index.d.ts +0 -0
  169. /package/dist/api/resources/{embeddings → databases}/client/index.js +0 -0
  170. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js → databases/client/requests/CollectionsDatabasesRequest.js} +0 -0
  171. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → databases/client/requests/DeleteDatabasesRequest.js} +0 -0
  172. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js → databases/client/requests/StatsDatabasesRequest.js} +0 -0
  173. /package/dist/api/resources/{tenants/client/requests/DeleteTenantsRequest.js → databases/client/requests/StatusDatabasesRequest.js} +0 -0
  174. /package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +0 -0
  175. /package/dist/api/resources/{embeddings → databases}/client/requests/index.js +0 -0
  176. /package/dist/api/resources/{embeddings → databases}/index.d.ts +0 -0
  177. /package/dist/api/resources/{embeddings → databases}/index.js +0 -0
  178. /package/dist/api/{resources/tenants/client/requests/StatsTenantsRequest.js → types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
  179. /package/dist/api/{resources/tenants/client/requests/StatusTenantsRequest.js → types/HandlerDeprecationNotice.js} +0 -0
  180. /package/dist/api/{resources/tenants/client/requests/SubTenantsTenantsRequest.js → types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
  181. /package/dist/api/types/{EmbeddingsDeleteResult.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +0 -0
  182. /package/dist/api/types/{EmbeddingsInsertResult.js → SearchMetadataFilters.js} +0 -0
  183. /package/dist/api/types/{EmbeddingsRawEmbeddingDocument.js → SearchQueryRequestCollections.js} +0 -0
  184. /package/dist/api/types/{EmbeddingsRawEmbeddingSearchResult.js → SearchQueryRequestSubTenantIds.js} +0 -0
  185. /package/dist/api/types/{EmbeddingsRawEmbeddingVector.js → SourcesMemoryDeleteResponse.js} +0 -0
  186. /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.d.ts +0 -0
  187. /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.js +0 -0
  188. /package/dist/serialization/resources/{tenants → databases}/client/requests/index.d.ts +0 -0
  189. /package/dist/serialization/resources/{tenants → databases}/client/requests/index.js +0 -0
  190. /package/dist/{api/resources/tenants → serialization/resources/databases}/index.d.ts +0 -0
  191. /package/dist/{api/resources/tenants → serialization/resources/databases}/index.js +0 -0
@@ -1,351 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.EmbeddingsClient = void 0;
38
- const BaseClient_js_1 = require("../../../../BaseClient.js");
39
- const headers_js_1 = require("../../../../core/headers.js");
40
- const core = __importStar(require("../../../../core/index.js"));
41
- const environments = __importStar(require("../../../../environments.js"));
42
- const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
43
- const errors = __importStar(require("../../../../errors/index.js"));
44
- const serializers = __importStar(require("../../../../serialization/index.js"));
45
- const HydraDB = __importStar(require("../../../index.js"));
46
- class EmbeddingsClient {
47
- constructor(options) {
48
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
- }
50
- /**
51
- * Delete raw embeddings by source ID or chunk IDs.
52
- *
53
- * @param {HydraDB.DeleteEmbeddingsRequest} request
54
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
55
- *
56
- * @throws {@link HydraDB.BadRequestError}
57
- *
58
- * @example
59
- * await client.embeddings.delete({
60
- * tenantId: "tenant_1234",
61
- * subTenantId: "sub_tenant_4567",
62
- * sourceId: "HydraDoc1234"
63
- * })
64
- */
65
- delete(request, requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
67
- }
68
- async __delete(request, requestOptions) {
69
- const { tenantId, subTenantId, sourceId, chunkIds } = request;
70
- const _queryParams = {
71
- tenant_id: tenantId,
72
- sub_tenant_id: subTenantId,
73
- source_id: sourceId,
74
- chunk_ids: chunkIds,
75
- };
76
- const _authRequest = await this._options.authProvider.getAuthRequest();
77
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
78
- const _response = await core.fetcher({
79
- url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
80
- (await core.Supplier.get(this._options.environment)) ??
81
- environments.HydraDBEnvironment.Default, "v2/embeddings/delete_raw_embeddings"),
82
- method: "DELETE",
83
- headers: _headers,
84
- queryString: core.url
85
- .queryBuilder()
86
- .addMany(_queryParams)
87
- .mergeAdditional(requestOptions?.queryParams)
88
- .build(),
89
- timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
90
- maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
91
- abortSignal: requestOptions?.abortSignal,
92
- fetchFn: this._options?.fetch,
93
- logging: this._options.logging,
94
- });
95
- if (_response.ok) {
96
- return {
97
- data: serializers.HandlerEnvelopeEmbeddingsDeleteResult.parseOrThrow(_response.body, {
98
- unrecognizedObjectKeys: "passthrough",
99
- allowUnrecognizedUnionMembers: true,
100
- allowUnrecognizedEnumValues: true,
101
- skipValidation: true,
102
- breadcrumbsPrefix: ["response"],
103
- }),
104
- rawResponse: _response.rawResponse,
105
- };
106
- }
107
- if (_response.error.reason === "status-code") {
108
- switch (_response.error.statusCode) {
109
- case 400:
110
- throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
111
- unrecognizedObjectKeys: "passthrough",
112
- allowUnrecognizedUnionMembers: true,
113
- allowUnrecognizedEnumValues: true,
114
- skipValidation: true,
115
- breadcrumbsPrefix: ["response"],
116
- }), _response.rawResponse);
117
- default:
118
- throw new errors.HydraDBError({
119
- statusCode: _response.error.statusCode,
120
- body: _response.error.body,
121
- rawResponse: _response.rawResponse,
122
- });
123
- }
124
- }
125
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v2/embeddings/delete_raw_embeddings");
126
- }
127
- /**
128
- * Fetch raw embeddings by source ID or chunk IDs.
129
- *
130
- * @param {HydraDB.EmbeddingsFilterRawEmbeddingsRequest} request
131
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
132
- *
133
- * @throws {@link HydraDB.BadRequestError}
134
- *
135
- * @example
136
- * await client.embeddings.filter({
137
- * subTenantId: "sub_tenant_4567",
138
- * tenantId: "tenant_1234"
139
- * })
140
- */
141
- filter(request, requestOptions) {
142
- return core.HttpResponsePromise.fromPromise(this.__filter(request, requestOptions));
143
- }
144
- async __filter(request, requestOptions) {
145
- const _authRequest = await this._options.authProvider.getAuthRequest();
146
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
147
- const _response = await core.fetcher({
148
- url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
149
- (await core.Supplier.get(this._options.environment)) ??
150
- environments.HydraDBEnvironment.Default, "v2/embeddings/filter_raw_embeddings"),
151
- method: "POST",
152
- headers: _headers,
153
- contentType: "application/json",
154
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
155
- requestType: "json",
156
- body: serializers.EmbeddingsFilterRawEmbeddingsRequest.jsonOrThrow(request, {
157
- unrecognizedObjectKeys: "strip",
158
- omitUndefined: true,
159
- }),
160
- timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
161
- maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
162
- abortSignal: requestOptions?.abortSignal,
163
- fetchFn: this._options?.fetch,
164
- logging: this._options.logging,
165
- });
166
- if (_response.ok) {
167
- return {
168
- data: serializers.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.parseOrThrow(_response.body, {
169
- unrecognizedObjectKeys: "passthrough",
170
- allowUnrecognizedUnionMembers: true,
171
- allowUnrecognizedEnumValues: true,
172
- skipValidation: true,
173
- breadcrumbsPrefix: ["response"],
174
- }),
175
- rawResponse: _response.rawResponse,
176
- };
177
- }
178
- if (_response.error.reason === "status-code") {
179
- switch (_response.error.statusCode) {
180
- case 400:
181
- throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
182
- unrecognizedObjectKeys: "passthrough",
183
- allowUnrecognizedUnionMembers: true,
184
- allowUnrecognizedEnumValues: true,
185
- skipValidation: true,
186
- breadcrumbsPrefix: ["response"],
187
- }), _response.rawResponse);
188
- default:
189
- throw new errors.HydraDBError({
190
- statusCode: _response.error.statusCode,
191
- body: _response.error.body,
192
- rawResponse: _response.rawResponse,
193
- });
194
- }
195
- }
196
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/filter_raw_embeddings");
197
- }
198
- /**
199
- * Bring-your-own-embeddings: insert raw embedding vectors directly.
200
- *
201
- * @param {HydraDB.EmbeddingsInsertRawEmbeddingsRequest} request
202
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
203
- *
204
- * @throws {@link HydraDB.BadRequestError}
205
- * @throws {@link HydraDB.TooManyRequestsError}
206
- *
207
- * @example
208
- * await client.embeddings.insert({
209
- * embeddings: [{}],
210
- * tenantId: "tenant_1234"
211
- * })
212
- */
213
- insert(request, requestOptions) {
214
- return core.HttpResponsePromise.fromPromise(this.__insert(request, requestOptions));
215
- }
216
- async __insert(request, requestOptions) {
217
- const _authRequest = await this._options.authProvider.getAuthRequest();
218
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
219
- const _response = await core.fetcher({
220
- url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
221
- (await core.Supplier.get(this._options.environment)) ??
222
- environments.HydraDBEnvironment.Default, "v2/embeddings/insert_raw_embeddings"),
223
- method: "POST",
224
- headers: _headers,
225
- contentType: "application/json",
226
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
227
- requestType: "json",
228
- body: serializers.EmbeddingsInsertRawEmbeddingsRequest.jsonOrThrow(request, {
229
- unrecognizedObjectKeys: "strip",
230
- omitUndefined: true,
231
- }),
232
- timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
233
- maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
234
- abortSignal: requestOptions?.abortSignal,
235
- fetchFn: this._options?.fetch,
236
- logging: this._options.logging,
237
- });
238
- if (_response.ok) {
239
- return {
240
- data: serializers.HandlerEnvelopeEmbeddingsInsertResult.parseOrThrow(_response.body, {
241
- unrecognizedObjectKeys: "passthrough",
242
- allowUnrecognizedUnionMembers: true,
243
- allowUnrecognizedEnumValues: true,
244
- skipValidation: true,
245
- breadcrumbsPrefix: ["response"],
246
- }),
247
- rawResponse: _response.rawResponse,
248
- };
249
- }
250
- if (_response.error.reason === "status-code") {
251
- switch (_response.error.statusCode) {
252
- case 400:
253
- throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
254
- unrecognizedObjectKeys: "passthrough",
255
- allowUnrecognizedUnionMembers: true,
256
- allowUnrecognizedEnumValues: true,
257
- skipValidation: true,
258
- breadcrumbsPrefix: ["response"],
259
- }), _response.rawResponse);
260
- case 429:
261
- throw new HydraDB.TooManyRequestsError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
262
- unrecognizedObjectKeys: "passthrough",
263
- allowUnrecognizedUnionMembers: true,
264
- allowUnrecognizedEnumValues: true,
265
- skipValidation: true,
266
- breadcrumbsPrefix: ["response"],
267
- }), _response.rawResponse);
268
- default:
269
- throw new errors.HydraDBError({
270
- statusCode: _response.error.statusCode,
271
- body: _response.error.body,
272
- rawResponse: _response.rawResponse,
273
- });
274
- }
275
- }
276
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/insert_raw_embeddings");
277
- }
278
- /**
279
- * Vector similarity search over raw embeddings.
280
- *
281
- * @param {HydraDB.EmbeddingsSearchRawEmbeddingsRequest} request
282
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
283
- *
284
- * @throws {@link HydraDB.BadRequestError}
285
- *
286
- * @example
287
- * await client.embeddings.search({
288
- * queryEmbedding: [1.1],
289
- * subTenantId: "sub_tenant_4567",
290
- * tenantId: "tenant_1234"
291
- * })
292
- */
293
- search(request, requestOptions) {
294
- return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
295
- }
296
- async __search(request, requestOptions) {
297
- const _authRequest = await this._options.authProvider.getAuthRequest();
298
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
299
- const _response = await core.fetcher({
300
- url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
301
- (await core.Supplier.get(this._options.environment)) ??
302
- environments.HydraDBEnvironment.Default, "v2/embeddings/search_raw_embeddings"),
303
- method: "POST",
304
- headers: _headers,
305
- contentType: "application/json",
306
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
307
- requestType: "json",
308
- body: serializers.EmbeddingsSearchRawEmbeddingsRequest.jsonOrThrow(request, {
309
- unrecognizedObjectKeys: "strip",
310
- omitUndefined: true,
311
- }),
312
- timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
313
- maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
314
- abortSignal: requestOptions?.abortSignal,
315
- fetchFn: this._options?.fetch,
316
- logging: this._options.logging,
317
- });
318
- if (_response.ok) {
319
- return {
320
- data: serializers.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.parseOrThrow(_response.body, {
321
- unrecognizedObjectKeys: "passthrough",
322
- allowUnrecognizedUnionMembers: true,
323
- allowUnrecognizedEnumValues: true,
324
- skipValidation: true,
325
- breadcrumbsPrefix: ["response"],
326
- }),
327
- rawResponse: _response.rawResponse,
328
- };
329
- }
330
- if (_response.error.reason === "status-code") {
331
- switch (_response.error.statusCode) {
332
- case 400:
333
- throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
334
- unrecognizedObjectKeys: "passthrough",
335
- allowUnrecognizedUnionMembers: true,
336
- allowUnrecognizedEnumValues: true,
337
- skipValidation: true,
338
- breadcrumbsPrefix: ["response"],
339
- }), _response.rawResponse);
340
- default:
341
- throw new errors.HydraDBError({
342
- statusCode: _response.error.statusCode,
343
- body: _response.error.body,
344
- rawResponse: _response.rawResponse,
345
- });
346
- }
347
- }
348
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/search_raw_embeddings");
349
- }
350
- }
351
- exports.EmbeddingsClient = EmbeddingsClient;
@@ -1,18 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * tenantId: "tenant_1234",
5
- * subTenantId: "sub_tenant_4567",
6
- * sourceId: "HydraDoc1234"
7
- * }
8
- */
9
- export interface DeleteEmbeddingsRequest {
10
- /** Tenant ID */
11
- tenantId: string;
12
- /** Sub-tenant ID */
13
- subTenantId?: string;
14
- /** Source ID to delete (mutually exclusive with chunk_ids) */
15
- sourceId?: string;
16
- /** Chunk IDs to delete (mutually exclusive with source_id) */
17
- chunkIds?: string | string[];
18
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * subTenantId: "sub_tenant_4567",
5
- * tenantId: "tenant_1234"
6
- * }
7
- */
8
- export interface EmbeddingsFilterRawEmbeddingsRequest {
9
- chunkIds?: string[];
10
- limit?: number;
11
- outputFields?: string[];
12
- sourceId?: string;
13
- subTenantId: string;
14
- tenantId: string;
15
- }
@@ -1,14 +0,0 @@
1
- import type * as HydraDB from "../../../../index.js";
2
- /**
3
- * @example
4
- * {
5
- * embeddings: [{}],
6
- * tenantId: "tenant_1234"
7
- * }
8
- */
9
- export interface EmbeddingsInsertRawEmbeddingsRequest {
10
- embeddings: HydraDB.EmbeddingsRawEmbeddingDocument[];
11
- subTenantId?: string;
12
- tenantId: string;
13
- upsert?: boolean;
14
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * queryEmbedding: [1.1],
5
- * subTenantId: "sub_tenant_4567",
6
- * tenantId: "tenant_1234"
7
- * }
8
- */
9
- export interface EmbeddingsSearchRawEmbeddingsRequest {
10
- filterExpr?: string;
11
- limit?: number;
12
- outputFields?: string[];
13
- queryEmbedding: number[];
14
- subTenantId: string;
15
- tenantId: string;
16
- }
@@ -1,4 +0,0 @@
1
- export type { DeleteEmbeddingsRequest } from "./DeleteEmbeddingsRequest.js";
2
- export type { EmbeddingsFilterRawEmbeddingsRequest } from "./EmbeddingsFilterRawEmbeddingsRequest.js";
3
- export type { EmbeddingsInsertRawEmbeddingsRequest } from "./EmbeddingsInsertRawEmbeddingsRequest.js";
4
- export type { EmbeddingsSearchRawEmbeddingsRequest } from "./EmbeddingsSearchRawEmbeddingsRequest.js";
@@ -1,2 +0,0 @@
1
- export { EmbeddingsClient } from "./client/Client.js";
2
- export * from "./client/index.js";
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.EmbeddingsClient = void 0;
19
- var Client_js_1 = require("./client/Client.js");
20
- Object.defineProperty(exports, "EmbeddingsClient", { enumerable: true, get: function () { return Client_js_1.EmbeddingsClient; } });
21
- __exportStar(require("./client/index.js"), exports);
@@ -1,109 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
- import * as core from "../../../../core/index.js";
4
- import * as HydraDB from "../../../index.js";
5
- export declare namespace TenantsClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class TenantsClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<TenantsClient.Options>;
12
- constructor(options: TenantsClient.Options);
13
- /**
14
- * List all tenant IDs for the authenticated user
15
- *
16
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
17
- *
18
- * @throws {@link HydraDB.InternalServerError}
19
- *
20
- * @example
21
- * await client.tenants.list()
22
- */
23
- list(requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantIdsResponse>;
24
- private __list;
25
- /**
26
- * Create a new tenant with optional custom metadata schema
27
- *
28
- * @param {HydraDB.TenantsTenantCreateRequest} request
29
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
30
- *
31
- * @throws {@link HydraDB.BadRequestError}
32
- * @throws {@link HydraDB.ForbiddenError}
33
- * @throws {@link HydraDB.ConflictError}
34
- * @throws {@link HydraDB.InternalServerError}
35
- *
36
- * @example
37
- * await client.tenants.create()
38
- */
39
- create(request?: HydraDB.TenantsTenantCreateRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantCreateAcceptedResponse>;
40
- private __create;
41
- /**
42
- * Delete a tenant and all associated data
43
- *
44
- * @param {HydraDB.DeleteTenantsRequest} request
45
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
46
- *
47
- * @throws {@link HydraDB.BadRequestError}
48
- * @throws {@link HydraDB.NotFoundError}
49
- * @throws {@link HydraDB.InternalServerError}
50
- *
51
- * @example
52
- * await client.tenants.delete({
53
- * tenantId: "tenant_1234"
54
- * })
55
- */
56
- delete(request: HydraDB.DeleteTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantDeleteResponse>;
57
- private __delete;
58
- /**
59
- * Get collection statistics for a tenant
60
- *
61
- * @param {HydraDB.StatsTenantsRequest} request
62
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @throws {@link HydraDB.BadRequestError}
65
- * @throws {@link HydraDB.NotFoundError}
66
- * @throws {@link HydraDB.InternalServerError}
67
- *
68
- * @example
69
- * await client.tenants.stats({
70
- * tenantId: "tenant_1234"
71
- * })
72
- */
73
- stats(request: HydraDB.StatsTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantStatsResponse>;
74
- private __stats;
75
- /**
76
- * Check the infrastructure provisioning status for a tenant
77
- *
78
- * @param {HydraDB.StatusTenantsRequest} request
79
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
80
- *
81
- * @throws {@link HydraDB.BadRequestError}
82
- * @throws {@link HydraDB.NotFoundError}
83
- * @throws {@link HydraDB.InternalServerError}
84
- *
85
- * @example
86
- * await client.tenants.status({
87
- * tenantId: "tenant_1234"
88
- * })
89
- */
90
- status(request: HydraDB.StatusTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsInfraStatusResponseV2>;
91
- private __status;
92
- /**
93
- * List all sub-tenant IDs for a given tenant
94
- *
95
- * @param {HydraDB.SubTenantsTenantsRequest} request
96
- * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
97
- *
98
- * @throws {@link HydraDB.BadRequestError}
99
- * @throws {@link HydraDB.NotFoundError}
100
- * @throws {@link HydraDB.InternalServerError}
101
- *
102
- * @example
103
- * await client.tenants.subTenants({
104
- * tenantId: "tenant_1234"
105
- * })
106
- */
107
- subTenants(request: HydraDB.SubTenantsTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsSubTenantIdsResponse>;
108
- private __subTenants;
109
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * tenantId: "tenant_1234"
5
- * }
6
- */
7
- export interface DeleteTenantsRequest {
8
- /** Tenant identifier to delete */
9
- tenantId: string;
10
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * tenantId: "tenant_1234"
5
- * }
6
- */
7
- export interface StatsTenantsRequest {
8
- /** Tenant identifier */
9
- tenantId: string;
10
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * tenantId: "tenant_1234"
5
- * }
6
- */
7
- export interface StatusTenantsRequest {
8
- /** Tenant identifier */
9
- tenantId: string;
10
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * tenantId: "tenant_1234"
5
- * }
6
- */
7
- export interface SubTenantsTenantsRequest {
8
- /** Tenant identifier */
9
- tenantId: string;
10
- }
@@ -1,5 +0,0 @@
1
- export type { DeleteTenantsRequest } from "./DeleteTenantsRequest.js";
2
- export type { StatsTenantsRequest } from "./StatsTenantsRequest.js";
3
- export type { StatusTenantsRequest } from "./StatusTenantsRequest.js";
4
- export type { SubTenantsTenantsRequest } from "./SubTenantsTenantsRequest.js";
5
- export type { TenantsTenantCreateRequest } from "./TenantsTenantCreateRequest.js";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { TenantsClient } from "./client/Client.js";
2
- export * from "./client/index.js";
@@ -1,5 +0,0 @@
1
- export interface EmbeddingsDeleteResult {
2
- deleteCount?: number;
3
- error?: string;
4
- success?: boolean;
5
- }
@@ -1,6 +0,0 @@
1
- export interface EmbeddingsInsertResult {
2
- error?: string;
3
- ids?: string[];
4
- insertCount?: number;
5
- success?: boolean;
6
- }
@@ -1,8 +0,0 @@
1
- import type * as HydraDB from "../index.js";
2
- export interface EmbeddingsRawEmbeddingDocument {
3
- embeddings?: HydraDB.EmbeddingsRawEmbeddingVector[];
4
- metadata?: Record<string, unknown>;
5
- sourceId?: string;
6
- subTenantId?: string;
7
- tenantId?: string;
8
- }
@@ -1,8 +0,0 @@
1
- import type * as HydraDB from "../index.js";
2
- export interface EmbeddingsRawEmbeddingSearchResult {
3
- distance?: number;
4
- embedding?: HydraDB.EmbeddingsRawEmbeddingVector;
5
- metadata?: Record<string, unknown>;
6
- score?: number;
7
- sourceId?: string;
8
- }
@@ -1,5 +0,0 @@
1
- export interface EmbeddingsRawEmbeddingVector {
2
- chunkId?: string;
3
- /** must be 1536-dim */
4
- embedding?: number[];
5
- }