@coveo/platform-client 40.10.0 → 40.11.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.
@@ -194,9 +194,60 @@ export interface BuildingStatsSS {
194
194
  headerCount: number;
195
195
  meanSnippetLength: number;
196
196
  }
197
+ /**
198
+ * Snippet details per document
199
+ */
200
+ export interface SnippetsPerDocument {
201
+ min: number;
202
+ max: number;
203
+ mean: number;
204
+ median: number;
205
+ p95: number;
206
+ }
207
+ export interface StatsSmartSnippets {
208
+ /**
209
+ * Total number of valid documents
210
+ */
211
+ documentCount: number;
212
+ /**
213
+ * Number of documents with duplicated ID
214
+ */
215
+ documentWithDuplicatedIdCount: number;
216
+ /**
217
+ * Number of invalid HTML documents
218
+ */
219
+ invalidHtmlDocumentCount: number;
220
+ /**
221
+ * Number of documents with snippets
222
+ */
223
+ documentWithSnippetCount: number;
224
+ /**
225
+ * Number of documents without permanent ID
226
+ */
227
+ documentWithoutIdCount: number;
228
+ /**
229
+ * Ratio of documents with at least 1 snippet / total valid documents
230
+ */
231
+ documentWithSnippetRatio: number;
232
+ /**
233
+ * Number of available snippets
234
+ */
235
+ snippetCount: number;
236
+ /**
237
+ * Snippets stats per document
238
+ */
239
+ snippetsPerDocument: SnippetsPerDocument;
240
+ }
241
+ export interface PreparationStatsSS extends StatsSmartSnippets {
242
+ /**
243
+ * Additional statistic per source
244
+ */
245
+ statsPerSource: Record<string, StatsSmartSnippets>;
246
+ }
197
247
  export interface ModelInformationSS {
198
248
  metaInfo: MetaInfoSS;
199
249
  modelBuildingStats: BuildingStatsSS;
250
+ preparationStats: PreparationStatsSS;
200
251
  }
201
252
  export interface DatasetFieldDetails {
202
253
  numSamples: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "40.10.0",
3
+ "version": "40.11.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {