openclaw/src/memory
Jake e78ae48e69
fix(memory): add input_type to Voyage AI embeddings for improved retrieval (#10818)
* fix(memory): add input_type to Voyage AI embeddings for improved retrieval

Voyage AI recommends passing input_type='document' when indexing and
input_type='query' when searching. This improves retrieval quality by
optimising the embedding space for each direction.

Changes:
- embedQuery now passes input_type: 'query'
- embedBatch now passes input_type: 'document'
- Batch API request_params includes input_type: 'document'
- Tests updated to verify input_type is passed correctly

* Changelog: note Voyage embeddings input_type fix (#10818) (thanks @mcinteerj)

---------

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-02-06 21:55:09 -06:00
..
backend-config.test.ts QMD: use OpenClaw config types 2026-02-02 23:45:05 -08:00
backend-config.ts Lint: add braces for single-line ifs 2026-02-02 23:45:05 -08:00
batch-gemini.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
batch-openai.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
batch-voyage.test.ts fix(memory): add input_type to Voyage AI embeddings for improved retrieval (#10818) 2026-02-06 21:55:09 -06:00
batch-voyage.ts fix(memory): add input_type to Voyage AI embeddings for improved retrieval (#10818) 2026-02-06 21:55:09 -06:00
embeddings-gemini.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
embeddings-openai.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
embeddings-voyage.test.ts fix(memory): add input_type to Voyage AI embeddings for improved retrieval (#10818) 2026-02-06 21:55:09 -06:00
embeddings-voyage.ts fix(memory): add input_type to Voyage AI embeddings for improved retrieval (#10818) 2026-02-06 21:55:09 -06:00
embeddings.test.ts fix: L2-normalize local embedding vectors to fix semantic search (#5332) 2026-02-01 22:56:44 -05:00
embeddings.ts feat(memory): native Voyage AI support (#7078) 2026-02-06 15:09:32 -06:00
headers-fingerprint.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
hybrid.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
hybrid.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
index.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
index.ts Add more tests; make fall back more resilient and visible 2026-02-02 23:45:05 -08:00
internal.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
internal.ts feat(memory): native Voyage AI support (#7078) 2026-02-06 15:09:32 -06:00
manager-cache-key.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager-search.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.async-search.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.atomic-reindex.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.batch.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.embedding-batches.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.sync-errors-do-not-crash.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
manager.ts feat(memory): native Voyage AI support (#7078) 2026-02-06 15:09:32 -06:00
manager.vector-dedupe.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
memory-schema.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
node-llama.ts fix: make node-llama-cpp optional 2026-01-15 18:37:02 +00:00
openai-batch.ts feat(memory): add gemini batches + safe reindex 2026-01-18 16:12:10 +00:00
provider-key.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
qmd-manager.test.ts Lint: add braces for single-line ifs 2026-02-02 23:45:05 -08:00
qmd-manager.ts Lint: add braces for single-line ifs 2026-02-02 23:45:05 -08:00
search-manager.test.ts fix(memory-qmd): write XDG index.yml + legacy compat 2026-02-02 23:45:05 -08:00
search-manager.ts chore: fix lint warnings 2026-02-02 23:45:05 -08:00
session-files.ts chore: apply formatter 2026-02-02 23:45:05 -08:00
sqlite-vec.ts chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
sqlite.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
status-format.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
sync-memory-files.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
sync-session-files.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
types.ts Fix build regressions after merge 2026-02-02 23:45:05 -08:00