@or-sdk/lookup 1.23.1 → 1.24.0-beta.4074.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.
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AA6SA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAKD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAKD,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAuTA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAKD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAKD,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AA6SA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAKD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAKD,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAuTA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAKD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAKD,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
@@ -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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MAAM,GAAE,YAAiB,EACzB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAW5B;;;;;;;OAOG;IACG,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;IAW5B;;;;;;OAMG;IACG,cAAc,CAClB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,WAAgB,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,279 @@ 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;
251
+ /**
252
+ * Token name for the prompt
253
+ */
254
+ promptTokenName?: string;
255
+ /**
256
+ * Prompt guardrail identifier.
257
+ */
258
+ promptGuardrailIdentifier?: string;
68
259
  };
260
+ /**
261
+ * DocumentStatus represents the loading status of a document.
262
+ */
69
263
  export declare enum DocumentStatus {
70
264
  NEW = "NEW",
71
265
  LOADING = "LOADING",
72
266
  READY = "READY",
73
267
  ERROR = "ERROR"
74
268
  }
269
+ /**
270
+ * BackupStatus represents the backup status of a collection.
271
+ */
75
272
  export declare enum BackupStatus {
76
273
  BACKUP = "BACKUP",
77
274
  RESTORE = "RESTORE",
78
275
  READY = "READY",
79
276
  ERROR = "ERROR"
80
277
  }
278
+ /**
279
+ * CollectionType represents the type of a collection.
280
+ */
81
281
  export declare enum CollectionType {
82
282
  DEFAULT = "DEFAULT",
83
283
  QNA_V1 = "QNA_V1",
@@ -85,143 +285,547 @@ export declare enum CollectionType {
85
285
  CUSTOM = "CUSTOM"
86
286
  }
87
287
  export type DocumentProperty = {
288
+ /**
289
+ * Property name. e.g. `nameOfTheAuthor`
290
+ */
88
291
  name: string;
292
+ /**
293
+ * Property value
294
+ */
89
295
  value?: unknown;
90
296
  };
297
+ /**
298
+ * Document represents a document object.
299
+ */
91
300
  export type Document = {
301
+ /**
302
+ * Document ID
303
+ */
92
304
  id: string;
305
+ /**
306
+ * Collection ID
307
+ */
93
308
  collection: string;
309
+ /**
310
+ * Document name
311
+ */
94
312
  name: string;
313
+ /**
314
+ * Document description
315
+ */
95
316
  description: string;
317
+ /**
318
+ * List of document properties
319
+ */
96
320
  properties?: DocumentProperty[];
321
+ /**
322
+ * Document loading status or error message
323
+ */
97
324
  status: DocumentStatus | string;
325
+ /**
326
+ * Creation Date
327
+ */
98
328
  createdAt: string;
329
+ /**
330
+ * Updating Date
331
+ */
99
332
  updatedAt: string;
333
+ /**
334
+ * Number of passages in the document.
335
+ */
100
336
  countPassages?: number;
337
+ /**
338
+ * The URL of the source this document is downloaded from if provided.
339
+ */
101
340
  sourceUrl?: string;
102
341
  };
342
+ /**
343
+ * Collection represents a collection object.
344
+ */
103
345
  export type Collection = {
346
+ /**
347
+ * Collection ID
348
+ */
104
349
  id: string;
350
+ /**
351
+ * Account ID
352
+ */
105
353
  accountId: string;
354
+ /**
355
+ * Collection name
356
+ * Can start only with a letter.
357
+ * Minimum length: 5, Maximum length: 100
358
+ */
106
359
  name: string;
360
+ /**
361
+ * Collection description (Optional)
362
+ * Minimum length: 3, Maximum length: 500
363
+ */
107
364
  description?: string;
365
+ /**
366
+ * Collection backup/restore status
367
+ */
108
368
  status?: BackupStatus | string;
369
+ /**
370
+ * A collection thumbnail image URL (Optional)
371
+ * Minimum length: 3, Maximum length: 2048
372
+ */
109
373
  imageUrl?: string;
374
+ /**
375
+ * A summarization instruction used to generate a correct answer (Optional)
376
+ * Maximum length: 1000
377
+ */
110
378
  answerInstruction?: string | null;
379
+ /**
380
+ * A summarization instruction used to generate a correct search query (Optional)
381
+ * Maximum length: 1000
382
+ */
111
383
  questionInstruction?: string | null;
384
+ /**
385
+ * A summarization instruction used to generate a correct first message (Optional)
386
+ * Maximum length: 1000
387
+ */
112
388
  greetingInstruction?: string | null;
389
+ /**
390
+ * Custom properties (Optional)
391
+ * Type: Array<Property>
392
+ */
113
393
  properties?: Property[];
394
+ /**
395
+ * Creation Date
396
+ */
114
397
  createdAt: string | Date;
398
+ /**
399
+ * Updating Date
400
+ */
115
401
  updatedAt: string | Date;
402
+ /**
403
+ * What sampling temperature to use.
404
+ * Minimum value: 0, Maximum value: 2
405
+ */
116
406
  temperature?: number;
407
+ /**
408
+ * Max output length from the LLM
409
+ * Minimum value: 128, Maximum value: 2048
410
+ */
117
411
  maxTokens?: number;
412
+ /**
413
+ * Max number of passages returned in result
414
+ * Minimum value: 1
415
+ */
118
416
  limit?: number;
417
+ /**
418
+ * Hybrid search
419
+ * Minimum value: 0
420
+ * Maximum value: 1
421
+ */
119
422
  alpha?: number;
423
+ /**
424
+ * Positive values penalize new tokens based on their existing frequency in the text so far.
425
+ * Minimum value: -2, Maximum value: 2
426
+ */
120
427
  frequencyPenalty?: number;
428
+ /**
429
+ * Penalize new tokens based on whether they appear in the text so far.
430
+ * Minimum value: -2, Maximum value: 2
431
+ */
121
432
  presencePenalty?: number;
433
+ /**
434
+ * Filter out passages that are further then maxDistance from the question or context by cosine metric.
435
+ * Minimum value: 0, Maximum value: 1
436
+ */
122
437
  maxDistance?: number;
438
+ /**
439
+ * @deprecated Use `promptModel` instead.
440
+ */
123
441
  modelName?: string;
442
+ /**
443
+ * Ai token name from account settings (Optional)
444
+ */
124
445
  promptTokenName?: string;
446
+ /**
447
+ * Prompt provider.
448
+ */
125
449
  promptProvider?: string;
450
+ /**
451
+ * Large language model name.
452
+ */
126
453
  promptModel?: string;
454
+ /**
455
+ * Prompt guardrail identifier.
456
+ */
457
+ promptGuardrailIdentifier?: string;
458
+ /**
459
+ * Ai token name from account settings (Optional)
460
+ */
127
461
  embeddingTokenName?: string;
462
+ /**
463
+ * Embedding provider.
464
+ */
128
465
  embeddingProvider?: string;
466
+ /**
467
+ * Embedding model name.
468
+ */
129
469
  embeddingModel?: string;
470
+ /**
471
+ * Embedding guardrail identifier.
472
+ */
473
+ embeddingGuardrailIdentifier?: string;
474
+ /**
475
+ * Number of passages in the collection.
476
+ */
130
477
  countPassages?: number;
478
+ /**
479
+ * Number of documents in the collection.
480
+ */
131
481
  countDocs?: number;
482
+ /**
483
+ * Collection type, it will be used for specific document loading post-processing. (Optional)
484
+ */
132
485
  type?: CollectionType;
486
+ /**
487
+ * Top-p (nucleus): The cumulative probability cutoff for token selection.
488
+ * Lower values mean sampling from a smaller, more top-weighted nucleus.
489
+ */
133
490
  topP?: number;
491
+ /**
492
+ * Top-k: Sample from the k most likely next tokens at each step.
493
+ * Lower k focuses on higher probability tokens.
494
+ */
134
495
  topK?: number;
135
496
  };
497
+ /**
498
+ * SearchResult represents a document found as a result of a search query.
499
+ */
136
500
  export type SearchResult = {
501
+ /**
502
+ * Found passage ID
503
+ */
137
504
  id: string;
505
+ /**
506
+ * Cosine distance between search query and result.
507
+ */
138
508
  distance: string;
509
+ /**
510
+ * Found passage content.
511
+ */
139
512
  content: string;
513
+ /**
514
+ * SourceUrl
515
+ */
140
516
  sourceUrl: string;
517
+ /**
518
+ * Found passage metadata.
519
+ */
141
520
  loaderMetadata: Record<string, unknown>;
521
+ /**
522
+ * Found passage metadata.
523
+ */
142
524
  document: {
143
525
  id: string;
144
526
  name: string;
145
527
  };
528
+ /**
529
+ * Used properties in search.
530
+ */
146
531
  select: string[];
147
532
  };
533
+ /**
534
+ * AskResults represents the response from an ask question query.
535
+ */
148
536
  export type AskResults = {
537
+ /**
538
+ * Generated answer from the chat completion.
539
+ */
149
540
  result: CompletionRequestMessage;
541
+ /**
542
+ * Search result for the input question.
543
+ */
150
544
  searchResult: SearchResult;
545
+ /**
546
+ * Used properties in search.
547
+ */
151
548
  select: string[];
152
549
  };
550
+ /**
551
+ * UpdateDocument parameters
552
+ */
153
553
  export type UpdateDocument = {
554
+ /**
555
+ * Document name
556
+ */
154
557
  name?: string;
558
+ /**
559
+ * Document description
560
+ */
155
561
  description?: string;
562
+ /**
563
+ * Document status or loading error message
564
+ */
156
565
  status?: DocumentStatus | string;
566
+ /**
567
+ * Custom properties for document.
568
+ * Note that these properties should be listed in document properties
569
+ */
157
570
  properties?: DocumentProperty[];
158
571
  };
572
+ /**
573
+ * CreateCollection parameters
574
+ */
159
575
  export type CreateCollection = UpdateCollection & {
576
+ /**
577
+ * Custom properties (Optional)
578
+ * Type: Array<Property>
579
+ */
160
580
  properties?: Property[];
581
+ /**
582
+ * Collection type, it will be used for specific document loading post-processing. (Optional)
583
+ */
161
584
  type?: CollectionType;
585
+ /**
586
+ * Prompt provider (Optional)
587
+ * Maximum length: 64
588
+ */
162
589
  embeddingProvider?: string;
590
+ /**
591
+ * Prompt provider (Optional)
592
+ * Maximum length: 64
593
+ */
163
594
  embeddingModel?: string;
164
595
  };
596
+ /**
597
+ * UpdateCollection parameters
598
+ */
165
599
  export type UpdateCollection = {
600
+ /**
601
+ * Collection name
602
+ * Can start only with a letter.
603
+ * Minimum length: 5, Maximum length: 100
604
+ */
166
605
  name?: string;
606
+ /**
607
+ * Collection description (Optional)
608
+ * Minimum length: 3, Maximum length: 500
609
+ */
167
610
  description?: string;
611
+ /**
612
+ * A collection thumbnail image URL (Optional)
613
+ * Minimum length: 3, Maximum length: 2048
614
+ */
168
615
  imageUrl?: string;
616
+ /**
617
+ * A summarization instruction used to generate a correct answer (Optional)
618
+ * Maximum length: 1000
619
+ */
169
620
  answerInstruction?: string;
621
+ /**
622
+ * A summarization instruction used to generate a correct search query (Optional)
623
+ * Maximum length: 1000
624
+ */
170
625
  questionInstruction?: string;
626
+ /**
627
+ * A summarization instruction used to generate a correct first message (Optional)
628
+ * Maximum length: 1000
629
+ */
171
630
  greetingInstruction?: string;
631
+ /**
632
+ * What sampling temperature to use (Optional)
633
+ * Default value: 1, Range: [0, 2]
634
+ */
172
635
  temperature?: number;
636
+ /**
637
+ * Max output length from the LLM (Optional)
638
+ * Range: [128, 2048]
639
+ */
173
640
  maxTokens?: number;
641
+ /**
642
+ * Positive values penalize new tokens based on their existing frequency in the text so far (Optional)
643
+ * Range: [-2, 2]
644
+ */
174
645
  frequencyPenalty?: number;
646
+ /**
647
+ * Penalize new tokens based on whether they appear in the text so far (Optional)
648
+ * Range: [-2, 2]
649
+ */
175
650
  presencePenalty?: number;
651
+ /**
652
+ * Filter out passages that are further then maxDistance from the question or context by
653
+ * cosine metric (Optional)
654
+ * Range: [0, 1]
655
+ */
176
656
  maxDistance?: number;
657
+ /**
658
+ * Large language model name (Optional)
659
+ * Maximum length: 64
660
+ * @deprecated Use `promptModel` instead.
661
+ */
177
662
  modelName?: string;
663
+ /**
664
+ * Ai token name from account settings (Optional)
665
+ */
178
666
  promptTokenName?: string;
667
+ /**
668
+ * Prompt guardrail identifier.
669
+ */
670
+ promptGuardrailIdentifier?: string;
671
+ /**
672
+ * Prompt provider (Optional)
673
+ * Maximum length: 64
674
+ */
179
675
  promptProvider?: string;
676
+ /**
677
+ * Large language model name (Optional)
678
+ * Maximum length: 64
679
+ */
180
680
  promptModel?: string;
681
+ /**
682
+ * Ai token name from account settings (Optional)
683
+ */
181
684
  embeddingTokenName?: string;
685
+ /**
686
+ * Embedding guardrail identifier.
687
+ */
688
+ embeddingGuardrailIdentifier?: string;
689
+ /**
690
+ * Top-p (nucleus): The cumulative probability cutoff for token selection.
691
+ * Lower values mean sampling from a smaller, more top-weighted nucleus.
692
+ */
182
693
  topP?: number;
694
+ /**
695
+ * Top-k: Sample from the k most likely next tokens at each step.
696
+ * Lower k focuses on higher probability tokens.
697
+ */
183
698
  topK?: number;
184
699
  };
700
+ /**
701
+ * Find parameters
702
+ */
185
703
  export type Find = Partial<PaginationOptions> & Partial<OrderOptions> & {
704
+ /**
705
+ * Search query
706
+ */
186
707
  query?: string;
708
+ /**
709
+ * Search mode: bm25 for full-text search and vector for vector similarity search.
710
+ */
187
711
  mode?: SearchMode;
188
712
  };
713
+ /**
714
+ * Find passages parameters
715
+ */
189
716
  export type FindPassages = Find & {
717
+ /**
718
+ * Weaviate where filter. See https://weaviate.io/developers/weaviate/api/graphql/filters
719
+ */
190
720
  where?: Record<string, unknown>;
191
721
  };
192
722
  type TypedPassageProperties = {
723
+ /**
724
+ * Content of the default collection passage
725
+ */
193
726
  content: string;
194
727
  } | {
728
+ /**
729
+ * question of the QnA collection passage
730
+ */
195
731
  question: string;
732
+ /**
733
+ * answer of the QnA collection passage
734
+ */
196
735
  answer: string;
197
736
  } & {
737
+ /**
738
+ * Custom vector for search, in this case embeddingProvider and embeddingModel are ignored
739
+ */
198
740
  vector?: number[];
199
741
  };
742
+ /**
743
+ * Passage creation parameters. The properties other than listed are considered custom properties.
744
+ */
200
745
  export type CreatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
746
+ /**
747
+ * Document ID
748
+ */
201
749
  documentId: string;
750
+ /**
751
+ * Custom loader metadata. Non filterable property
752
+ */
202
753
  loaderMetadata?: Record<string, unknown>;
203
754
  } & T;
755
+ /**
756
+ * Passage represents a passage object.
757
+ */
204
758
  export type Passage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & {
759
+ /**
760
+ * Passage ID
761
+ */
205
762
  id: string;
763
+ /**
764
+ * Creation Date
765
+ */
206
766
  createdAt: string;
767
+ /**
768
+ * Updating Date
769
+ */
207
770
  updatedAt: string;
208
771
  } & T;
772
+ /**
773
+ * Update passage parameters
774
+ */
209
775
  export type UpdatePassage<T extends Record<string, unknown> = Record<string, unknown>> = TypedPassageProperties & T;
776
+ /**
777
+ * Represents a deleted passage.
778
+ */
210
779
  export type DeletedPassage = {
780
+ /**
781
+ * The ID of the deleted passage.
782
+ */
211
783
  id: string;
212
784
  };
785
+ /**
786
+ * Represents a list if ids of deleted passages.
787
+ */
213
788
  export type RemoveManyPassagesResult = {
789
+ /**
790
+ * The IDs of the deleted passages.
791
+ */
214
792
  removedIds: string[];
215
793
  };
794
+ /**
795
+ * Backup parameters
796
+ */
216
797
  export type Backup = {
798
+ /**
799
+ * Prefix in Files the backup files to put into
800
+ * Minimum length: 3, Maximum length: 500
801
+ */
217
802
  prefix: string;
218
803
  };
804
+ /**
805
+ * Restore parameters
806
+ */
219
807
  export type Restore = {
808
+ /**
809
+ * Prefix in Files the backup files to put into
810
+ * Minimum length: 3, Maximum length: 500
811
+ */
220
812
  key: string;
813
+ /**
814
+ * Does file has public privacy in files
815
+ */
221
816
  isPublic: boolean;
222
817
  };
818
+ /**
819
+ * Result of removing multiple documents
820
+ */
223
821
  export type RemoveManyDocumentsResult = {
822
+ /**
823
+ * IDs of removed documents
824
+ */
224
825
  removedDocumentsIds: string[];
826
+ /**
827
+ * IDs of removed passages
828
+ */
225
829
  removedPassagesIds: string[];
226
830
  };
227
831
  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,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,Y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,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.23.1",
3
+ "version": "1.24.0-beta.4074.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -30,6 +30,5 @@
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
33
- },
34
- "gitHead": "7d3b49250a670964dfe9e8e50e95417761c5473f"
33
+ }
35
34
  }
package/src/types.ts CHANGED
@@ -294,6 +294,16 @@ export type Ask = {
294
294
  * Maximum length: 64
295
295
  */
296
296
  promptModel?: string;
297
+
298
+ /**
299
+ * Token name for the prompt
300
+ */
301
+ promptTokenName?: string;
302
+
303
+ /**
304
+ * Prompt guardrail identifier.
305
+ */
306
+ promptGuardrailIdentifier?: string;
297
307
  };
298
308
 
299
309
  /**
@@ -528,6 +538,11 @@ export type Collection = {
528
538
  */
529
539
  promptModel?: string;
530
540
 
541
+ /**
542
+ * Prompt guardrail identifier.
543
+ */
544
+ promptGuardrailIdentifier?: string;
545
+
531
546
  /**
532
547
  * Ai token name from account settings (Optional)
533
548
  */
@@ -543,6 +558,11 @@ export type Collection = {
543
558
  */
544
559
  embeddingModel?: string;
545
560
 
561
+ /**
562
+ * Embedding guardrail identifier.
563
+ */
564
+ embeddingGuardrailIdentifier?: string;
565
+
546
566
  /**
547
567
  * Number of passages in the collection.
548
568
  */
@@ -773,6 +793,12 @@ export type UpdateCollection = {
773
793
  * Ai token name from account settings (Optional)
774
794
  */
775
795
  promptTokenName?: string;
796
+
797
+ /**
798
+ * Prompt guardrail identifier.
799
+ */
800
+ promptGuardrailIdentifier?: string;
801
+
776
802
  /**
777
803
  * Prompt provider (Optional)
778
804
  * Maximum length: 64
@@ -790,6 +816,11 @@ export type UpdateCollection = {
790
816
  */
791
817
  embeddingTokenName?: string;
792
818
 
819
+ /**
820
+ * Embedding guardrail identifier.
821
+ */
822
+ embeddingGuardrailIdentifier?: string;
823
+
793
824
  /**
794
825
  * Top-p (nucleus): The cumulative probability cutoff for token selection.
795
826
  * Lower values mean sampling from a smaller, more top-weighted nucleus.