Revert: feat(embedder): Gemini Embedding 2 multimodal support (#607)#703
Revert: feat(embedder): Gemini Embedding 2 multimodal support (#607)#703
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
… image/video/audio/PDF) (volcengine#607)" (volcengine#703) This reverts commit 95bd197.
Summary
Reverts #607 due to multiple critical issues found during code review:
embedding_config.py syntax errors - inserting gemini into provider/backend description strings broke string literals in multiple places, and a missing closing parenthesis on task_type field. This file cannot be parsed by Python at all, which breaks all embedding functionality for every provider (not just Gemini).
EmbeddingMsg.init rejects new kwargs - the custom init overrides the dataclass-generated one but does not accept media_uri, media_mime_type, or id. Callers (from_dict(), from_context()) pass these params, causing TypeError at runtime.
supports_multimodal never overridden - GeminiDenseEmbedder inherits supports_multimodal = False from base class. The multimodal branch in collection_schemas.py is gated by this flag, so the entire multimodal feature (the core purpose of this PR) is dead code.
Security: ctx=None file read - viking_fs.read_file_bytes called with ctx=None bypasses tenant isolation in multi-tenant deployments.
See #607 comment for full review details.