@or-sdk/lookup 1.23.1-beta.4012.0 → 1.23.1-beta.4013.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.
@@ -7,240 +7,38 @@ export declare class Lookup extends Base {
7
7
  constructor(params: LookupConfig);
8
8
  private makeRequest;
9
9
  parseError(err: unknown): Error;
10
- /**
11
- * Retrieves the AI providers.
12
- * @returns {Promise<ProvidersList>} A promise that resolves with the AI providers.
13
- */
14
10
  getAiProviders(): Promise<ProvidersList>;
15
- /**
16
- * Load the document into collection.
17
- * @param collectionId - The ID of the collection the document belongs to.
18
- * @param params - The document loading parameters.
19
- * @param [options] - The API call options.
20
- * @returns The created document.
21
- */
22
11
  loadDocument(collectionId: string, params: LoadDocument, options?: CallOptions): Promise<Document>;
23
- /**
24
- * @param collectionId - The ID of the collection the document belongs to.
25
- * @param params - The document crawling parameters.
26
- * @param [options] - The API call options.
27
- */
28
12
  loadCrawlerDocument(collectionId: string, params: CrawlDocuments, options?: CallOptions): Promise<void>;
29
- /**
30
- * Create a new collection.
31
- * @param params - The collection creation parameters.
32
- * @param [options={}] - The API call options.
33
- * @returns The created collection.
34
- */
35
13
  createCollection(params: CreateCollection, options?: CallOptions): Promise<Collection>;
36
- /**
37
- * Create a new passage within the collection.
38
- * @param collectionId - The ID of the collection the passage belongs to.
39
- * @param passage - The passage creation parameters.
40
- * @param [options={}] - The API call options.
41
- * @returns The created passage.
42
- */
43
14
  createPassage<T extends Record<string, unknown>>(collectionId: string, passage: CreatePassage<T>, options?: CallOptions): Promise<Passage<T>>;
44
- /**
45
- * Create batch of passages within the collection.
46
- * @param collectionId - The ID of the collection the passage belongs to.
47
- * @param passages - The passages to create.
48
- * @param [options={}] - The API call options.
49
- */
50
15
  createManyPassages<T extends Record<string, unknown>>(collectionId: string, passages: CreatePassage<T>[], options?: CallOptions): Promise<void>;
51
- /**
52
- * Delete a collection by ID.
53
- * @param collectionId - The ID of the collection to delete.
54
- * @param [options={}] - The API call options.
55
- * @returns The deleted collection.
56
- */
57
16
  deleteCollection(collectionId: string, options?: CallOptions): Promise<Collection>;
58
- /**
59
- * Delete a passage from a collection.
60
- * @param collectionId - The ID of the collection the passage belongs to.
61
- * @param documentId - The ID of the passage to delete.
62
- * @param ids - The IDs of the passages to delete.
63
- * @param [options={}] - The API call options.
64
- * @returns The deleted passage.
65
- */
66
17
  deleteManyPassages(collectionId: string, documentId: string, ids: string[], options?: CallOptions): Promise<RemoveManyPassagesResult>;
67
- /**
68
- * Delete a passage from a collection.
69
- * @param collectionId - The ID of the collection the passage belongs to.
70
- * @param passageId - The ID of the passage to delete.
71
- * @param [options={}] - The API call options.
72
- * @returns The deleted passage.
73
- */
74
18
  deletePassage(collectionId: string, passageId: string, options?: CallOptions): Promise<DeletedPassage>;
75
- /**
76
- * Search for documents in a collection.
77
- * @param collectionId - The ID of the collection to search in.
78
- * @param params - The search parameters.
79
- * @param [options={}] - The API call options.
80
- * @returns An array of search results.
81
- */
82
19
  search(collectionId: string, params: Search, options?: CallOptions): Promise<SearchResult[]>;
83
- /**
84
- * Ask a question and generate an answer based on the documents in a collection.
85
- * @param collectionId - The ID of the collection to use for generating the answer.
86
- * @param params - The ask question parameters.
87
- * @param [options={}] - The API call options.
88
- * @returns The generated answer and search result.
89
- */
90
20
  ask(collectionId: string, params: Ask, options?: CallOptions): Promise<AskResults>;
91
- /**
92
- * Update a document's description.
93
- * @param collectionId - The ID of the collection the document belongs to.
94
- * @param documentId - The ID of the document to update.
95
- * @param params - The update document parameters.
96
- * @param [options={}] - The API call options.
97
- * @returns The updated document.
98
- */
99
21
  updateDocument(collectionId: string, documentId: string, params: UpdateDocument, options?: CallOptions): Promise<Document>;
100
- /**
101
- * Update a passage in a collection.
102
- * @param collectionId - The ID of the collection the passage belongs to.
103
- * @param passageId - The ID of the passage to update.
104
- * @param params - The update passage parameters.
105
- * @param [options={}] - The API call options.
106
- * @returns The updated passage.
107
- */
108
22
  updatePassage<T extends Record<string, unknown>>(collectionId: string, passageId: string, params: UpdatePassage<T>, options?: CallOptions): Promise<Passage<T>>;
109
- /**
110
- * Update a passage in a collection.
111
- * @param collectionId - The ID of the collection the passage belongs to.
112
- * @param documentId - The ID of the document.
113
- * @param ids - The IDs of the document passages to update.
114
- * @param params - The update passage parameters.
115
- * @param [options={}] - The API call options.
116
- * @returns The updated passage.
117
- */
118
23
  updateManyPassages<T extends Record<string, unknown>>(collectionId: string, documentId: string, ids: string[], params: Record<string, unknown>, options?: CallOptions): Promise<Passage<T>[]>;
119
- /**
120
- * Update a collection's description.
121
- * @param collectionId - The ID of the collection to update.
122
- * @param params - The update collection parameters.
123
- * @param [options={}] - The API call options.
124
- * @returns The updated collection.
125
- */
126
24
  updateCollection(collectionId: string, params: UpdateCollection, options?: CallOptions): Promise<Collection>;
127
- /**
128
- * Get a document by its ID.
129
- * @param collectionId - The ID of the collection the document belongs to.
130
- * @param documentId - The ID of the document to retrieve.
131
- * @param [options={}] - The API call options.
132
- * @returns The retrieved document.
133
- */
134
25
  getDocument(collectionId: string, documentId: string, options?: CallOptions): Promise<Document>;
135
- /**
136
- * Get a collection by its ID.
137
- * @param collectionId - The ID of the collection to retrieve.
138
- * @param [options={}] - The API call options.
139
- * @returns The retrieved collection.
140
- */
141
26
  getCollection(collectionId: string, options?: CallOptions): Promise<Collection>;
142
- /**
143
- * Get a single passage from a collection.
144
- * @param collectionId - The ID of the collection the passage belongs to.
145
- * @param passageId - The ID of the passage to retrieve.
146
- * @param [options={}] - The API call options.
147
- * @returns The retrieved passage.
148
- */
149
27
  getPassage<T extends Record<string, unknown>>(collectionId: string, passageId: string, options?: CallOptions & {
150
28
  params?: {
151
29
  vector: boolean;
152
30
  };
153
31
  }): Promise<Passage<T>>;
154
- /**
155
- * Add a custom property to an existing collection.
156
- * Custom properties can be used to store additional metadata about the collection or its passages.
157
- * The available data types for properties can be found https://weaviate.io/developers/weaviate/config-refs/datatypes.
158
- * Note that there are reserved property names:
159
- * ['accountId', 'collection', 'document', 'content', 'loaderMetadata', 'sourceUrl']
160
- * @param collectionId - The ID of the collection to add the property to.
161
- * @param property - The property to add to the collection.
162
- * @param [options={}] - The API call options.
163
- * @returns A promise that resolves when the property has been added.
164
- */
165
32
  addProperty(collectionId: string, property: Property, options?: CallOptions): Promise<void>;
166
- /**
167
- * List all documents in a collection with optional pagination and query.
168
- * @param collectionId - The ID of the collection to retrieve documents from.
169
- * @param find - Optional find parameters.
170
- * @param [options={}] - The API call options.
171
- * @returns An array of documents.
172
- */
173
33
  listDocuments(collectionId: string, params?: Find, options?: CallOptions): Promise<List<Document>>;
174
- /**
175
- * List collections with optional pagination and query.
176
- * @param params - Optional find parameters.
177
- * @param [options={}] - The API call options.
178
- * @returns An array of collections.
179
- */
180
34
  listCollections(params?: Find, options?: CallOptions): Promise<List<Collection>>;
181
- /**
182
- * List all passages in a collection with optional pagination and query.
183
- * @param collectionId - The ID of the collection to retrieve passages from.
184
- * @param params - Optional find parameters.
185
- * @param [options={}] - The API call options.
186
- * @returns An array of passages.
187
- */
188
35
  listPassages<T extends Record<string, unknown>>(collectionId: string, params?: FindPassages, options?: CallOptions): Promise<List<Passage<T>>>;
189
- /**
190
- * List all passages in a document with optional pagination, query, and ordering.
191
- * @param collectionId - The ID of the collection containing the document.
192
- * @param documentId - The ID of the document to retrieve passages from.
193
- * @param find - Optional find parameters.
194
- * @param [options={}] - The API call options.
195
- * @returns An array of passages with pagination info.
196
- */
197
36
  listPassagesInDocument<T extends Record<string, unknown>>(collectionId: string, documentId: string, find?: FindPassages, options?: CallOptions): Promise<List<Passage<T>>>;
198
- /**
199
- * Delete a document from a collection.
200
- * @param collectionId - The ID of the collection to delete the document from.
201
- * @param documentId - The ID of the document to delete.
202
- * @param [options={}] - The API call options.
203
- * @returns The deleted document.
204
- */
205
37
  deleteDocument(collectionId: string, documentId: string, options?: CallOptions): Promise<Document>;
206
- /**
207
- * Delete multiple documents from a collection.
208
- @param collectionId - The ID of the collection to delete the document from.
209
- * @param ids - The ID of the collection to delete the document from.
210
- * @param [options={}] - The API call options.
211
- * @returns IDs of deleted documents and passages.
212
- */
213
38
  deleteManyDocuments(collectionId: string, ids: string[], options?: CallOptions): Promise<RemoveManyDocumentsResult>;
214
- /**
215
- * Backup a collection.
216
- * @param collectionId - The ID of the collection to backup.
217
- * @param params - The backup parameters.
218
- * @param [options={}] - The API call options.
219
- * @returns A response indicating the success of the operation.
220
- */
221
39
  backupCollection(collectionId: string, params: Backup, options?: CallOptions): Promise<void>;
222
- /**
223
- * Restore a collection.
224
- * @param params - The restoration parameters.
225
- * @param [options={}] - The API call options.
226
- * @returns The restored collection information.
227
- */
228
40
  restoreCollection(params: Restore, options?: CallOptions): Promise<void>;
229
- /**
230
- * Split a long text into smaller chunks
231
- * @param dataToSplit - data to split
232
- * @param dataToSplit.text - text content that will be divided
233
- * @param dataToSplit.chunkSize - configure the size of each chunk
234
- * @param dataToSplit.chunkOverlap - configure chunks overlap value
235
- * @param [options={}] - The API call options.
236
- * @returns The array of text chunks
237
- */
238
41
  splitText(dataToSplit: TextSplitterRequest, options?: CallOptions): Promise<TextSplitterResult>;
239
- /**
240
- * Set the session ID.
241
- * @param sessionId - The session ID to set.
242
- * @returns The session ID.
243
- */
244
42
  setSessionId(sessionId: string): string;
245
43
  }
246
44
  //# sourceMappingURL=Lookup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Lookup.d.ts","sourceRoot":"","sources":["../../src/Lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,IAAI,EAAY,MAAM,cAAc,CAAC;AAIlE,OAAO,EACL,GAAG,EACH,UAAU,EACV,MAAM,EACN,WAAW,EACX,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,aAAa,EACb,yBAAyB,EACzB,wBAAwB,EACxB,OAAO,EACP,MAAM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kBxF,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClD,YAAY,EAAE,MAAM,EACpB,MAAM,GAAE,YAAiB,EACzB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAmBtB,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5D,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,YAAiB,EACvB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAkBtB,cAAc,CAClB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC;IAiBd,mBAAmB,CACvB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,MAAM,EAAE,EACb,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,yBAAyB,CAAC;IAiB/B,gBAAgB,CACpB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC;IAeV,iBAAiB,CACrB,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC;IAkBV,SAAS,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAczG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAIxC"}
@@ -5,271 +5,79 @@ export type CallOptions = {
5
5
  signal?: AbortSignal;
6
6
  };
7
7
  export type LookupConfig = {
8
- /**
9
- * token
10
- */
11
8
  token: Token;
12
- /**
13
- * Url of OneReach service discovery api
14
- */
15
9
  discoveryUrl?: string;
16
- /**
17
- * Account ID for cross-account requests (super admin only)
18
- */
19
10
  accountId?: string;
20
- /**
21
- * Url of OneReach lookup api
22
- */
23
11
  serviceUrl?: string;
24
- /**
25
- * Feature name, default: 'master'
26
- */
27
12
  feature?: string;
28
- /**
29
- * Flow SessionID (Used for correct tracking)
30
- */
31
13
  sessionId?: string;
32
- /**
33
- * Flow beginningSessionId (Used for correct tracking)
34
- */
35
14
  beginningSessionId?: string;
36
15
  };
37
- /**
38
- * Document creation parameters
39
- */
40
16
  export type LoadDocument = {
41
- /**
42
- * Document name
43
- */
44
17
  name: string;
45
- /**
46
- * Document URL
47
- */
48
18
  url?: string;
49
- /**
50
- * Document description
51
- */
52
19
  description?: string;
53
- /**
54
- * Default custom properties for document passages.
55
- * Note that these properties should be listed in collection properties
56
- */
57
20
  defaultProperties: Record<string, unknown>;
58
21
  };
59
- /**
60
- * Documents crawl creation parameters
61
- */
62
22
  export type CrawlDocuments = {
63
- /**
64
- * Document URL
65
- */
66
23
  url: string;
67
- /**
68
- * Searchable prefix
69
- */
70
24
  prefix: string;
71
- /**
72
- * Limit for documents creation
73
- */
74
25
  limit: number;
75
- /**
76
- * Default custom properties for documents.
77
- * Note that these properties should be listed in collection properties
78
- */
79
26
  defaultProperties: Record<string, unknown>;
80
27
  };
81
28
  export type Property = {
82
- /**
83
- * Property name. e.g. `nameOfTheAuthor`
84
- */
85
29
  name: string;
86
- /**
87
- * Property type. See https://weaviate.io/developers/weaviate/config-refs/schema#datatypes for the available types
88
- */
89
30
  dataType: string;
90
- /**
91
- * Property description
92
- */
93
31
  description?: string;
94
- /**
95
- * Nested properties only for object dataType properties
96
- */
97
32
  nestedProperties?: Property[];
98
- /**
99
- * custom property vectorization, use OpenAI API to vectorize the property
100
- */
101
33
  vectorize?: boolean;
102
34
  };
103
- /**
104
- * Search parameters
105
- */
106
35
  export type Search = {
107
- /**
108
- * Search query
109
- */
110
36
  query: string;
111
- /**
112
- * Limit the number of results.
113
- */
114
37
  limit?: number;
115
- /**
116
- * Offset for the results.
117
- */
118
38
  offset?: number;
119
- /**
120
- * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
121
- */
122
39
  where?: Record<string, unknown>;
123
- /**
124
- * Array of the custom properties to select.
125
- */
126
40
  select?: string[];
127
- /**
128
- * Filter out passages that are further than maxDistance from the question or context by cosine metric.
129
- * Default: 0
130
- * Range: 0 - 1
131
- */
132
41
  maxDistance?: number;
133
- /**
134
- * Custom vector for search, in this case embeddingProvider and embeddingModel are ignored
135
- */
136
42
  vector?: number[];
137
- /**
138
- * Alpha parameter for hybrid search to balance between vector and keyword search.
139
- * 0.0 means keyword-only search, 1.0 means vector-only search.
140
- * Default: 1
141
- * Range: 0 - 1
142
- */
143
43
  alpha?: number;
144
44
  };
145
45
  export type MessageRole = 'user' | 'assistant';
146
46
  export type AskMode = 'conversation' | 'ask';
147
- /**
148
- * Message data for completion request
149
- */
150
47
  export type CompletionRequestMessage = {
151
- /**
152
- * Role of the message sender (either "user" or "assistant")
153
- */
154
48
  role: MessageRole;
155
- /**
156
- * Content of the message
157
- */
158
49
  content: string;
159
50
  };
160
- /**
161
- * Ask question parameters
162
- */
163
51
  export type Ask = {
164
- /**
165
- * Question to ask
166
- */
167
52
  question: string;
168
- /**
169
- * Previous chat messages
170
- * Default: []
171
- */
172
53
  messages?: CompletionRequestMessage[];
173
- /**
174
- * Limit the number of results.
175
- * Default: 5
176
- * Range: 1 - 100
177
- */
178
54
  limit?: number;
179
- /**
180
- * Offset for the results.
181
- */
182
55
  offset?: number;
183
- /**
184
- * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
185
- * Optional
186
- */
187
56
  where?: Record<string, unknown>;
188
- /**
189
- * Array of the custom properties to select.
190
- * Optional
191
- */
192
57
  select?: string[];
193
- /**
194
- * Question mode.
195
- * Default: 'conversation'
196
- * Values: 'conversation', 'ask'
197
- */
198
58
  mode?: AskMode;
199
- /**
200
- * A summarization instruction used to generate correct answer.
201
- * Maximum Length: 1000 characters
202
- * Optional
203
- */
204
59
  answerInstruction?: string | null;
205
- /**
206
- * A summarization instruction used to generate correct search query.
207
- * Maximum Length: 1000 characters
208
- * Optional
209
- */
210
60
  questionInstruction?: string | null;
211
- /**
212
- * What sampling temperature to use.
213
- * Default: 1
214
- * Range: 0 - 2
215
- */
216
61
  temperature?: number;
217
- /**
218
- * Maximum output length from the LLM
219
- * Default: 1024
220
- * Range: 128 - 2048
221
- */
222
62
  maxTokens?: number;
223
- /**
224
- * Positive values penalize new tokens based on their existing frequency in the text so far.
225
- * Default: 0
226
- * Range: -2 - 2
227
- */
228
63
  frequencyPenalty?: number;
229
- /**
230
- * Penalize new tokens based on whether they appear in the text so far.
231
- * Default: 0
232
- * Range: -2 - 2
233
- */
234
64
  presencePenalty?: number;
235
- /**
236
- * Filter out passages that are further than maxDistance from the question or context by cosine metric.
237
- * Default: 0
238
- * Range: 0 - 1
239
- */
240
65
  maxDistance?: number;
241
- /**
242
- * Prompt provider (Optional)
243
- * Maximum length: 64
244
- */
245
66
  promptProvider?: string;
246
- /**
247
- * Large language model name (Optional)
248
- * Maximum length: 64
249
- */
250
67
  promptModel?: string;
251
68
  };
252
- /**
253
- * DocumentStatus represents the loading status of a document.
254
- */
255
69
  export declare enum DocumentStatus {
256
70
  NEW = "NEW",
257
71
  LOADING = "LOADING",
258
72
  READY = "READY",
259
73
  ERROR = "ERROR"
260
74
  }
261
- /**
262
- * BackupStatus represents the backup status of a collection.
263
- */
264
75
  export declare enum BackupStatus {
265
76
  BACKUP = "BACKUP",
266
77
  RESTORE = "RESTORE",
267
78
  READY = "READY",
268
79
  ERROR = "ERROR"
269
80
  }
270
- /**
271
- * CollectionType represents the type of a collection.
272
- */
273
81
  export declare enum CollectionType {
274
82
  DEFAULT = "DEFAULT",
275
83
  QNA_V1 = "QNA_V1",
@@ -277,531 +85,143 @@ export declare enum CollectionType {
277
85
  CUSTOM = "CUSTOM"
278
86
  }
279
87
  export type DocumentProperty = {
280
- /**
281
- * Property name. e.g. `nameOfTheAuthor`
282
- */
283
88
  name: string;
284
- /**
285
- * Property value
286
- */
287
89
  value?: unknown;
288
90
  };
289
- /**
290
- * Document represents a document object.
291
- */
292
91
  export type Document = {
293
- /**
294
- * Document ID
295
- */
296
92
  id: string;
297
- /**
298
- * Collection ID
299
- */
300
93
  collection: string;
301
- /**
302
- * Document name
303
- */
304
94
  name: string;
305
- /**
306
- * Document description
307
- */
308
95
  description: string;
309
- /**
310
- * List of document properties
311
- */
312
96
  properties?: DocumentProperty[];
313
- /**
314
- * Document loading status or error message
315
- */
316
97
  status: DocumentStatus | string;
317
- /**
318
- * Creation Date
319
- */
320
98
  createdAt: string;
321
- /**
322
- * Updating Date
323
- */
324
99
  updatedAt: string;
325
- /**
326
- * Number of passages in the document.
327
- */
328
100
  countPassages?: number;
329
- /**
330
- * The URL of the source this document is downloaded from if provided.
331
- */
332
101
  sourceUrl?: string;
333
102
  };
334
- /**
335
- * Collection represents a collection object.
336
- */
337
103
  export type Collection = {
338
- /**
339
- * Collection ID
340
- */
341
104
  id: string;
342
- /**
343
- * Account ID
344
- */
345
105
  accountId: string;
346
- /**
347
- * Collection name
348
- * Can start only with a letter.
349
- * Minimum length: 5, Maximum length: 100
350
- */
351
106
  name: string;
352
- /**
353
- * Collection description (Optional)
354
- * Minimum length: 3, Maximum length: 500
355
- */
356
107
  description?: string;
357
- /**
358
- * Collection backup/restore status
359
- */
360
108
  status?: BackupStatus | string;
361
- /**
362
- * A collection thumbnail image URL (Optional)
363
- * Minimum length: 3, Maximum length: 2048
364
- */
365
109
  imageUrl?: string;
366
- /**
367
- * A summarization instruction used to generate a correct answer (Optional)
368
- * Maximum length: 1000
369
- */
370
110
  answerInstruction?: string | null;
371
- /**
372
- * A summarization instruction used to generate a correct search query (Optional)
373
- * Maximum length: 1000
374
- */
375
111
  questionInstruction?: string | null;
376
- /**
377
- * A summarization instruction used to generate a correct first message (Optional)
378
- * Maximum length: 1000
379
- */
380
112
  greetingInstruction?: string | null;
381
- /**
382
- * Custom properties (Optional)
383
- * Type: Array<Property>
384
- */
385
113
  properties?: Property[];
386
- /**
387
- * Creation Date
388
- */
389
114
  createdAt: string | Date;
390
- /**
391
- * Updating Date
392
- */
393
115
  updatedAt: string | Date;
394
- /**
395
- * What sampling temperature to use.
396
- * Minimum value: 0, Maximum value: 2
397
- */
398
116
  temperature?: number;
399
- /**
400
- * Max output length from the LLM
401
- * Minimum value: 128, Maximum value: 2048
402
- */
403
117
  maxTokens?: number;
404
- /**
405
- * Max number of passages returned in result
406
- * Minimum value: 1
407
- */
408
118
  limit?: number;
409
- /**
410
- * Hybrid search
411
- * Minimum value: 0
412
- * Maximum value: 1
413
- */
414
119
  alpha?: number;
415
- /**
416
- * Positive values penalize new tokens based on their existing frequency in the text so far.
417
- * Minimum value: -2, Maximum value: 2
418
- */
419
120
  frequencyPenalty?: number;
420
- /**
421
- * Penalize new tokens based on whether they appear in the text so far.
422
- * Minimum value: -2, Maximum value: 2
423
- */
424
121
  presencePenalty?: number;
425
- /**
426
- * Filter out passages that are further then maxDistance from the question or context by cosine metric.
427
- * Minimum value: 0, Maximum value: 1
428
- */
429
122
  maxDistance?: number;
430
- /**
431
- * @deprecated Use `promptModel` instead.
432
- */
433
123
  modelName?: string;
434
- /**
435
- * Ai token name from account settings (Optional)
436
- */
437
124
  promptTokenName?: string;
438
- /**
439
- * Prompt provider.
440
- */
441
125
  promptProvider?: string;
442
- /**
443
- * Large language model name.
444
- */
445
126
  promptModel?: string;
446
- /**
447
- * Ai token name from account settings (Optional)
448
- */
449
127
  embeddingTokenName?: string;
450
- /**
451
- * Embedding provider.
452
- */
453
128
  embeddingProvider?: string;
454
- /**
455
- * Embedding model name.
456
- */
457
129
  embeddingModel?: string;
458
- /**
459
- * Number of passages in the collection.
460
- */
461
130
  countPassages?: number;
462
- /**
463
- * Number of documents in the collection.
464
- */
465
131
  countDocs?: number;
466
- /**
467
- * Collection type, it will be used for specific document loading post-processing. (Optional)
468
- */
469
132
  type?: CollectionType;
470
- /**
471
- * Top-p (nucleus): The cumulative probability cutoff for token selection.
472
- * Lower values mean sampling from a smaller, more top-weighted nucleus.
473
- */
474
133
  topP?: number;
475
- /**
476
- * Top-k: Sample from the k most likely next tokens at each step.
477
- * Lower k focuses on higher probability tokens.
478
- */
479
134
  topK?: number;
480
135
  };
481
- /**
482
- * SearchResult represents a document found as a result of a search query.
483
- */
484
136
  export type SearchResult = {
485
- /**
486
- * Found passage ID
487
- */
488
137
  id: string;
489
- /**
490
- * Cosine distance between search query and result.
491
- */
492
138
  distance: string;
493
- /**
494
- * Found passage content.
495
- */
496
139
  content: string;
497
- /**
498
- * SourceUrl
499
- */
500
140
  sourceUrl: string;
501
- /**
502
- * Found passage metadata.
503
- */
504
141
  loaderMetadata: Record<string, unknown>;
505
- /**
506
- * Found passage metadata.
507
- */
508
142
  document: {
509
143
  id: string;
510
144
  name: string;
511
145
  };
512
- /**
513
- * Used properties in search.
514
- */
515
146
  select: string[];
516
147
  };
517
- /**
518
- * AskResults represents the response from an ask question query.
519
- */
520
148
  export type AskResults = {
521
- /**
522
- * Generated answer from the chat completion.
523
- */
524
149
  result: CompletionRequestMessage;
525
- /**
526
- * Search result for the input question.
527
- */
528
150
  searchResult: SearchResult;
529
- /**
530
- * Used properties in search.
531
- */
532
151
  select: string[];
533
152
  };
534
- /**
535
- * UpdateDocument parameters
536
- */
537
153
  export type UpdateDocument = {
538
- /**
539
- * Document name
540
- */
541
154
  name?: string;
542
- /**
543
- * Document description
544
- */
545
155
  description?: string;
546
- /**
547
- * Document status or loading error message
548
- */
549
156
  status?: DocumentStatus | string;
550
- /**
551
- * Custom properties for document.
552
- * Note that these properties should be listed in document properties
553
- */
554
157
  properties?: DocumentProperty[];
555
158
  };
556
- /**
557
- * CreateCollection parameters
558
- */
559
159
  export type CreateCollection = UpdateCollection & {
560
- /**
561
- * Custom properties (Optional)
562
- * Type: Array<Property>
563
- */
564
160
  properties?: Property[];
565
- /**
566
- * Collection type, it will be used for specific document loading post-processing. (Optional)
567
- */
568
161
  type?: CollectionType;
569
- /**
570
- * Prompt provider (Optional)
571
- * Maximum length: 64
572
- */
573
162
  embeddingProvider?: string;
574
- /**
575
- * Prompt provider (Optional)
576
- * Maximum length: 64
577
- */
578
163
  embeddingModel?: string;
579
164
  };
580
- /**
581
- * UpdateCollection parameters
582
- */
583
165
  export type UpdateCollection = {
584
- /**
585
- * Collection name
586
- * Can start only with a letter.
587
- * Minimum length: 5, Maximum length: 100
588
- */
589
166
  name?: string;
590
- /**
591
- * Collection description (Optional)
592
- * Minimum length: 3, Maximum length: 500
593
- */
594
167
  description?: string;
595
- /**
596
- * A collection thumbnail image URL (Optional)
597
- * Minimum length: 3, Maximum length: 2048
598
- */
599
168
  imageUrl?: string;
600
- /**
601
- * A summarization instruction used to generate a correct answer (Optional)
602
- * Maximum length: 1000
603
- */
604
169
  answerInstruction?: string;
605
- /**
606
- * A summarization instruction used to generate a correct search query (Optional)
607
- * Maximum length: 1000
608
- */
609
170
  questionInstruction?: string;
610
- /**
611
- * A summarization instruction used to generate a correct first message (Optional)
612
- * Maximum length: 1000
613
- */
614
171
  greetingInstruction?: string;
615
- /**
616
- * What sampling temperature to use (Optional)
617
- * Default value: 1, Range: [0, 2]
618
- */
619
172
  temperature?: number;
620
- /**
621
- * Max output length from the LLM (Optional)
622
- * Range: [128, 2048]
623
- */
624
173
  maxTokens?: number;
625
- /**
626
- * Positive values penalize new tokens based on their existing frequency in the text so far (Optional)
627
- * Range: [-2, 2]
628
- */
629
174
  frequencyPenalty?: number;
630
- /**
631
- * Penalize new tokens based on whether they appear in the text so far (Optional)
632
- * Range: [-2, 2]
633
- */
634
175
  presencePenalty?: number;
635
- /**
636
- * Filter out passages that are further then maxDistance from the question or context by
637
- * cosine metric (Optional)
638
- * Range: [0, 1]
639
- */
640
176
  maxDistance?: number;
641
- /**
642
- * Large language model name (Optional)
643
- * Maximum length: 64
644
- * @deprecated Use `promptModel` instead.
645
- */
646
177
  modelName?: string;
647
- /**
648
- * Ai token name from account settings (Optional)
649
- */
650
178
  promptTokenName?: string;
651
- /**
652
- * Prompt provider (Optional)
653
- * Maximum length: 64
654
- */
655
179
  promptProvider?: string;
656
- /**
657
- * Large language model name (Optional)
658
- * Maximum length: 64
659
- */
660
180
  promptModel?: string;
661
- /**
662
- * Ai token name from account settings (Optional)
663
- */
664
181
  embeddingTokenName?: string;
665
- /**
666
- * Top-p (nucleus): The cumulative probability cutoff for token selection.
667
- * Lower values mean sampling from a smaller, more top-weighted nucleus.
668
- */
669
182
  topP?: number;
670
- /**
671
- * Top-k: Sample from the k most likely next tokens at each step.
672
- * Lower k focuses on higher probability tokens.
673
- */
674
183
  topK?: number;
675
184
  };
676
- /**
677
- * Find parameters
678
- */
679
185
  export type Find = Partial<PaginationOptions> & Partial<OrderOptions> & {
680
- /**
681
- * Search query
682
- */
683
186
  query?: string;
684
- /**
685
- * Search mode: bm25 for full-text search and vector for vector similarity search.
686
- */
687
187
  mode?: SearchMode;
688
188
  };
689
- /**
690
- * Find passages parameters
691
- */
692
189
  export type FindPassages = Find & {
693
- /**
694
- * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
695
- */
696
190
  where?: Record<string, unknown>;
697
191
  };
698
192
  type TypedPassageProperties = {
699
- /**
700
- * Content of the default collection passage
701
- */
702
193
  content: string;
703
194
  } | {
704
- /**
705
- * question of the QnA collection passage
706
- */
707
195
  question: string;
708
- /**
709
- * answer of the QnA collection passage
710
- */
711
196
  answer: string;
712
197
  } & {
713
- /**
714
- * Custom vector for search, in this case embeddingProvider and embeddingModel are ignored
715
- */
716
198
  vector?: number[];
717
199
  };
718
- /**
719
- * Passage creation parameters. The properties other than listed are considered custom properties.
720
- */
721
200
  export type CreatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
722
- /**
723
- * Document ID
724
- */
725
201
  documentId: string;
726
- /**
727
- * Custom loader metadata. Non filterable property
728
- */
729
202
  loaderMetadata?: Record<string, unknown>;
730
203
  } & T;
731
- /**
732
- * Passage represents a passage object.
733
- */
734
204
  export type Passage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
735
- /**
736
- * Passage ID
737
- */
738
205
  id: string;
739
- /**
740
- * Creation Date
741
- */
742
206
  createdAt: string;
743
- /**
744
- * Updating Date
745
- */
746
207
  updatedAt: string;
747
208
  } & T;
748
- /**
749
- * Update passage parameters
750
- */
751
209
  export type UpdatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & T;
752
- /**
753
- * Represents a deleted passage.
754
- */
755
210
  export type DeletedPassage = {
756
- /**
757
- * The ID of the deleted passage.
758
- */
759
211
  id: string;
760
212
  };
761
- /**
762
- * Represents a list if ids of deleted passages.
763
- */
764
213
  export type RemoveManyPassagesResult = {
765
- /**
766
- * The IDs of the deleted passages.
767
- */
768
214
  removedIds: string[];
769
215
  };
770
- /**
771
- * Backup parameters
772
- */
773
216
  export type Backup = {
774
- /**
775
- * Prefix in Files the backup files to put into
776
- * Minimum length: 3, Maximum length: 500
777
- */
778
217
  prefix: string;
779
218
  };
780
- /**
781
- * Restore parameters
782
- */
783
219
  export type Restore = {
784
- /**
785
- * Prefix in Files the backup files to put into
786
- * Minimum length: 3, Maximum length: 500
787
- */
788
220
  key: string;
789
- /**
790
- * Does file has public privacy in files
791
- */
792
221
  isPublic: boolean;
793
222
  };
794
- /**
795
- * Result of removing multiple documents
796
- */
797
223
  export type RemoveManyDocumentsResult = {
798
- /**
799
- * IDs of removed documents
800
- */
801
224
  removedDocumentsIds: string[];
802
- /**
803
- * IDs of removed passages
804
- */
805
225
  removedPassagesIds: string[];
806
226
  };
807
227
  export type ProvidersList = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACtE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD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C;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/lookup",
3
- "version": "1.23.1-beta.4012.0",
3
+ "version": "1.23.1-beta.4013.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -21,7 +21,7 @@
21
21
  "test:watch": "vitest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@or-sdk/base": "^0.44.0-beta.4012.0"
24
+ "@or-sdk/base": "^0.44.0-beta.4013.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "concurrently": "9.0.1",