Skip to content

feat(embedding): add ByteDance and Qwen embedding providers#7

Merged
lIang70 merged 2 commits into
mainfrom
feat/embedding-bytedance-qwen
Apr 15, 2026
Merged

feat(embedding): add ByteDance and Qwen embedding providers#7
lIang70 merged 2 commits into
mainfrom
feat/embedding-bytedance-qwen

Conversation

@lIang70

@lIang70 lIang70 commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add ByteDance embedding provider using Volcengine ArkRuntime SDK (CreateEmbeddings), supporting api_key/base_url/region config, default model doubao-embedding-large
  • Add Qwen embedding provider wrapping the OpenAI embedder with DashScope's OpenAI-compatible endpoint (https://dashscope.aliyuncs.com/compatible-mode/v1), default model text-embedding-v4
  • Update doc.go and integration test imports to include new providers

Test plan

  • go build ./embedding/... passes
  • go vet ./embedding/... passes
  • Integration test with EMBEDDING_PROVIDER=bytedance (requires model activation in Volcengine console)
  • Integration test with EMBEDDING_PROVIDER=qwen

Made with Cursor

lIang70 added 2 commits April 15, 2026 23:57
- ByteDance: uses Volcengine ArkRuntime SDK (CreateEmbeddings),
  supports api_key/base_url/region config, default model doubao-embedding-large
- Qwen: wraps OpenAI embedder with DashScope compatible endpoint,
  default model text-embedding-v4

Made-with: Cursor
The standard /embeddings endpoint does not work with vision models
like doubao-embedding-vision-251215. Auto-detect vision models by
name and route to CreateMultiModalEmbeddings (/embeddings/multimodal).

EmbedBatch falls back to sequential calls since the multimodal
endpoint merges all inputs into a single vector.

Made-with: Cursor
@lIang70
lIang70 merged commit c955243 into main Apr 15, 2026
7 checks passed
@lIang70
lIang70 deleted the feat/embedding-bytedance-qwen branch April 15, 2026 16:23
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