> Discover all available pages from the documentation index: https://mastra.zisheng.pro/fr/llms.txt # RAG Le package RAG a renommé des paramètres de découpage et restreint leurs types. ## Modifié ### `keepSeparator` to `separatorPosition` Le paramètre `keepSeparator` a été renommé en `separatorPosition` avec un type simplifié. L’ancien paramètre avait le type déroutant `boolean | 'start' | 'end'`, dans lequel `true` était un alias implicite de `'start'`. Le nouveau paramètre utilise les valeurs explicites `'start' | 'end'` et l’omission du paramètre supprime le séparateur. Pour migrer, remplacez `keepSeparator` par `separatorPosition` en utilisant le mappage ci-dessous : | Ancienne valeur | Nouvelle valeur | | ------------------------ | ------------------------------ | | `keepSeparator: true` | `separatorPosition: 'start'` | | `keepSeparator: 'start'` | `separatorPosition: 'start'` | | `keepSeparator: 'end'` | `separatorPosition: 'end'` | | `keepSeparator: false` | Supprimez le paramètre | | Paramètre omis | Aucune modification nécessaire | ```diff await doc.chunk({ strategy: 'character', separator: '.', - keepSeparator: true, + separatorPosition: 'start', }); await doc.chunk({ strategy: 'character', separator: '.', - keepSeparator: 'end', + separatorPosition: 'end', }); await doc.chunk({ strategy: 'character', separator: '.', - keepSeparator: false, + // Parameter removed - separator is discarded by default }); ```