@functional-systems/lambdadb 0.6.0 → 0.7.0-dev.37433431398001

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 (71) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +14 -1
  3. package/USAGE.md +7 -1
  4. package/dist/commonjs/compat/qdrant/conversions.d.ts.map +1 -1
  5. package/dist/commonjs/compat/qdrant/conversions.js +4 -0
  6. package/dist/commonjs/compat/qdrant/conversions.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +2 -2
  8. package/dist/commonjs/lib/config.js +2 -2
  9. package/dist/commonjs/lib/config.js.map +1 -1
  10. package/dist/commonjs/models/bayesian.d.ts +16 -0
  11. package/dist/commonjs/models/bayesian.d.ts.map +1 -0
  12. package/dist/commonjs/models/bayesian.js +4 -0
  13. package/dist/commonjs/models/bayesian.js.map +1 -0
  14. package/dist/commonjs/models/index.d.ts +2 -0
  15. package/dist/commonjs/models/index.d.ts.map +1 -1
  16. package/dist/commonjs/models/index.js +1 -0
  17. package/dist/commonjs/models/index.js.map +1 -1
  18. package/dist/commonjs/models/indexconfigsunion.d.ts +55 -3
  19. package/dist/commonjs/models/indexconfigsunion.d.ts.map +1 -1
  20. package/dist/commonjs/models/indexconfigsunion.js +56 -1
  21. package/dist/commonjs/models/indexconfigsunion.js.map +1 -1
  22. package/dist/commonjs/models/operations/querycollection.d.ts +15 -3
  23. package/dist/commonjs/models/operations/querycollection.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/querycollection.js +31 -1
  25. package/dist/commonjs/models/operations/querycollection.js.map +1 -1
  26. package/dist/commonjs/models/rerank.d.ts +37 -0
  27. package/dist/commonjs/models/rerank.d.ts.map +1 -0
  28. package/dist/commonjs/models/rerank.js +86 -0
  29. package/dist/commonjs/models/rerank.js.map +1 -0
  30. package/dist/commonjs/types/public.d.ts +3 -1
  31. package/dist/commonjs/types/public.d.ts.map +1 -1
  32. package/dist/commonjs/types/public.js.map +1 -1
  33. package/dist/esm/compat/qdrant/conversions.d.ts.map +1 -1
  34. package/dist/esm/compat/qdrant/conversions.js +4 -0
  35. package/dist/esm/compat/qdrant/conversions.js.map +1 -1
  36. package/dist/esm/lib/config.d.ts +2 -2
  37. package/dist/esm/lib/config.js +2 -2
  38. package/dist/esm/lib/config.js.map +1 -1
  39. package/dist/esm/models/bayesian.d.ts +16 -0
  40. package/dist/esm/models/bayesian.d.ts.map +1 -0
  41. package/dist/esm/models/bayesian.js +3 -0
  42. package/dist/esm/models/bayesian.js.map +1 -0
  43. package/dist/esm/models/index.d.ts +2 -0
  44. package/dist/esm/models/index.d.ts.map +1 -1
  45. package/dist/esm/models/index.js +1 -0
  46. package/dist/esm/models/index.js.map +1 -1
  47. package/dist/esm/models/indexconfigsunion.d.ts +55 -3
  48. package/dist/esm/models/indexconfigsunion.d.ts.map +1 -1
  49. package/dist/esm/models/indexconfigsunion.js +53 -0
  50. package/dist/esm/models/indexconfigsunion.js.map +1 -1
  51. package/dist/esm/models/operations/querycollection.d.ts +15 -3
  52. package/dist/esm/models/operations/querycollection.d.ts.map +1 -1
  53. package/dist/esm/models/operations/querycollection.js +31 -1
  54. package/dist/esm/models/operations/querycollection.js.map +1 -1
  55. package/dist/esm/models/rerank.d.ts +37 -0
  56. package/dist/esm/models/rerank.d.ts.map +1 -0
  57. package/dist/esm/models/rerank.js +49 -0
  58. package/dist/esm/models/rerank.js.map +1 -0
  59. package/dist/esm/types/public.d.ts +3 -1
  60. package/dist/esm/types/public.d.ts.map +1 -1
  61. package/dist/esm/types/public.js.map +1 -1
  62. package/jsr.json +4 -6
  63. package/package.json +3 -2
  64. package/src/compat/qdrant/conversions.ts +6 -0
  65. package/src/lib/config.ts +2 -2
  66. package/src/models/bayesian.ts +17 -0
  67. package/src/models/index.ts +2 -0
  68. package/src/models/indexconfigsunion.ts +91 -1
  69. package/src/models/operations/querycollection.ts +46 -4
  70. package/src/models/rerank.ts +89 -0
  71. package/src/types/public.ts +4 -0
@@ -67,7 +67,7 @@ export const EmbeddingProvider = {
67
67
  export type EmbeddingProvider = ClosedEnum<typeof EmbeddingProvider>;
68
68
 
69
69
  /**
70
- * Managed embedding configuration for vector fields.
70
+ * Native embedding configuration for vector fields.
71
71
  */
72
72
  export type EmbeddingConfig = {
73
73
  /**
@@ -101,6 +101,14 @@ export type IndexConfigsManagedEmbeddingVector = {
101
101
  embedding: EmbeddingConfig;
102
102
  };
103
103
 
104
+ /** Native embedding input at backend 9072a1bc8925954369a887f558f1eaf387b7ea0e. */
105
+ export type IndexConfigsNativeEmbeddingVector = {
106
+ type: "vector";
107
+ embedding: EmbeddingConfig;
108
+ /** Legacy flag for older servers. Omit on servers supporting native embedding input. */
109
+ managedEmbedding?: true | undefined;
110
+ };
111
+
104
112
  // Analyzer contract: schemas/text-analyzers.json (see docs/OPENAPI_UPDATE.md).
105
113
  export const Analyzer = {
106
114
  Standard: "standard",
@@ -119,6 +127,39 @@ export const Analyzer = {
119
127
  Russian: "russian",
120
128
  Spanish: "spanish",
121
129
  Turkish: "turkish",
130
+ Armenian: "armenian",
131
+ Basque: "basque",
132
+ Bengali: "bengali",
133
+ Brazilian: "brazilian",
134
+ Bulgarian: "bulgarian",
135
+ Catalan: "catalan",
136
+ Czech: "czech",
137
+ Danish: "danish",
138
+ Dutch: "dutch",
139
+ Estonian: "estonian",
140
+ Finnish: "finnish",
141
+ Galician: "galician",
142
+ Greek: "greek",
143
+ Hungarian: "hungarian",
144
+ Irish: "irish",
145
+ Latvian: "latvian",
146
+ Lithuanian: "lithuanian",
147
+ Norwegian: "norwegian",
148
+ Persian: "persian",
149
+ Romanian: "romanian",
150
+ Serbian: "serbian",
151
+ Sorani: "sorani",
152
+ Swedish: "swedish",
153
+ Thai: "thai",
154
+ Simple: "simple",
155
+ Whitespace: "whitespace",
156
+ Stop: "stop",
157
+ Keyword: "keyword",
158
+ Pattern: "pattern",
159
+ Fingerprint: "fingerprint",
160
+ Nepali: "nepali",
161
+ Tamil: "tamil",
162
+ Telugu: "telugu",
122
163
  } as const;
123
164
  export type Analyzer = ClosedEnum<typeof Analyzer>;
124
165
 
@@ -136,6 +177,7 @@ export type IndexConfigsUnion =
136
177
  | IndexConfigsText
137
178
  | IndexConfigsVector
138
179
  | IndexConfigsManagedEmbeddingVector
180
+ | IndexConfigsNativeEmbeddingVector
139
181
  | (IndexConfigs & { type: "keyword" })
140
182
  | (IndexConfigs & { type: "long" })
141
183
  | (IndexConfigs & { type: "double" })
@@ -389,6 +431,51 @@ export function indexConfigsManagedEmbeddingVectorFromJSON(
389
431
  );
390
432
  }
391
433
 
434
+ /** @internal */
435
+ export const IndexConfigsNativeEmbeddingVector$inboundSchema: z.ZodType<
436
+ IndexConfigsNativeEmbeddingVector,
437
+ z.ZodTypeDef,
438
+ unknown
439
+ > = z.object({
440
+ type: z.literal("vector"),
441
+ embedding: z.lazy(() => EmbeddingConfig$inboundSchema),
442
+ managedEmbedding: z.literal(true).optional(),
443
+ });
444
+
445
+ /** @internal */
446
+ export type IndexConfigsNativeEmbeddingVector$Outbound = {
447
+ type: "vector";
448
+ embedding: EmbeddingConfig$Outbound;
449
+ managedEmbedding?: true | undefined;
450
+ };
451
+
452
+ /** @internal */
453
+ export const IndexConfigsNativeEmbeddingVector$outboundSchema: z.ZodType<
454
+ IndexConfigsNativeEmbeddingVector$Outbound,
455
+ z.ZodTypeDef,
456
+ IndexConfigsNativeEmbeddingVector
457
+ > = z.object({
458
+ type: z.literal("vector"),
459
+ embedding: z.lazy(() => EmbeddingConfig$outboundSchema),
460
+ managedEmbedding: z.literal(true).optional(),
461
+ }).strict();
462
+
463
+ export function indexConfigsNativeEmbeddingVectorToJSON(
464
+ indexConfigsNativeEmbeddingVector: IndexConfigsNativeEmbeddingVector,
465
+ ): string {
466
+ return JSON.stringify(IndexConfigsNativeEmbeddingVector$outboundSchema.parse(indexConfigsNativeEmbeddingVector));
467
+ }
468
+
469
+ export function indexConfigsNativeEmbeddingVectorFromJSON(
470
+ jsonString: string,
471
+ ): SafeParseResult<IndexConfigsNativeEmbeddingVector, SDKValidationError> {
472
+ return safeParse(
473
+ jsonString,
474
+ (json) => IndexConfigsNativeEmbeddingVector$inboundSchema.parse(JSON.parse(json)),
475
+ "Failed to parse 'IndexConfigsNativeEmbeddingVector' from JSON",
476
+ );
477
+ }
478
+
392
479
  /** @internal */
393
480
  export const Analyzer$inboundSchema: z.ZodNativeEnum<typeof Analyzer> = z
394
481
  .nativeEnum(Analyzer);
@@ -447,6 +534,7 @@ export const IndexConfigsUnion$inboundSchema: z.ZodType<
447
534
  z.lazy(() => IndexConfigsText$inboundSchema),
448
535
  z.lazy(() => IndexConfigsVector$inboundSchema),
449
536
  z.lazy(() => IndexConfigsManagedEmbeddingVector$inboundSchema),
537
+ z.lazy(() => IndexConfigsNativeEmbeddingVector$inboundSchema),
450
538
  z.lazy(() => IndexConfigs$inboundSchema).and(
451
539
  z.object({ type: z.literal("keyword") }),
452
540
  ),
@@ -472,6 +560,7 @@ export type IndexConfigsUnion$Outbound =
472
560
  | IndexConfigsText$Outbound
473
561
  | IndexConfigsVector$Outbound
474
562
  | IndexConfigsManagedEmbeddingVector$Outbound
563
+ | IndexConfigsNativeEmbeddingVector$Outbound
475
564
  | (IndexConfigs$Outbound & { type: "keyword" })
476
565
  | (IndexConfigs$Outbound & { type: "long" })
477
566
  | (IndexConfigs$Outbound & { type: "double" })
@@ -489,6 +578,7 @@ export const IndexConfigsUnion$outboundSchema: z.ZodType<
489
578
  z.lazy(() => IndexConfigsText$outboundSchema),
490
579
  z.lazy(() => IndexConfigsVector$outboundSchema),
491
580
  z.lazy(() => IndexConfigsManagedEmbeddingVector$outboundSchema),
581
+ z.lazy(() => IndexConfigsNativeEmbeddingVector$outboundSchema),
492
582
  z.lazy(() => IndexConfigs$outboundSchema).and(
493
583
  z.object({ type: z.literal("keyword") }),
494
584
  ),
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+ * Maintained manually following docs/OPENAPI_UPDATE.md.
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
@@ -8,6 +8,7 @@ import { nullToUndefined, safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import * as models from "../index.js";
11
+ import { hasRerankScoringQuery } from "../rerank.js";
11
12
 
12
13
  export type FacetRequest = {
13
14
  /** Maximum buckets to return (1–100). Omitted or null uses the server default of 10. */
@@ -21,11 +22,16 @@ export type QueryCollectionRequestBody = {
21
22
  * Number of documents to return. Note that the maximum number of documents is 100.
22
23
  */
23
24
  size?: number | undefined;
25
+ /** Explicit Bayesian candidate budget without rerank. Use rerank.candidateSize with rerank instead. */
26
+ candidateSize?: number | undefined;
24
27
  /**
25
- * Query object. For managed embedding vector fields, use knn.queryText. For unmanaged vector fields, use knn.queryVector.
28
+ * Query object. BayesianQuery provides an optional typed top-level hybrid query.
29
+ * For managed embedding vector fields, use knn.queryText. For unmanaged vector fields, use knn.queryVector.
26
30
  */
27
31
  query?: { [k: string]: any } | undefined;
28
32
  facets?: Record<string, FacetRequest> | undefined;
33
+ /** Optional per-query managed reranking. Omitted or null preserves retrieval behavior. */
34
+ rerank?: models.RerankConfig | null | undefined;
29
35
  /**
30
36
  * Overlay eligible pending writes on a directly selected Branch. Tag and Alias reads reject true, pending bulk imports are excluded, and an oversized pending overlay can return HTTP 429.
31
37
  */
@@ -61,9 +67,11 @@ export type QueryCollectionDoc = {
61
67
  */
62
68
  collection: string;
63
69
  /**
64
- * Document similarity score.
70
+ * Final ranking score: evaluation score in [0,1] when rerank is applied, otherwise retrieval score.
65
71
  */
66
72
  score?: number | undefined;
73
+ /** Original retrieval/fusion score, outside doc; present only when rerank is applied. */
74
+ retrievalScore?: number | undefined;
67
75
  doc: { [k: string]: any };
68
76
  };
69
77
 
@@ -71,13 +79,15 @@ export type QueryCollectionDoc = {
71
79
  * Documents selected by query.
72
80
  */
73
81
  export type QueryCollectionResponse = {
82
+ /** Present only for requests using reranking. */
83
+ rerank?: models.RerankResponse | undefined;
74
84
  facets?: Record<string, FacetResult> | undefined;
75
85
  /**
76
86
  * Elapsed time in milliseconds.
77
87
  */
78
88
  took: number;
79
89
  /**
80
- * Maximum score.
90
+ * Maximum final returned score, including zero; omitted for empty rerank results.
81
91
  */
82
92
  maxScore?: number | undefined;
83
93
  /**
@@ -101,8 +111,11 @@ export type QueryCollectionResponse = {
101
111
  /** @internal */
102
112
  export type QueryCollectionRequestBody$Outbound = {
103
113
  size?: number | undefined;
114
+ candidateSize?: number | undefined;
104
115
  query?: { [k: string]: any } | undefined;
105
116
  facets?: Record<string, FacetRequest> | undefined;
117
+ /** Optional per-query managed reranking. Omitted or null preserves retrieval behavior. */
118
+ rerank?: models.RerankConfig | null | undefined;
106
119
  consistentRead: boolean;
107
120
  includeVectors: boolean;
108
121
  sort?: Array<{ [k: string]: any }> | undefined;
@@ -118,12 +131,14 @@ export const QueryCollectionRequestBody$outboundSchema: z.ZodType<
118
131
  QueryCollectionRequestBody
119
132
  > = z.object({
120
133
  size: z.number().int().optional(),
134
+ candidateSize: z.number().int().optional(),
121
135
  query: z.record(z.any()).optional(),
122
136
  facets: z.record(z.object({
123
137
  size: z.number().int().min(1).max(100).nullable().optional(),
124
138
  }).strict()).refine((facets) => Object.keys(facets).length <= 5, {
125
139
  message: "At most five facet fields may be requested",
126
140
  }).optional(),
141
+ rerank: models.RerankConfig$outboundSchema.nullable().optional(),
127
142
  consistentRead: z.boolean().default(false),
128
143
  includeVectors: z.boolean().default(false),
129
144
  sort: z.array(z.record(z.any())).optional(),
@@ -131,6 +146,31 @@ export const QueryCollectionRequestBody$outboundSchema: z.ZodType<
131
146
  partitionFilter: models.PartitionFilter$outboundSchema.optional(),
132
147
  ref: models.ReadRef$schema.optional(),
133
148
  }).strict().superRefine((value, context) => {
149
+ if (value.rerank != null) {
150
+ const size = value.size ?? 10;
151
+ const candidateSize = value.rerank.candidateSize ?? Math.max(50, size);
152
+ if (size < 1 || size > 100 || candidateSize < size) {
153
+ context.addIssue({
154
+ code: z.ZodIssueCode.custom,
155
+ message: "rerank requires 1 <= size <= candidateSize <= 100",
156
+ path: ["rerank", "candidateSize"],
157
+ });
158
+ }
159
+ if (value.sort !== undefined) {
160
+ context.addIssue({
161
+ code: z.ZodIssueCode.custom,
162
+ message: "rerank cannot be combined with sort",
163
+ path: ["sort"],
164
+ });
165
+ }
166
+ if (!hasRerankScoringQuery(value.query)) {
167
+ context.addIssue({
168
+ code: z.ZodIssueCode.custom,
169
+ message: "rerank requires a scoring retrieval query",
170
+ path: ["query"],
171
+ });
172
+ }
173
+ }
134
174
  if (value.size === 0 && Object.keys(value.facets ?? {}).length === 0) {
135
175
  context.addIssue({
136
176
  code: z.ZodIssueCode.custom,
@@ -191,6 +231,7 @@ export const QueryCollectionDoc$inboundSchema: z.ZodType<
191
231
  > = z.object({
192
232
  collection: z.string(),
193
233
  score: nullToUndefined(z.number().optional()),
234
+ retrievalScore: nullToUndefined(z.number().optional()),
194
235
  doc: z.record(z.any()),
195
236
  });
196
237
 
@@ -210,6 +251,7 @@ export const QueryCollectionResponse$inboundSchema: z.ZodType<
210
251
  z.ZodTypeDef,
211
252
  unknown
212
253
  > = z.object({
254
+ rerank: nullToUndefined(models.RerankResponse$inboundSchema.optional()),
213
255
  took: z.number().int(),
214
256
  maxScore: nullToUndefined(z.number().optional()),
215
257
  total: z.number().int(),
@@ -0,0 +1,89 @@
1
+ /** Managed reranking DTOs, maintained manually following docs/OPENAPI_UPDATE.md. */
2
+ import * as z from "zod/v3";
3
+ import { nullToUndefined } from "../lib/schemas.js";
4
+
5
+ /** Per-query fixed managed model; credentials are managed by the server. */
6
+ export type RerankConfig = {
7
+ provider: "typesafe";
8
+ model: "jev-1.13.0";
9
+ /** Nonblank text, at most 8 KiB UTF-8; sent unchanged. */
10
+ queryText: string;
11
+ /** 1–8 unique stored scalar text paths, in model input order. */
12
+ fields: string[];
13
+ /** Defaults on the server to max(50, size); does not change knn.k. */
14
+ candidateSize?: number | null | undefined;
15
+ /** Server default: error. Only eligible provider failures can returnOriginal. */
16
+ onFailure?: "error" | "returnOriginal" | null | undefined;
17
+ /** 2–10 distinct nonblank descriptions, lowest to highest relevance; null uses defaults. */
18
+ criteria?: string[] | null | undefined;
19
+ };
20
+
21
+ export type RerankResponse = {
22
+ status: "applied" | "skipped" | "fallback";
23
+ provider: string;
24
+ model: string;
25
+ resolvedModel?: string | undefined;
26
+ candidateCount: number;
27
+ scoredCount: number;
28
+ /** Rerank stage duration in milliseconds. */
29
+ took: number;
30
+ /** Only applied results report this marker; custom is not a content identity. */
31
+ criteriaVersion?: "default-relevance-v1" | "custom" | undefined;
32
+ reason?: string | undefined;
33
+ };
34
+
35
+ // Match Java String.isBlank; do not trim or normalize caller text.
36
+ // eslint-disable-next-line no-control-regex -- Java whitespace includes these control characters.
37
+ const blank = /^[\u0009-\u000d\u001c-\u0020\u1680\u2000-\u2006\u2008-\u200a\u2028\u2029\u205f\u3000]*$/u;
38
+ const nonblank = z.string().refine((text) => !blank.test(text), "Must be nonblank");
39
+ const bytes = (text: string) => new TextEncoder().encode(text).length;
40
+
41
+ /** @internal */
42
+ export const RerankConfig$outboundSchema: z.ZodType<RerankConfig> = z.object({
43
+ provider: z.literal("typesafe"),
44
+ model: z.literal("jev-1.13.0"),
45
+ queryText: nonblank.refine((text) => bytes(text) <= 8192, "queryText exceeds 8 KiB UTF-8"),
46
+ fields: z.array(nonblank.refine(
47
+ (path) => path.split(".").every((part) => !blank.test(part)), "Invalid field path",
48
+ )).min(1).max(8).refine((paths) => new Set(paths).size === paths.length, "Fields must be unique"),
49
+ candidateSize: z.number().int().min(1).max(100).nullable().optional(),
50
+ onFailure: z.enum(["error", "returnOriginal"]).nullable().optional(),
51
+ criteria: z.array(nonblank.refine(
52
+ (text) => bytes(text) <= 2048, "Criterion exceeds 2 KiB UTF-8",
53
+ )).min(2).max(10).refine(
54
+ (texts) => new Set(texts).size === texts.length, "Criteria must be distinct",
55
+ ).refine(
56
+ (texts) => texts.reduce((total, text) => total + bytes(text), 0) <= 8192,
57
+ "Criteria exceed 8 KiB total UTF-8",
58
+ ).nullable().optional(),
59
+ }).strict();
60
+
61
+ /** @internal */
62
+ export const RerankResponse$inboundSchema: z.ZodType<RerankResponse, z.ZodTypeDef, unknown> = z.object({
63
+ status: z.enum(["applied", "skipped", "fallback"]),
64
+ provider: z.string(),
65
+ model: z.string(),
66
+ resolvedModel: nullToUndefined(z.string().optional()),
67
+ candidateCount: z.number().int().nonnegative(),
68
+ scoredCount: z.number().int().nonnegative(),
69
+ took: z.number().int().nonnegative(),
70
+ criteriaVersion: nullToUndefined(z.enum(["default-relevance-v1", "custom"]).optional()),
71
+ reason: nullToUndefined(z.string().optional()),
72
+ });
73
+
74
+ /** @internal: mirrors ManagedRerankService.hasScoringQuery for the existing wire DSL. */
75
+ export function hasRerankScoringQuery(query: unknown): boolean {
76
+ if (query == null || typeof query !== "object" || Array.isArray(query)) return false;
77
+ const node = query as Record<string, unknown>;
78
+ const occur = typeof node["occur"] === "string" ? node["occur"].toUpperCase() : undefined;
79
+ if (occur === "FILTER" || occur === "MUST_NOT") return false;
80
+ // Follow backend parser precedence for composite queries.
81
+ for (const key of ["bool", "rrf", "bayesian", "mm", "l2"]) {
82
+ // Undefined members are omitted by JSON serialization.
83
+ if (node[key] !== undefined) {
84
+ const children = node[key];
85
+ return Array.isArray(children) && children.some(hasRerankScoringQuery);
86
+ }
87
+ }
88
+ return ["queryString", "sparseVector", "knn"].some((key) => node[key] != null);
89
+ }
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  // ---- Input types (RequestBody / Request aliased as XxxInput) ----
7
+ export type { BayesianQuery, BayesianSubquery } from "../models/bayesian.js";
7
8
  export type { CreateCollectionRequest as CreateCollectionInput } from "../models/operations/createcollection.js";
8
9
  export type { UpdateCollectionRequestBody as UpdateCollectionInput } from "../models/operations/updatecollection.js";
9
10
  export type { UpsertDocsRequestBody as UpsertDocsInput } from "../models/operations/upsertdocs.js";
@@ -142,6 +143,7 @@ export type GetBulkUpsertInput = { branch?: string | undefined };
142
143
  export type {
143
144
  IndexConfigsUnion,
144
145
  IndexConfigsManagedEmbeddingVector,
146
+ IndexConfigsNativeEmbeddingVector,
145
147
  EmbeddingConfig,
146
148
  EmbeddingProvider,
147
149
  PartitionConfig,
@@ -275,3 +277,5 @@ export function aliasDetailsWithDate(details: AliasDetailsModel): AliasDetails {
275
277
  }
276
278
 
277
279
  export type { FacetRequest, FacetBucket, FacetResult } from "../models/operations/querycollection.js";
280
+
281
+ export type { RerankConfig, RerankResponse } from "../models/rerank.js";