Skip to content

feat(models_provider): add AssetFeed provider with embedding and reranker models - #8308

Open
nikolai-vysotskyi wants to merge 1 commit into
1Panel-dev:v2from
nikolai-vysotskyi:add-assetfeed
Open

nikolai-vysotskyi wants to merge 1 commit into
1Panel-dev:v2from
nikolai-vysotskyi:add-assetfeed

Conversation

@nikolai-vysotskyi

Copy link
Copy Markdown

What this PR does / why we need it?

Adds an AssetFeed model provider with an embedding model (assetfeed/assetfeed-embed-v1) and a reranker model (assetfeed/assetfeed-rerank-v1), so they can be selected for knowledge bases and for the reranker node.

Summary of your change

  • New apps/models_provider/impl/assetfeed_model_provider/ (copied from the SiliconFlow provider layout): provider, embedding and reranker credentials (API key only), embedding and reranker models, icon.
  • Embedding: POST https://api.assetfeed.com/api/v1/models/embeddings (OpenAI format); input_type is query for embed_query and document for embed_documents; requests are split at 64 inputs. Default dimensions (1024).
  • Reranker: POST https://api.assetfeed.com/api/v1/models/rerank; at most 100 documents per request; Top N setting as in the other rerankers.
  • Registered in model_provider_constants.py and in the UI provider-data.ts (same as Regolo).
  • No new strings: existing translated messages are reused, so the .po files are unchanged. No new dependencies.
  • No OCR/image model was added: MaxKB's IMAGE type is a vision chat model, and the AssetFeed OCR model only returns the text found in the images.

Configuration: add the provider in model settings and enter an AssetFeed API key (ASSETFEED_API_KEY in the examples on our side).

Try the models in the browser:

Testing: the repo has no test runner. python -m py_compile on all new files and on model_provider_constants.py passes. A throwaway script with stubbed Django/LangChain modules and a mocked provider_request checked batching at 64, input_type, result ordering, the 100-document cap and top_n. Tests use mocked HTTP; no live keyed call to the AssetFeed API was made. Not run: Django checks and ruff (dependencies not installed locally), and the UI lint.

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

This change was prepared by an AI coding agent and was not reviewed by a human before submission; the account is operated by AssetFeed.
Disclosure: I work on AssetFeed.

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