@@ -34,7 +34,7 @@ interface ProcessingOptions {
3434 */
3535async function processDocs ( options : ProcessingOptions = { } ) {
3636 const config = {
37- docsPath : options . docsPath || path . join ( process . cwd ( ) , '../../apps/docs/content/docs' ) ,
37+ docsPath : options . docsPath || path . join ( process . cwd ( ) , '../../apps/docs/content/docs/en ' ) ,
3838 baseUrl : options . baseUrl || ( isDev ? 'http://localhost:4000' : 'https://docs.sim.ai' ) ,
3939 chunkSize : options . chunkSize || 1024 ,
4040 minChunkSize : options . minChunkSize || 100 ,
@@ -216,25 +216,31 @@ async function main() {
216216
217217Usage: bun run process-docs.ts [options]
218218
219+ By default, processes English (en) documentation only.
220+ Note: Use --clear flag when changing language scope to remove old embeddings.
221+
219222Options:
220223 --clear Clear existing embeddings before processing
221224 --dry-run Process and display results without saving to DB
222225 --verbose Show detailed output including text previews
223- --path <path> Custom path to docs directory
226+ --path <path> Custom path to docs directory (default: docs/en)
224227 --url <url> Custom base URL for links
225228 --chunk-size <n> Custom chunk size in tokens (default: 1024)
226229 --help, -h Show this help message
227230
228231Examples:
229- # Dry run to test chunking
232+ # Dry run to test chunking (English docs)
230233 bun run process-docs.ts --dry-run
231234
232- # Process and save to database
235+ # Process and save to database (English docs)
233236 bun run process-docs.ts
234237
235- # Clear existing and reprocess
238+ # Clear existing and reprocess (English docs)
236239 bun run process-docs.ts --clear
237240
241+ # Process a different language
242+ bun run process-docs.ts --path ../../apps/docs/content/docs/es
243+
238244 # Custom path with verbose output
239245 bun run process-docs.ts --path ./my-docs --verbose
240246 ` )
0 commit comments