@absolutejs/absolute 0.19.0-beta.624 → 0.19.0-beta.625

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/dist/ai/index.js CHANGED
@@ -15245,6 +15245,7 @@ var createRAGMediaFileExtractor = (transcriber) => ({
15245
15245
  }).map(normalizeMediaSegment));
15246
15246
  const segmentGroups = groupTranscriptSegments(rawSegments);
15247
15247
  const source = input.source ?? input.path ?? input.name ?? `${slugify(input.title ?? DEFAULT_BINARY_NAME)}.media.txt`;
15248
+ const baseDocumentId = slugify(source || input.title || input.name || input.path || DEFAULT_BINARY_NAME);
15248
15249
  const segmentCount = rawSegments.length;
15249
15250
  const mediaDurationMs = rawSegments.reduce((max, segment) => {
15250
15251
  const endMs = typeof segment.endMs === "number" ? segment.endMs : undefined;
@@ -15279,6 +15280,7 @@ var createRAGMediaFileExtractor = (transcriber) => ({
15279
15280
  chunking: input.chunking,
15280
15281
  contentType: input.contentType,
15281
15282
  format: "text",
15283
+ id: `${baseDocumentId}-segment-${String(index + 1).padStart(2, "0")}`,
15282
15284
  metadata: {
15283
15285
  ...input.metadata ?? {},
15284
15286
  ...result.metadata ?? {},
@@ -15317,6 +15319,7 @@ ${groupText}`),
15317
15319
  chunking: input.chunking,
15318
15320
  contentType: input.contentType,
15319
15321
  format: "text",
15322
+ id: baseDocumentId,
15320
15323
  metadata: {
15321
15324
  ...input.metadata ?? {},
15322
15325
  ...result.metadata ?? {},
@@ -31483,5 +31486,5 @@ export {
31483
31486
  addRAGEvaluationSuiteCase
31484
31487
  };
31485
31488
 
31486
- //# debugId=47622F64ABA711E264756E2164756E21
31489
+ //# debugId=72863DACF2C3B69B64756E2164756E21
31487
31490
  //# sourceMappingURL=index.js.map