Repository navigation
feat(models_provider): add AssetFeed provider with embedding and reranker models - #8308
Open
nikolai-vysotskyi wants to merge 1 commit into
Open
nikolai-vysotskyi wants to merge 1 commit into
nikolai-vysotskyi wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.POST https://api.assetfeed.com/api/v1/models/embeddings(OpenAI format);input_typeisqueryforembed_queryanddocumentforembed_documents; requests are split at 64 inputs. Default dimensions (1024).POST https://api.assetfeed.com/api/v1/models/rerank; at most 100 documents per request; Top N setting as in the other rerankers.model_provider_constants.pyand in the UIprovider-data.ts(same as Regolo)..pofiles are unchanged. No new dependencies.Configuration: add the provider in model settings and enter an AssetFeed API key (
ASSETFEED_API_KEYin the examples on our side).Try the models in the browser:
Testing: the repo has no test runner.
python -m py_compileon all new files and onmodel_provider_constants.pypasses. A throwaway script with stubbed Django/LangChain modules and a mockedprovider_requestchecked batching at 64,input_type, result ordering, the 100-document cap andtop_n. Tests use mocked HTTP; no live keyed call to the AssetFeed API was made. Not run: Django checks andruff(dependencies not installed locally), and the UI lint.Please indicate you've done the following:
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.