From e98db0976fe314d6b86b9cb4fc44516af4f07519 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Tue, 28 Apr 2026 00:15:10 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@1fde7dbc0eef35711c1e2bb43e216ad746f9c141 --- .openclaw-sync/source.json | 4 ++-- docs/plugins/memory-lancedb.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 44db18cfd..b1c1b8e29 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "1adaa28dc86b4eb5805733f558962481159678f3", - "syncedAt": "2026-04-28T00:08:01.513Z" + "sha": "1fde7dbc0eef35711c1e2bb43e216ad746f9c141", + "syncedAt": "2026-04-28T00:13:45.125Z" } diff --git a/docs/plugins/memory-lancedb.md b/docs/plugins/memory-lancedb.md index 7cac365ed..6e1933fc2 100644 --- a/docs/plugins/memory-lancedb.md +++ b/docs/plugins/memory-lancedb.md @@ -99,6 +99,36 @@ models need the value in config so LanceDB can create the vector column. For small local embedding models, lower `recallMaxChars` if you see context length errors from the local server. +## OpenAI-compatible providers + +Some OpenAI-compatible embedding providers reject the `encoding_format` +parameter, while others ignore it and always return `number[]` vectors. +`memory-lancedb` therefore omits `encoding_format` on embedding requests and +accepts either float-array responses or base64-encoded float32 responses. + +Set `embedding.dimensions` for providers whose model dimensions are not built +in. For example, ZhiPu `embedding-3` uses `2048` dimensions: + +```json5 +{ + plugins: { + entries: { + "memory-lancedb": { + enabled: true, + config: { + embedding: { + apiKey: "${ZHIPU_API_KEY}", + baseUrl: "https://open.bigmodel.cn/api/paas/v4", + model: "embedding-3", + dimensions: 2048, + }, + }, + }, + }, + }, +} +``` + ## Recall and capture limits `memory-lancedb` has two separate text limits: