plugmem 0.7.1 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -405,9 +405,10 @@ w_vec = 2.0 # trust meaning over keywords in this memory
405
405
  half_life_days = 30 # and treat anything older than a month as stale
406
406
 
407
407
  [embedder] # optional — omit for lexical/tag/graph/time only
408
- kind = "ollama" # or openai / lmstudio / vllm / llamacpp
408
+ enabled = true # false keeps settings but makes no embedder calls
409
409
  url = "http://localhost:11434/v1/embeddings"
410
410
  model = "nomic-embed-text"
411
+ api_key_env = "OPENAI_API_KEY" # env var holding the bearer token
411
412
 
412
413
  [maintenance]
413
414
  fsync = "each_op" # or "on_snapshot": faster, loses the journal tail on an OS crash
@@ -436,6 +437,13 @@ the provider's HTTP call happens outside the engine lock. The `dim` open option
436
437
  sets the embedding size when there is no config; if the config built an
437
438
  embedder, its dimension governs and `dim` must agree.
438
439
 
440
+ The host uses one `OpenAiCompatEmbedder` implementation for OpenAI, Ollama,
441
+ LM Studio, vLLM and other OpenAI-compatible servers. `url` is the complete
442
+ embeddings endpoint exactly as provided (nothing is appended), and `model` is
443
+ the model name understood by that server. Set `enabled = false` to keep the
444
+ settings without creating or calling the embedder; `$PLUGMEM_EMBEDDER_ENABLED`
445
+ overrides it with `true` or `false`.
446
+
439
447
  A read-only handle cannot embed inside the engine — writing into a zero-copy
440
448
  mapping is exactly what read-only exists to avoid — so this binding embeds the
441
449
  query itself before the read. A text `recall` reaches the vector source in both
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugmem",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Native Node.js addon for plugmem: an embedded bitemporal memory and retrieval engine for local-first applications and agents (remember / recall / revise / forget over one local database).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,11 +43,11 @@
43
43
  "typecheck": "tsc -p tsconfig.json"
44
44
  },
45
45
  "optionalDependencies": {
46
- "plugmem-linux-x64-gnu": "0.7.1",
47
- "plugmem-linux-arm64-gnu": "0.7.1",
48
- "plugmem-darwin-x64": "0.7.1",
49
- "plugmem-darwin-arm64": "0.7.1",
50
- "plugmem-win32-x64-msvc": "0.7.1",
51
- "plugmem-win32-arm64-msvc": "0.7.1"
46
+ "plugmem-linux-x64-gnu": "0.8.0",
47
+ "plugmem-linux-arm64-gnu": "0.8.0",
48
+ "plugmem-darwin-x64": "0.8.0",
49
+ "plugmem-darwin-arm64": "0.8.0",
50
+ "plugmem-win32-x64-msvc": "0.8.0",
51
+ "plugmem-win32-arm64-msvc": "0.8.0"
52
52
  }
53
53
  }