@madewithremy/admin 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -875,6 +875,7 @@ interface DataSourcesIngestUpdate {
875
875
  };
876
876
  contextual?: {
877
877
  enabled?: boolean;
878
+ modelId?: string;
878
879
  };
879
880
  images?: {
880
881
  describe?: boolean;
package/dist/prod.js CHANGED
@@ -2988,6 +2988,7 @@ var CONFIG_FLAGS = {
2988
2988
  "min-chars": { type: "number", min: 0 },
2989
2989
  "drop-blocks": { type: "string" },
2990
2990
  contextual: { type: "string" },
2991
+ "contextual-model": { type: "string" },
2991
2992
  "describe-images": { type: "string" },
2992
2993
  "embedding-model": { type: "string" },
2993
2994
  "image-model": { type: "string" },
@@ -3253,7 +3254,10 @@ function configFromFlags(a) {
3253
3254
  if (dropBlocks !== void 0) {
3254
3255
  chunking.dropBlockTypes = dropBlocks.split(",").map((s) => s.trim()).filter(Boolean);
3255
3256
  }
3256
- const contextual = triState(a, "contextual", "enabled");
3257
+ const contextual = {
3258
+ ...triState(a, "contextual", "enabled"),
3259
+ ...a.str("contextual-model") ? { modelId: a.str("contextual-model") } : {}
3260
+ };
3257
3261
  const images = {
3258
3262
  ...triState(a, "describe-images", "describe"),
3259
3263
  ...a.str("image-model") ? { modelId: a.str("image-model") } : {}
@@ -3426,7 +3430,10 @@ Search options:
3426
3430
  coerce: true/false and numbers become typed.
3427
3431
  Pass a JSON object for the full grammar:
3428
3432
  metadata, filename, documentIds, pages, contains,
3429
- phrase \u2014 e.g. --filter '{"pages":{"max":3}}'
3433
+ phrase \u2014 e.g. --filter '{"pages":{"max":3}}'.
3434
+ Metadata takes numeric ranges via {gte,lte}: store
3435
+ dates as integers (YYYYMMDD or epoch seconds), then
3436
+ --filter '{"metadata":{"date":{"gte":20250101}}}'
3430
3437
  --phrase <text> Chunk must contain this exact word sequence
3431
3438
  --contains <words> Chunk must contain ALL these words, any order
3432
3439
  --max-per-document <n> Cap hits per document; backfills from others
@@ -3456,6 +3463,8 @@ Tuning a corpus:
3456
3463
  --contextual <true|false> LLM context blurb per chunk. Improves retrieval
3457
3464
  on long documents; costs a model call per chunk
3458
3465
  at ingest. Off by default \u2014 measure on your data.
3466
+ --contextual-model <id> Which chat model writes the blurbs. Optional:
3467
+ enabling without it uses the platform default.
3459
3468
  --describe-images <true|false> Vision pass over images inside documents,
3460
3469
  substituting a description into the searchable
3461
3470
  text. ON by default: a document with no images
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madewithremy/admin",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Admin SDK + CLI for managing production Remy apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",