@or-sdk/lookup 1.22.1 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.23.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/lookup@1.22.1...@or-sdk/lookup@1.23.0) (2026-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **deployer:** Add methods 'fetchFlowLogsChunk' and 'fetchAllFlowLogs' to fetch flow logs ([6b70992](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/6b70992ce3d1e4f308db69df700528f6eeffafcf))
12
+
13
+
14
+
6
15
  ## [1.22.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/lookup@1.22.0...@or-sdk/lookup@1.22.1) (2026-01-15)
7
16
 
8
17
  **Note:** Version bump only for package @or-sdk/lookup
@@ -7,38 +7,240 @@ 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
+ */
10
14
  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
+ */
11
22
  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
+ */
12
28
  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
+ */
13
35
  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
+ */
14
43
  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
+ */
15
50
  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
+ */
16
57
  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
+ */
17
66
  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
+ */
18
74
  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
+ */
19
82
  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
+ */
20
90
  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
+ */
21
99
  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
+ */
22
108
  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
+ */
23
118
  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
+ */
24
126
  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
+ */
25
134
  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
+ */
26
141
  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
+ */
27
149
  getPassage<T extends Record<string, unknown>>(collectionId: string, passageId: string, options?: CallOptions & {
28
150
  params?: {
29
151
  vector: boolean;
30
152
  };
31
153
  }): 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
+ */
32
165
  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
+ */
33
173
  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
+ */
34
180
  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
+ */
35
188
  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
+ */
36
197
  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
+ */
37
205
  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
+ */
38
213
  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
+ */
39
221
  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
+ */
40
228
  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
+ */
41
238
  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
+ */
42
244
  setSessionId(sessionId: string): string;
43
245
  }
44
246
  //# 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,EACN,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,aAAa,EAEb,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAIjB,qBAAa,MAAO,SAAQ,IAAI;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,mBAAmB,CAAC,CAAS;gBAEzB,MAAM,EAAE,YAAY;YAqBlB,WAAW;IAmBzB,UAAU,CAAC,GAAG,EAAE,OAAO;IAQvB,cAAc,IAAI,OAAO,CAAC,aAAa,CAAC;IAclC,YAAY,CAChB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,YAAY,EACpB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AgB,GACxB,OAAO,CAAC,QAAQ,CAAC;IAUpB;;;;;;OAMG;IACG,mBAAmB,CACvB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,MAAM,EAAE,EACb,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,yBAAyB,CAAC;IAUrC;;;;;;KAMC;IACK,gBAAgB,CACpB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;OAKG;IACG,iBAAiB,CACrB,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;;;;OAQG;IACG,SAAS,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IASzG;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAIxC"}
@@ -5,79 +5,271 @@ export type CallOptions = {
5
5
  signal?: AbortSignal;
6
6
  };
7
7
  export type LookupConfig = {
8
+ /**
9
+ * token
10
+ */
8
11
  token: Token;
12
+ /**
13
+ * Url of OneReach service discovery api
14
+ */
9
15
  discoveryUrl?: string;
16
+ /**
17
+ * Account ID for cross-account requests (super admin only)
18
+ */
10
19
  accountId?: string;
20
+ /**
21
+ * Url of OneReach lookup api
22
+ */
11
23
  serviceUrl?: string;
24
+ /**
25
+ * Feature name, default: 'master'
26
+ */
12
27
  feature?: string;
28
+ /**
29
+ * Flow SessionID (Used for correct tracking)
30
+ */
13
31
  sessionId?: string;
32
+ /**
33
+ * Flow beginningSessionId (Used for correct tracking)
34
+ */
14
35
  beginningSessionId?: string;
15
36
  };
37
+ /**
38
+ * Document creation parameters
39
+ */
16
40
  export type LoadDocument = {
41
+ /**
42
+ * Document name
43
+ */
17
44
  name: string;
45
+ /**
46
+ * Document URL
47
+ */
18
48
  url?: string;
49
+ /**
50
+ * Document description
51
+ */
19
52
  description?: string;
53
+ /**
54
+ * Default custom properties for document passages.
55
+ * Note that these properties should be listed in collection properties
56
+ */
20
57
  defaultProperties: Record<string, unknown>;
21
58
  };
59
+ /**
60
+ * Documents crawl creation parameters
61
+ */
22
62
  export type CrawlDocuments = {
63
+ /**
64
+ * Document URL
65
+ */
23
66
  url: string;
67
+ /**
68
+ * Searchable prefix
69
+ */
24
70
  prefix: string;
71
+ /**
72
+ * Limit for documents creation
73
+ */
25
74
  limit: number;
75
+ /**
76
+ * Default custom properties for documents.
77
+ * Note that these properties should be listed in collection properties
78
+ */
26
79
  defaultProperties: Record<string, unknown>;
27
80
  };
28
81
  export type Property = {
82
+ /**
83
+ * Property name. e.g. `nameOfTheAuthor`
84
+ */
29
85
  name: string;
86
+ /**
87
+ * Property type. See https://weaviate.io/developers/weaviate/config-refs/schema#datatypes for the available types
88
+ */
30
89
  dataType: string;
90
+ /**
91
+ * Property description
92
+ */
31
93
  description?: string;
94
+ /**
95
+ * Nested properties only for object dataType properties
96
+ */
32
97
  nestedProperties?: Property[];
98
+ /**
99
+ * custom property vectorization, use OpenAI API to vectorize the property
100
+ */
33
101
  vectorize?: boolean;
34
102
  };
103
+ /**
104
+ * Search parameters
105
+ */
35
106
  export type Search = {
107
+ /**
108
+ * Search query
109
+ */
36
110
  query: string;
111
+ /**
112
+ * Limit the number of results.
113
+ */
37
114
  limit?: number;
115
+ /**
116
+ * Offset for the results.
117
+ */
38
118
  offset?: number;
119
+ /**
120
+ * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
121
+ */
39
122
  where?: Record<string, unknown>;
123
+ /**
124
+ * Array of the custom properties to select.
125
+ */
40
126
  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
+ */
41
132
  maxDistance?: number;
133
+ /**
134
+ * Custom vector for search, in this case embeddingProvider and embeddingModel are ignored
135
+ */
42
136
  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
+ */
43
143
  alpha?: number;
44
144
  };
45
145
  export type MessageRole = 'user' | 'assistant';
46
146
  export type AskMode = 'conversation' | 'ask';
147
+ /**
148
+ * Message data for completion request
149
+ */
47
150
  export type CompletionRequestMessage = {
151
+ /**
152
+ * Role of the message sender (either "user" or "assistant")
153
+ */
48
154
  role: MessageRole;
155
+ /**
156
+ * Content of the message
157
+ */
49
158
  content: string;
50
159
  };
160
+ /**
161
+ * Ask question parameters
162
+ */
51
163
  export type Ask = {
164
+ /**
165
+ * Question to ask
166
+ */
52
167
  question: string;
168
+ /**
169
+ * Previous chat messages
170
+ * Default: []
171
+ */
53
172
  messages?: CompletionRequestMessage[];
173
+ /**
174
+ * Limit the number of results.
175
+ * Default: 5
176
+ * Range: 1 - 100
177
+ */
54
178
  limit?: number;
179
+ /**
180
+ * Offset for the results.
181
+ */
55
182
  offset?: number;
183
+ /**
184
+ * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
185
+ * Optional
186
+ */
56
187
  where?: Record<string, unknown>;
188
+ /**
189
+ * Array of the custom properties to select.
190
+ * Optional
191
+ */
57
192
  select?: string[];
193
+ /**
194
+ * Question mode.
195
+ * Default: 'conversation'
196
+ * Values: 'conversation', 'ask'
197
+ */
58
198
  mode?: AskMode;
199
+ /**
200
+ * A summarization instruction used to generate correct answer.
201
+ * Maximum Length: 1000 characters
202
+ * Optional
203
+ */
59
204
  answerInstruction?: string | null;
205
+ /**
206
+ * A summarization instruction used to generate correct search query.
207
+ * Maximum Length: 1000 characters
208
+ * Optional
209
+ */
60
210
  questionInstruction?: string | null;
211
+ /**
212
+ * What sampling temperature to use.
213
+ * Default: 1
214
+ * Range: 0 - 2
215
+ */
61
216
  temperature?: number;
217
+ /**
218
+ * Maximum output length from the LLM
219
+ * Default: 1024
220
+ * Range: 128 - 2048
221
+ */
62
222
  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
+ */
63
228
  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
+ */
64
234
  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
+ */
65
240
  maxDistance?: number;
241
+ /**
242
+ * Prompt provider (Optional)
243
+ * Maximum length: 64
244
+ */
66
245
  promptProvider?: string;
246
+ /**
247
+ * Large language model name (Optional)
248
+ * Maximum length: 64
249
+ */
67
250
  promptModel?: string;
68
251
  };
252
+ /**
253
+ * DocumentStatus represents the loading status of a document.
254
+ */
69
255
  export declare enum DocumentStatus {
70
256
  NEW = "NEW",
71
257
  LOADING = "LOADING",
72
258
  READY = "READY",
73
259
  ERROR = "ERROR"
74
260
  }
261
+ /**
262
+ * BackupStatus represents the backup status of a collection.
263
+ */
75
264
  export declare enum BackupStatus {
76
265
  BACKUP = "BACKUP",
77
266
  RESTORE = "RESTORE",
78
267
  READY = "READY",
79
268
  ERROR = "ERROR"
80
269
  }
270
+ /**
271
+ * CollectionType represents the type of a collection.
272
+ */
81
273
  export declare enum CollectionType {
82
274
  DEFAULT = "DEFAULT",
83
275
  QNA_V1 = "QNA_V1",
@@ -85,143 +277,531 @@ export declare enum CollectionType {
85
277
  CUSTOM = "CUSTOM"
86
278
  }
87
279
  export type DocumentProperty = {
280
+ /**
281
+ * Property name. e.g. `nameOfTheAuthor`
282
+ */
88
283
  name: string;
284
+ /**
285
+ * Property value
286
+ */
89
287
  value?: unknown;
90
288
  };
289
+ /**
290
+ * Document represents a document object.
291
+ */
91
292
  export type Document = {
293
+ /**
294
+ * Document ID
295
+ */
92
296
  id: string;
297
+ /**
298
+ * Collection ID
299
+ */
93
300
  collection: string;
301
+ /**
302
+ * Document name
303
+ */
94
304
  name: string;
305
+ /**
306
+ * Document description
307
+ */
95
308
  description: string;
309
+ /**
310
+ * List of document properties
311
+ */
96
312
  properties?: DocumentProperty[];
313
+ /**
314
+ * Document loading status or error message
315
+ */
97
316
  status: DocumentStatus | string;
317
+ /**
318
+ * Creation Date
319
+ */
98
320
  createdAt: string;
321
+ /**
322
+ * Updating Date
323
+ */
99
324
  updatedAt: string;
325
+ /**
326
+ * Number of passages in the document.
327
+ */
100
328
  countPassages?: number;
329
+ /**
330
+ * The URL of the source this document is downloaded from if provided.
331
+ */
101
332
  sourceUrl?: string;
102
333
  };
334
+ /**
335
+ * Collection represents a collection object.
336
+ */
103
337
  export type Collection = {
338
+ /**
339
+ * Collection ID
340
+ */
104
341
  id: string;
342
+ /**
343
+ * Account ID
344
+ */
105
345
  accountId: string;
346
+ /**
347
+ * Collection name
348
+ * Can start only with a letter.
349
+ * Minimum length: 5, Maximum length: 100
350
+ */
106
351
  name: string;
352
+ /**
353
+ * Collection description (Optional)
354
+ * Minimum length: 3, Maximum length: 500
355
+ */
107
356
  description?: string;
357
+ /**
358
+ * Collection backup/restore status
359
+ */
108
360
  status?: BackupStatus | string;
361
+ /**
362
+ * A collection thumbnail image URL (Optional)
363
+ * Minimum length: 3, Maximum length: 2048
364
+ */
109
365
  imageUrl?: string;
366
+ /**
367
+ * A summarization instruction used to generate a correct answer (Optional)
368
+ * Maximum length: 1000
369
+ */
110
370
  answerInstruction?: string | null;
371
+ /**
372
+ * A summarization instruction used to generate a correct search query (Optional)
373
+ * Maximum length: 1000
374
+ */
111
375
  questionInstruction?: string | null;
376
+ /**
377
+ * A summarization instruction used to generate a correct first message (Optional)
378
+ * Maximum length: 1000
379
+ */
112
380
  greetingInstruction?: string | null;
381
+ /**
382
+ * Custom properties (Optional)
383
+ * Type: Array<Property>
384
+ */
113
385
  properties?: Property[];
386
+ /**
387
+ * Creation Date
388
+ */
114
389
  createdAt: string | Date;
390
+ /**
391
+ * Updating Date
392
+ */
115
393
  updatedAt: string | Date;
394
+ /**
395
+ * What sampling temperature to use.
396
+ * Minimum value: 0, Maximum value: 2
397
+ */
116
398
  temperature?: number;
399
+ /**
400
+ * Max output length from the LLM
401
+ * Minimum value: 128, Maximum value: 2048
402
+ */
117
403
  maxTokens?: number;
404
+ /**
405
+ * Max number of passages returned in result
406
+ * Minimum value: 1
407
+ */
118
408
  limit?: number;
409
+ /**
410
+ * Hybrid search
411
+ * Minimum value: 0
412
+ * Maximum value: 1
413
+ */
119
414
  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
+ */
120
419
  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
+ */
121
424
  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
+ */
122
429
  maxDistance?: number;
430
+ /**
431
+ * @deprecated Use `promptModel` instead.
432
+ */
123
433
  modelName?: string;
434
+ /**
435
+ * Ai token name from account settings (Optional)
436
+ */
124
437
  promptTokenName?: string;
438
+ /**
439
+ * Prompt provider.
440
+ */
125
441
  promptProvider?: string;
442
+ /**
443
+ * Large language model name.
444
+ */
126
445
  promptModel?: string;
446
+ /**
447
+ * Ai token name from account settings (Optional)
448
+ */
127
449
  embeddingTokenName?: string;
450
+ /**
451
+ * Embedding provider.
452
+ */
128
453
  embeddingProvider?: string;
454
+ /**
455
+ * Embedding model name.
456
+ */
129
457
  embeddingModel?: string;
458
+ /**
459
+ * Number of passages in the collection.
460
+ */
130
461
  countPassages?: number;
462
+ /**
463
+ * Number of documents in the collection.
464
+ */
131
465
  countDocs?: number;
466
+ /**
467
+ * Collection type, it will be used for specific document loading post-processing. (Optional)
468
+ */
132
469
  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
+ */
133
474
  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
+ */
134
479
  topK?: number;
135
480
  };
481
+ /**
482
+ * SearchResult represents a document found as a result of a search query.
483
+ */
136
484
  export type SearchResult = {
485
+ /**
486
+ * Found passage ID
487
+ */
137
488
  id: string;
489
+ /**
490
+ * Cosine distance between search query and result.
491
+ */
138
492
  distance: string;
493
+ /**
494
+ * Found passage content.
495
+ */
139
496
  content: string;
497
+ /**
498
+ * SourceUrl
499
+ */
140
500
  sourceUrl: string;
501
+ /**
502
+ * Found passage metadata.
503
+ */
141
504
  loaderMetadata: Record<string, unknown>;
505
+ /**
506
+ * Found passage metadata.
507
+ */
142
508
  document: {
143
509
  id: string;
144
510
  name: string;
145
511
  };
512
+ /**
513
+ * Used properties in search.
514
+ */
146
515
  select: string[];
147
516
  };
517
+ /**
518
+ * AskResults represents the response from an ask question query.
519
+ */
148
520
  export type AskResults = {
521
+ /**
522
+ * Generated answer from the chat completion.
523
+ */
149
524
  result: CompletionRequestMessage;
525
+ /**
526
+ * Search result for the input question.
527
+ */
150
528
  searchResult: SearchResult;
529
+ /**
530
+ * Used properties in search.
531
+ */
151
532
  select: string[];
152
533
  };
534
+ /**
535
+ * UpdateDocument parameters
536
+ */
153
537
  export type UpdateDocument = {
538
+ /**
539
+ * Document name
540
+ */
154
541
  name?: string;
542
+ /**
543
+ * Document description
544
+ */
155
545
  description?: string;
546
+ /**
547
+ * Document status or loading error message
548
+ */
156
549
  status?: DocumentStatus | string;
550
+ /**
551
+ * Custom properties for document.
552
+ * Note that these properties should be listed in document properties
553
+ */
157
554
  properties?: DocumentProperty[];
158
555
  };
556
+ /**
557
+ * CreateCollection parameters
558
+ */
159
559
  export type CreateCollection = UpdateCollection & {
560
+ /**
561
+ * Custom properties (Optional)
562
+ * Type: Array<Property>
563
+ */
160
564
  properties?: Property[];
565
+ /**
566
+ * Collection type, it will be used for specific document loading post-processing. (Optional)
567
+ */
161
568
  type?: CollectionType;
569
+ /**
570
+ * Prompt provider (Optional)
571
+ * Maximum length: 64
572
+ */
162
573
  embeddingProvider?: string;
574
+ /**
575
+ * Prompt provider (Optional)
576
+ * Maximum length: 64
577
+ */
163
578
  embeddingModel?: string;
164
579
  };
580
+ /**
581
+ * UpdateCollection parameters
582
+ */
165
583
  export type UpdateCollection = {
584
+ /**
585
+ * Collection name
586
+ * Can start only with a letter.
587
+ * Minimum length: 5, Maximum length: 100
588
+ */
166
589
  name?: string;
590
+ /**
591
+ * Collection description (Optional)
592
+ * Minimum length: 3, Maximum length: 500
593
+ */
167
594
  description?: string;
595
+ /**
596
+ * A collection thumbnail image URL (Optional)
597
+ * Minimum length: 3, Maximum length: 2048
598
+ */
168
599
  imageUrl?: string;
600
+ /**
601
+ * A summarization instruction used to generate a correct answer (Optional)
602
+ * Maximum length: 1000
603
+ */
169
604
  answerInstruction?: string;
605
+ /**
606
+ * A summarization instruction used to generate a correct search query (Optional)
607
+ * Maximum length: 1000
608
+ */
170
609
  questionInstruction?: string;
610
+ /**
611
+ * A summarization instruction used to generate a correct first message (Optional)
612
+ * Maximum length: 1000
613
+ */
171
614
  greetingInstruction?: string;
615
+ /**
616
+ * What sampling temperature to use (Optional)
617
+ * Default value: 1, Range: [0, 2]
618
+ */
172
619
  temperature?: number;
620
+ /**
621
+ * Max output length from the LLM (Optional)
622
+ * Range: [128, 2048]
623
+ */
173
624
  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
+ */
174
629
  frequencyPenalty?: number;
630
+ /**
631
+ * Penalize new tokens based on whether they appear in the text so far (Optional)
632
+ * Range: [-2, 2]
633
+ */
175
634
  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
+ */
176
640
  maxDistance?: number;
641
+ /**
642
+ * Large language model name (Optional)
643
+ * Maximum length: 64
644
+ * @deprecated Use `promptModel` instead.
645
+ */
177
646
  modelName?: string;
647
+ /**
648
+ * Ai token name from account settings (Optional)
649
+ */
178
650
  promptTokenName?: string;
651
+ /**
652
+ * Prompt provider (Optional)
653
+ * Maximum length: 64
654
+ */
179
655
  promptProvider?: string;
656
+ /**
657
+ * Large language model name (Optional)
658
+ * Maximum length: 64
659
+ */
180
660
  promptModel?: string;
661
+ /**
662
+ * Ai token name from account settings (Optional)
663
+ */
181
664
  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
+ */
182
669
  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
+ */
183
674
  topK?: number;
184
675
  };
676
+ /**
677
+ * Find parameters
678
+ */
185
679
  export type Find = Partial<PaginationOptions> & Partial<OrderOptions> & {
680
+ /**
681
+ * Search query
682
+ */
186
683
  query?: string;
684
+ /**
685
+ * Search mode: bm25 for full-text search and vector for vector similarity search.
686
+ */
187
687
  mode?: SearchMode;
188
688
  };
689
+ /**
690
+ * Find passages parameters
691
+ */
189
692
  export type FindPassages = Find & {
693
+ /**
694
+ * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
695
+ */
190
696
  where?: Record<string, unknown>;
191
697
  };
192
698
  type TypedPassageProperties = {
699
+ /**
700
+ * Content of the default collection passage
701
+ */
193
702
  content: string;
194
703
  } | {
704
+ /**
705
+ * question of the QnA collection passage
706
+ */
195
707
  question: string;
708
+ /**
709
+ * answer of the QnA collection passage
710
+ */
196
711
  answer: string;
197
712
  } & {
713
+ /**
714
+ * Custom vector for search, in this case embeddingProvider and embeddingModel are ignored
715
+ */
198
716
  vector?: number[];
199
717
  };
718
+ /**
719
+ * Passage creation parameters. The properties other than listed are considered custom properties.
720
+ */
200
721
  export type CreatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
722
+ /**
723
+ * Document ID
724
+ */
201
725
  documentId: string;
726
+ /**
727
+ * Custom loader metadata. Non filterable property
728
+ */
202
729
  loaderMetadata?: Record<string, unknown>;
203
730
  } & T;
731
+ /**
732
+ * Passage represents a passage object.
733
+ */
204
734
  export type Passage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
735
+ /**
736
+ * Passage ID
737
+ */
205
738
  id: string;
739
+ /**
740
+ * Creation Date
741
+ */
206
742
  createdAt: string;
743
+ /**
744
+ * Updating Date
745
+ */
207
746
  updatedAt: string;
208
747
  } & T;
748
+ /**
749
+ * Update passage parameters
750
+ */
209
751
  export type UpdatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & T;
752
+ /**
753
+ * Represents a deleted passage.
754
+ */
210
755
  export type DeletedPassage = {
756
+ /**
757
+ * The ID of the deleted passage.
758
+ */
211
759
  id: string;
212
760
  };
761
+ /**
762
+ * Represents a list if ids of deleted passages.
763
+ */
213
764
  export type RemoveManyPassagesResult = {
765
+ /**
766
+ * The IDs of the deleted passages.
767
+ */
214
768
  removedIds: string[];
215
769
  };
770
+ /**
771
+ * Backup parameters
772
+ */
216
773
  export type Backup = {
774
+ /**
775
+ * Prefix in Files the backup files to put into
776
+ * Minimum length: 3, Maximum length: 500
777
+ */
217
778
  prefix: string;
218
779
  };
780
+ /**
781
+ * Restore parameters
782
+ */
219
783
  export type Restore = {
784
+ /**
785
+ * Prefix in Files the backup files to put into
786
+ * Minimum length: 3, Maximum length: 500
787
+ */
220
788
  key: string;
789
+ /**
790
+ * Does file has public privacy in files
791
+ */
221
792
  isPublic: boolean;
222
793
  };
794
+ /**
795
+ * Result of removing multiple documents
796
+ */
223
797
  export type RemoveManyDocumentsResult = {
798
+ /**
799
+ * IDs of removed documents
800
+ */
224
801
  removedDocumentsIds: string[];
802
+ /**
803
+ * IDs of removed passages
804
+ */
225
805
  remov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AAM,CAAC;QACX,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;KAC7B,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAIhC,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;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.22.1",
3
+ "version": "1.23.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.42.5"
24
+ "@or-sdk/base": "^0.43.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "concurrently": "9.0.1",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "c6887f491665f09fe3588ef5384d0d3f2d42412d"
34
+ "gitHead": "ce62679c119c54ef41fd0d8f7084c563c3b21b24"
35
35
  }
@@ -4,6 +4,7 @@
4
4
  "outDir": "./dist/types",
5
5
  "declaration": true,
6
6
  "declarationMap": true,
7
- "emitDeclarationOnly": true
7
+ "emitDeclarationOnly": true,
8
+ "removeComments": false
8
9
  }
9
- }
10
+ }