Skip to content

feat(memory): add AssetFeed embedding provider and reranker - #4193

Open
nikolai-vysotskyi wants to merge 3 commits into
zhayujie:masterfrom
nikolai-vysotskyi:feat/assetfeed-embedding-rerank
Open

nikolai-vysotskyi wants to merge 3 commits into
zhayujie:masterfrom
nikolai-vysotskyi:feat/assetfeed-embedding-rerank

Conversation

@nikolai-vysotskyi

Copy link
Copy Markdown

What

Adds AssetFeed as an optional memory backend:

  • embedding_provider: "assetfeed" is a new entry in EMBEDDING_VENDORS. The API is OpenAI-format, so it reuses the existing client (model assetfeed/assetfeed-embed-v1, 1024 dimensions by default, 512 and 256 supported, 64 inputs per request). input_type is sent as query or document.
  • rerank_provider: "assetfeed" is a new remote provider in agent/memory/reranker.py (model assetfeed/assetfeed-rerank-v1, Cohere-style request, up to 100 documents per request, longer lists are sent in batches).
  • New assetfeed_api_key config key (also read from ASSETFEED_API_KEY), added to config.py and config-template.json.
  • A short tip in docs/memory/index.mdx and docs/zh/memory/index.mdx.

Nothing changes unless the provider is selected. Existing providers and defaults are untouched.

Tests

tests/test_assetfeed_provider.py (new): vendor defaults, missing key, reranker registration, score mapping by index, batching over 100 documents, missing key, and input_type ("query" for searches, "document" for indexing). Run together with the existing rerank and embedding tests: 52 passed. No live API calls were made.

Try the models first

Disclosure: I work on AssetFeed.

@mintlify

mintlify Bot commented Dec 2, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 653b31d.

Approve preview

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant