Repository navigation
Conversation
- Removed unused functions and constants from rerank and embedding command files. - Simplified error handling by replacing custom usageError function with throwUsage. - Updated embedding model specifications to enforce input limits for new models. - Enhanced error messages to include supported model IDs for better user guidance. - Improved documentation for embedding and rerank commands to clarify usage and limitations.
hopelynd
force-pushed
the
feat/embedding-create-and-rerank
branch
from
December 2, 2026 07:51
c9f7f20 to
f22d638
Compare
This branch has not been deployed
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.
Summary
bl embedding createfor text and multimodal DashScope embeddings with a small local route table, Data URI media handling, and JSON/--outfull-vector outputbl rerankfor native text/multimodal document reranking with preserved server index/score payloads and documents-file path rulesDescription
This branch exposes two new API Key commands for direct vector and ranking workflows without going through knowledge-base search.
embedding createdefaults totext-embedding-v4for text-only input andqwen3-vl-embeddingwhen media is present. Known models are routed explicitly (compatible text vs native multimodal); unknown IDs are rejected locally without prefix guessing. Local images are encoded as Data URIs (no temporary OSS upload), videos accept public HTTP(S) URLs only, and--fuse/ dimensions / input counts follow the route table. Dry-run redacts Data URIs and marks pending local encodes; text mode prints a summary rather than dumping vectors.rerankdefaults toqwen3-rerankon the native text-rerank endpoint and also supportsgte-rerank-v2,qwen3.7-text-rerank, andqwen3-vl-rerank. Query and document sources are mutually exclusive pairs; media paths in--documents-fileresolve relative to that file, while--query-imageuses cwd. The CLI preserves server ordering and document objects and does not re-sort or merge scores across batches.Hub
bailian-clirouting distinguishes these bare API commands from knowledge-base indexing/retrieval hand-offs.