@amgix/amgix-client 1.0.0-beta1

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 (80) hide show
  1. package/LICENSE +202 -0
  2. package/dist/apis/AmgixApi.d.ts +236 -0
  3. package/dist/apis/AmgixApi.d.ts.map +1 -0
  4. package/dist/apis/AmgixApi.js +554 -0
  5. package/dist/apis/index.d.ts +2 -0
  6. package/dist/apis/index.d.ts.map +1 -0
  7. package/dist/apis/index.js +19 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +21 -0
  11. package/dist/models/BulkUploadRequest.d.ts +34 -0
  12. package/dist/models/BulkUploadRequest.d.ts.map +1 -0
  13. package/dist/models/BulkUploadRequest.js +51 -0
  14. package/dist/models/CollectionConfig.d.ts +47 -0
  15. package/dist/models/CollectionConfig.d.ts.map +1 -0
  16. package/dist/models/CollectionConfig.js +56 -0
  17. package/dist/models/CustomDocumentVector.d.ts +55 -0
  18. package/dist/models/CustomDocumentVector.d.ts.map +1 -0
  19. package/dist/models/CustomDocumentVector.js +68 -0
  20. package/dist/models/CustomVector.d.ts +40 -0
  21. package/dist/models/CustomVector.d.ts.map +1 -0
  22. package/dist/models/CustomVector.js +55 -0
  23. package/dist/models/Document.d.ts +80 -0
  24. package/dist/models/Document.d.ts.map +1 -0
  25. package/dist/models/Document.js +69 -0
  26. package/dist/models/DocumentStatus.d.ts +67 -0
  27. package/dist/models/DocumentStatus.d.ts.map +1 -0
  28. package/dist/models/DocumentStatus.js +70 -0
  29. package/dist/models/DocumentStatusResponse.d.ts +34 -0
  30. package/dist/models/DocumentStatusResponse.d.ts.map +1 -0
  31. package/dist/models/DocumentStatusResponse.js +51 -0
  32. package/dist/models/HTTPValidationError.d.ts +34 -0
  33. package/dist/models/HTTPValidationError.d.ts.map +1 -0
  34. package/dist/models/HTTPValidationError.js +49 -0
  35. package/dist/models/MetadataFilter.d.ts +74 -0
  36. package/dist/models/MetadataFilter.d.ts.map +1 -0
  37. package/dist/models/MetadataFilter.js +69 -0
  38. package/dist/models/MetadataIndex.d.ts +50 -0
  39. package/dist/models/MetadataIndex.d.ts.map +1 -0
  40. package/dist/models/MetadataIndex.js +65 -0
  41. package/dist/models/OkResponse.d.ts +33 -0
  42. package/dist/models/OkResponse.d.ts.map +1 -0
  43. package/dist/models/OkResponse.js +50 -0
  44. package/dist/models/QueueInfo.d.ts +52 -0
  45. package/dist/models/QueueInfo.d.ts.map +1 -0
  46. package/dist/models/QueueInfo.js +62 -0
  47. package/dist/models/SearchQuery.d.ts +86 -0
  48. package/dist/models/SearchQuery.d.ts.map +1 -0
  49. package/dist/models/SearchQuery.js +69 -0
  50. package/dist/models/SearchResult.d.ts +87 -0
  51. package/dist/models/SearchResult.d.ts.map +1 -0
  52. package/dist/models/SearchResult.js +74 -0
  53. package/dist/models/ValidationError.d.ts +46 -0
  54. package/dist/models/ValidationError.d.ts.map +1 -0
  55. package/dist/models/ValidationError.js +59 -0
  56. package/dist/models/ValidationErrorLocInner.d.ts +27 -0
  57. package/dist/models/ValidationErrorLocInner.d.ts.map +1 -0
  58. package/dist/models/ValidationErrorLocInner.js +38 -0
  59. package/dist/models/Vector.d.ts +27 -0
  60. package/dist/models/Vector.d.ts.map +1 -0
  61. package/dist/models/Vector.js +38 -0
  62. package/dist/models/VectorConfig.d.ts +154 -0
  63. package/dist/models/VectorConfig.d.ts.map +1 -0
  64. package/dist/models/VectorConfig.js +113 -0
  65. package/dist/models/VectorScore.d.ts +51 -0
  66. package/dist/models/VectorScore.d.ts.map +1 -0
  67. package/dist/models/VectorScore.js +62 -0
  68. package/dist/models/VectorSearchWeight.d.ts +56 -0
  69. package/dist/models/VectorSearchWeight.d.ts.map +1 -0
  70. package/dist/models/VectorSearchWeight.js +67 -0
  71. package/dist/models/VersionResponse.d.ts +33 -0
  72. package/dist/models/VersionResponse.d.ts.map +1 -0
  73. package/dist/models/VersionResponse.js +50 -0
  74. package/dist/models/index.d.ts +22 -0
  75. package/dist/models/index.d.ts.map +1 -0
  76. package/dist/models/index.js +39 -0
  77. package/dist/runtime.d.ts +185 -0
  78. package/dist/runtime.d.ts.map +1 -0
  79. package/dist/runtime.js +338 -0
  80. package/package.json +27 -0
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Configuration for a vector generation method.
14
+ *
15
+ * This model defines how vectors should be generated for a specific field or set of fields.
16
+ * Different vector types have different requirements and behaviors.
17
+ * @export
18
+ * @interface VectorConfig
19
+ */
20
+ export interface VectorConfig {
21
+ [key: string]: any | any;
22
+ /**
23
+ * Unique name for this vector configuration
24
+ * @type {string}
25
+ * @memberof VectorConfig
26
+ */
27
+ name: string;
28
+ /**
29
+ * Type of vector (dense_model, sparse_model, full_text, trigrams, whitespace, wmtr, dense_custom, sparse_custom)
30
+ * @type {string}
31
+ * @memberof VectorConfig
32
+ */
33
+ type: VectorConfigTypeEnum;
34
+ /**
35
+ * Model name for transformer-based vectors (max 210 characters, e.g., 'sentence-transformers/all-MiniLM-L6-v2'). Used for document indexing.
36
+ * @type {string}
37
+ * @memberof VectorConfig
38
+ */
39
+ model?: string;
40
+ /**
41
+ * Optional model revision (max 210 characters, branch/tag/commit) for specific model version. Used for document indexing.
42
+ * @type {string}
43
+ * @memberof VectorConfig
44
+ */
45
+ revision?: string;
46
+ /**
47
+ * Optional model name for query vectorization (max 210 characters). If not specified, uses 'model' for both documents and queries.
48
+ * @type {string}
49
+ * @memberof VectorConfig
50
+ */
51
+ query_model?: string;
52
+ /**
53
+ * Optional model revision for query vectorization (max 210 characters). If not specified, uses 'revision' for both documents and queries.
54
+ * @type {string}
55
+ * @memberof VectorConfig
56
+ */
57
+ query_revision?: string;
58
+ /**
59
+ * Dimensions for the vector. Required for dense_custom vectors. For dense_model vectors, auto-detected if not specified.
60
+ * @type {number}
61
+ * @memberof VectorConfig
62
+ */
63
+ dimensions?: number;
64
+ /**
65
+ * Number of top-scoring terms to keep for sparse vectors. Used by sparse_model, full_text, trigrams, whitespace, wmtr, and sparse_custom vectors. Ignored by dense vectors.
66
+ * @type {number}
67
+ * @memberof VectorConfig
68
+ */
69
+ top_k?: number;
70
+ /**
71
+ * List of fields to index with this vector (name, description, content). Defaults to ['content'] if not specified.
72
+ * @type {Array<string>}
73
+ * @memberof VectorConfig
74
+ */
75
+ index_fields?: Array<VectorConfigIndexFieldsEnum>;
76
+ /**
77
+ * Two-letter ISO 639-1 language code for language-based vector types (e.g., 'en', 'es', 'fr')
78
+ * @type {string}
79
+ * @memberof VectorConfig
80
+ */
81
+ language_default_code?: string;
82
+ /**
83
+ * Whether to automatically detect language for language-based vector types
84
+ * @type {boolean}
85
+ * @memberof VectorConfig
86
+ */
87
+ language_detect?: boolean;
88
+ /**
89
+ * Minimum confidence threshold for language detection. If detection confidence is below this value, language_default_code will be used instead.
90
+ * @type {number}
91
+ * @memberof VectorConfig
92
+ */
93
+ language_confidence?: number;
94
+ /**
95
+ * Whether to normalize vectors. Only supported for dense vectors. Sparse vectors do not support normalization.
96
+ * @type {boolean}
97
+ * @memberof VectorConfig
98
+ */
99
+ normalization?: boolean;
100
+ /**
101
+ * Distance metric for dense vectors (cosine, dot, euclid). Defaults to cosine.
102
+ * @type {string}
103
+ * @memberof VectorConfig
104
+ */
105
+ dense_distance?: VectorConfigDenseDistanceEnum;
106
+ /**
107
+ * Whether to keep original case for text preprocessing. Only applies to model-based vectors (dense_model, sparse_model). Defaults to False (lowercase).
108
+ * @type {boolean}
109
+ * @memberof VectorConfig
110
+ */
111
+ keep_case?: boolean;
112
+ }
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const VectorConfigTypeEnum: {
117
+ readonly DenseModel: "dense_model";
118
+ readonly SparseModel: "sparse_model";
119
+ readonly FullText: "full_text";
120
+ readonly Trigrams: "trigrams";
121
+ readonly Whitespace: "whitespace";
122
+ readonly Wmtr: "wmtr";
123
+ readonly Keyword: "keyword";
124
+ readonly DenseCustom: "dense_custom";
125
+ readonly SparseCustom: "sparse_custom";
126
+ };
127
+ export type VectorConfigTypeEnum = typeof VectorConfigTypeEnum[keyof typeof VectorConfigTypeEnum];
128
+ /**
129
+ * @export
130
+ */
131
+ export declare const VectorConfigIndexFieldsEnum: {
132
+ readonly Name: "name";
133
+ readonly Description: "description";
134
+ readonly Content: "content";
135
+ };
136
+ export type VectorConfigIndexFieldsEnum = typeof VectorConfigIndexFieldsEnum[keyof typeof VectorConfigIndexFieldsEnum];
137
+ /**
138
+ * @export
139
+ */
140
+ export declare const VectorConfigDenseDistanceEnum: {
141
+ readonly Cosine: "cosine";
142
+ readonly Dot: "dot";
143
+ readonly Euclid: "euclid";
144
+ };
145
+ export type VectorConfigDenseDistanceEnum = typeof VectorConfigDenseDistanceEnum[keyof typeof VectorConfigDenseDistanceEnum];
146
+ /**
147
+ * Check if a given object implements the VectorConfig interface.
148
+ */
149
+ export declare function instanceOfVectorConfig(value: object): value is VectorConfig;
150
+ export declare function VectorConfigFromJSON(json: any): VectorConfig;
151
+ export declare function VectorConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorConfig;
152
+ export declare function VectorConfigToJSON(json: any): VectorConfig;
153
+ export declare function VectorConfigToJSONTyped(value?: VectorConfig | null, ignoreDiscriminator?: boolean): any;
154
+ //# sourceMappingURL=VectorConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VectorConfig.d.ts","sourceRoot":"","sources":["../../models/VectorConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAClD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;CAUvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAEvH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAuB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwB9G"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VectorConfigDenseDistanceEnum = exports.VectorConfigIndexFieldsEnum = exports.VectorConfigTypeEnum = void 0;
17
+ exports.instanceOfVectorConfig = instanceOfVectorConfig;
18
+ exports.VectorConfigFromJSON = VectorConfigFromJSON;
19
+ exports.VectorConfigFromJSONTyped = VectorConfigFromJSONTyped;
20
+ exports.VectorConfigToJSON = VectorConfigToJSON;
21
+ exports.VectorConfigToJSONTyped = VectorConfigToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.VectorConfigTypeEnum = {
26
+ DenseModel: 'dense_model',
27
+ SparseModel: 'sparse_model',
28
+ FullText: 'full_text',
29
+ Trigrams: 'trigrams',
30
+ Whitespace: 'whitespace',
31
+ Wmtr: 'wmtr',
32
+ Keyword: 'keyword',
33
+ DenseCustom: 'dense_custom',
34
+ SparseCustom: 'sparse_custom'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.VectorConfigIndexFieldsEnum = {
40
+ Name: 'name',
41
+ Description: 'description',
42
+ Content: 'content'
43
+ };
44
+ /**
45
+ * @export
46
+ */
47
+ exports.VectorConfigDenseDistanceEnum = {
48
+ Cosine: 'cosine',
49
+ Dot: 'dot',
50
+ Euclid: 'euclid'
51
+ };
52
+ /**
53
+ * Check if a given object implements the VectorConfig interface.
54
+ */
55
+ function instanceOfVectorConfig(value) {
56
+ if (!('name' in value) || value['name'] === undefined)
57
+ return false;
58
+ if (!('type' in value) || value['type'] === undefined)
59
+ return false;
60
+ return true;
61
+ }
62
+ function VectorConfigFromJSON(json) {
63
+ return VectorConfigFromJSONTyped(json, false);
64
+ }
65
+ function VectorConfigFromJSONTyped(json, ignoreDiscriminator) {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+ ...json,
71
+ 'name': json['name'],
72
+ 'type': json['type'],
73
+ 'model': json['model'] == null ? undefined : json['model'],
74
+ 'revision': json['revision'] == null ? undefined : json['revision'],
75
+ 'query_model': json['query_model'] == null ? undefined : json['query_model'],
76
+ 'query_revision': json['query_revision'] == null ? undefined : json['query_revision'],
77
+ 'dimensions': json['dimensions'] == null ? undefined : json['dimensions'],
78
+ 'top_k': json['top_k'] == null ? undefined : json['top_k'],
79
+ 'index_fields': json['index_fields'] == null ? undefined : json['index_fields'],
80
+ 'language_default_code': json['language_default_code'] == null ? undefined : json['language_default_code'],
81
+ 'language_detect': json['language_detect'] == null ? undefined : json['language_detect'],
82
+ 'language_confidence': json['language_confidence'] == null ? undefined : json['language_confidence'],
83
+ 'normalization': json['normalization'] == null ? undefined : json['normalization'],
84
+ 'dense_distance': json['dense_distance'] == null ? undefined : json['dense_distance'],
85
+ 'keep_case': json['keep_case'] == null ? undefined : json['keep_case'],
86
+ };
87
+ }
88
+ function VectorConfigToJSON(json) {
89
+ return VectorConfigToJSONTyped(json, false);
90
+ }
91
+ function VectorConfigToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ ...value,
97
+ 'name': value['name'],
98
+ 'type': value['type'],
99
+ 'model': value['model'],
100
+ 'revision': value['revision'],
101
+ 'query_model': value['query_model'],
102
+ 'query_revision': value['query_revision'],
103
+ 'dimensions': value['dimensions'],
104
+ 'top_k': value['top_k'],
105
+ 'index_fields': value['index_fields'],
106
+ 'language_default_code': value['language_default_code'],
107
+ 'language_detect': value['language_detect'],
108
+ 'language_confidence': value['language_confidence'],
109
+ 'normalization': value['normalization'],
110
+ 'dense_distance': value['dense_distance'],
111
+ 'keep_case': value['keep_case'],
112
+ };
113
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Individual vector score for a search result
14
+ * @export
15
+ * @interface VectorScore
16
+ */
17
+ export interface VectorScore {
18
+ /**
19
+ * Document field that was searched (name, description, content)
20
+ * @type {string}
21
+ * @memberof VectorScore
22
+ */
23
+ field: string;
24
+ /**
25
+ * Vector name that was used (wmtr, splade, dense, etc.)
26
+ * @type {string}
27
+ * @memberof VectorScore
28
+ */
29
+ vector: string;
30
+ /**
31
+ * Raw score from this vector
32
+ * @type {number}
33
+ * @memberof VectorScore
34
+ */
35
+ score: number;
36
+ /**
37
+ * Rank of this result within this vector's results (1-based)
38
+ * @type {number}
39
+ * @memberof VectorScore
40
+ */
41
+ rank: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the VectorScore interface.
45
+ */
46
+ export declare function instanceOfVectorScore(value: object): value is VectorScore;
47
+ export declare function VectorScoreFromJSON(json: any): VectorScore;
48
+ export declare function VectorScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorScore;
49
+ export declare function VectorScoreToJSON(json: any): VectorScore;
50
+ export declare function VectorScoreToJSONTyped(value?: VectorScore | null, ignoreDiscriminator?: boolean): any;
51
+ //# sourceMappingURL=VectorScore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VectorScore.d.ts","sourceRoot":"","sources":["../../models/VectorScore.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAMzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAW7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5G"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVectorScore = instanceOfVectorScore;
17
+ exports.VectorScoreFromJSON = VectorScoreFromJSON;
18
+ exports.VectorScoreFromJSONTyped = VectorScoreFromJSONTyped;
19
+ exports.VectorScoreToJSON = VectorScoreToJSON;
20
+ exports.VectorScoreToJSONTyped = VectorScoreToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VectorScore interface.
23
+ */
24
+ function instanceOfVectorScore(value) {
25
+ if (!('field' in value) || value['field'] === undefined)
26
+ return false;
27
+ if (!('vector' in value) || value['vector'] === undefined)
28
+ return false;
29
+ if (!('score' in value) || value['score'] === undefined)
30
+ return false;
31
+ if (!('rank' in value) || value['rank'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function VectorScoreFromJSON(json) {
36
+ return VectorScoreFromJSONTyped(json, false);
37
+ }
38
+ function VectorScoreFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'field': json['field'],
44
+ 'vector': json['vector'],
45
+ 'score': json['score'],
46
+ 'rank': json['rank'],
47
+ };
48
+ }
49
+ function VectorScoreToJSON(json) {
50
+ return VectorScoreToJSONTyped(json, false);
51
+ }
52
+ function VectorScoreToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'field': value['field'],
58
+ 'vector': value['vector'],
59
+ 'score': value['score'],
60
+ 'rank': value['rank'],
61
+ };
62
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Configuration for a vector search weight.
14
+ * Used in search queries to specify which vectors to search with and their weights.
15
+ * @export
16
+ * @interface VectorSearchWeight
17
+ */
18
+ export interface VectorSearchWeight {
19
+ [key: string]: any | any;
20
+ /**
21
+ * Name of the vector to search with
22
+ * @type {string}
23
+ * @memberof VectorSearchWeight
24
+ */
25
+ vector_name: string;
26
+ /**
27
+ * Weight to apply to this vector's search results
28
+ * @type {number}
29
+ * @memberof VectorSearchWeight
30
+ */
31
+ weight?: number;
32
+ /**
33
+ * Field to search with this vector (name, description, content)
34
+ * @type {string}
35
+ * @memberof VectorSearchWeight
36
+ */
37
+ field: VectorSearchWeightFieldEnum;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const VectorSearchWeightFieldEnum: {
43
+ readonly Name: "name";
44
+ readonly Description: "description";
45
+ readonly Content: "content";
46
+ };
47
+ export type VectorSearchWeightFieldEnum = typeof VectorSearchWeightFieldEnum[keyof typeof VectorSearchWeightFieldEnum];
48
+ /**
49
+ * Check if a given object implements the VectorSearchWeight interface.
50
+ */
51
+ export declare function instanceOfVectorSearchWeight(value: object): value is VectorSearchWeight;
52
+ export declare function VectorSearchWeightFromJSON(json: any): VectorSearchWeight;
53
+ export declare function VectorSearchWeightFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorSearchWeight;
54
+ export declare function VectorSearchWeightToJSON(json: any): VectorSearchWeight;
55
+ export declare function VectorSearchWeightToJSONTyped(value?: VectorSearchWeight | null, ignoreDiscriminator?: boolean): any;
56
+ //# sourceMappingURL=VectorSearchWeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VectorSearchWeight.d.ts","sourceRoot":"","sources":["../../models/VectorSearchWeight.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,2BAA2B,CAAC;CACtC;AAGD;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAIvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAW3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1H"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VectorSearchWeightFieldEnum = void 0;
17
+ exports.instanceOfVectorSearchWeight = instanceOfVectorSearchWeight;
18
+ exports.VectorSearchWeightFromJSON = VectorSearchWeightFromJSON;
19
+ exports.VectorSearchWeightFromJSONTyped = VectorSearchWeightFromJSONTyped;
20
+ exports.VectorSearchWeightToJSON = VectorSearchWeightToJSON;
21
+ exports.VectorSearchWeightToJSONTyped = VectorSearchWeightToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.VectorSearchWeightFieldEnum = {
26
+ Name: 'name',
27
+ Description: 'description',
28
+ Content: 'content'
29
+ };
30
+ /**
31
+ * Check if a given object implements the VectorSearchWeight interface.
32
+ */
33
+ function instanceOfVectorSearchWeight(value) {
34
+ if (!('vector_name' in value) || value['vector_name'] === undefined)
35
+ return false;
36
+ if (!('field' in value) || value['field'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function VectorSearchWeightFromJSON(json) {
41
+ return VectorSearchWeightFromJSONTyped(json, false);
42
+ }
43
+ function VectorSearchWeightFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ ...json,
49
+ 'vector_name': json['vector_name'],
50
+ 'weight': json['weight'] == null ? undefined : json['weight'],
51
+ 'field': json['field'],
52
+ };
53
+ }
54
+ function VectorSearchWeightToJSON(json) {
55
+ return VectorSearchWeightToJSONTyped(json, false);
56
+ }
57
+ function VectorSearchWeightToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ ...value,
63
+ 'vector_name': value['vector_name'],
64
+ 'weight': value['weight'],
65
+ 'field': value['field'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VersionResponse
16
+ */
17
+ export interface VersionResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VersionResponse
22
+ */
23
+ version: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VersionResponse interface.
27
+ */
28
+ export declare function instanceOfVersionResponse(value: object): value is VersionResponse;
29
+ export declare function VersionResponseFromJSON(json: any): VersionResponse;
30
+ export declare function VersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionResponse;
31
+ export declare function VersionResponseToJSON(json: any): VersionResponse;
32
+ export declare function VersionResponseToJSONTyped(value?: VersionResponse | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=VersionResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionResponse.d.ts","sourceRoot":"","sources":["../../models/VersionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAQrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpH"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVersionResponse = instanceOfVersionResponse;
17
+ exports.VersionResponseFromJSON = VersionResponseFromJSON;
18
+ exports.VersionResponseFromJSONTyped = VersionResponseFromJSONTyped;
19
+ exports.VersionResponseToJSON = VersionResponseToJSON;
20
+ exports.VersionResponseToJSONTyped = VersionResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VersionResponse interface.
23
+ */
24
+ function instanceOfVersionResponse(value) {
25
+ if (!('version' in value) || value['version'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function VersionResponseFromJSON(json) {
30
+ return VersionResponseFromJSONTyped(json, false);
31
+ }
32
+ function VersionResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'version': json['version'],
38
+ };
39
+ }
40
+ function VersionResponseToJSON(json) {
41
+ return VersionResponseToJSONTyped(json, false);
42
+ }
43
+ function VersionResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'version': value['version'],
49
+ };
50
+ }
@@ -0,0 +1,22 @@
1
+ export * from './BulkUploadRequest';
2
+ export * from './CollectionConfig';
3
+ export * from './CustomDocumentVector';
4
+ export * from './CustomVector';
5
+ export * from './Document';
6
+ export * from './DocumentStatus';
7
+ export * from './DocumentStatusResponse';
8
+ export * from './HTTPValidationError';
9
+ export * from './MetadataFilter';
10
+ export * from './MetadataIndex';
11
+ export * from './OkResponse';
12
+ export * from './QueueInfo';
13
+ export * from './SearchQuery';
14
+ export * from './SearchResult';
15
+ export * from './ValidationError';
16
+ export * from './ValidationErrorLocInner';
17
+ export * from './Vector';
18
+ export * from './VectorConfig';
19
+ export * from './VectorScore';
20
+ export * from './VectorSearchWeight';
21
+ export * from './VersionResponse';
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./BulkUploadRequest"), exports);
20
+ __exportStar(require("./CollectionConfig"), exports);
21
+ __exportStar(require("./CustomDocumentVector"), exports);
22
+ __exportStar(require("./CustomVector"), exports);
23
+ __exportStar(require("./Document"), exports);
24
+ __exportStar(require("./DocumentStatus"), exports);
25
+ __exportStar(require("./DocumentStatusResponse"), exports);
26
+ __exportStar(require("./HTTPValidationError"), exports);
27
+ __exportStar(require("./MetadataFilter"), exports);
28
+ __exportStar(require("./MetadataIndex"), exports);
29
+ __exportStar(require("./OkResponse"), exports);
30
+ __exportStar(require("./QueueInfo"), exports);
31
+ __exportStar(require("./SearchQuery"), exports);
32
+ __exportStar(require("./SearchResult"), exports);
33
+ __exportStar(require("./ValidationError"), exports);
34
+ __exportStar(require("./ValidationErrorLocInner"), exports);
35
+ __exportStar(require("./Vector"), exports);
36
+ __exportStar(require("./VectorConfig"), exports);
37
+ __exportStar(require("./VectorScore"), exports);
38
+ __exportStar(require("./VectorSearchWeight"), exports);
39
+ __exportStar(require("./VersionResponse"), exports);