Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented Jul 4, 2025

No description provided.

@kemingy kemingy requested a review from Copilot July 4, 2025 14:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR separates the generic embedding step into two distinct kinds—text-emb and multimodal-emb—and updates the pipeline logic to fetch and use them independently.

  • Split the PROVIDER_MAP["embedding"] entry into text-emb and multimodal-emb
  • Updated run_dynamic_pipeline to retrieve and handle both text and multimodal embeddings
  • Adjusted vectorization and dimension logic based on which embedding is present
Comments suppressed due to low confidence (3)

vechord/pipeline.py:98

  • Rename the variable emb to text_emb (and similarly update its usages) to clearly distinguish it from the multimodal variable.
    emb: Optional[BaseEmbedding] = calls.get("text-emb")

vechord/pipeline.py:64

  • Update any README or docs that reference the old embedding step to now mention text-emb and multimodal-emb so users know about the new provider kinds.
    "text-emb": {

vechord/pipeline.py:100

  • [nitpick] Consider explicitly handling the case where both a text and a multimodal embedding are provided, or document which one takes precedence to avoid silent conflicts.
    if not (emb or multimodal):

Copy link
Member

@xieydd xieydd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"POST /api/run HTTP/1.1" 422 Unprocessable Entity
                    INFO     failed to decode the request '/api/run' body <class    service.py:55
                             'vechord.model.web.RunRequest'>: Invalid enum value                 
                             'multimodal-emb' - at `$.steps[1].kind` 

Pydantic validate error.

Signed-off-by: Keming <[email protected]>
@kemingy
Copy link
Member Author

kemingy commented Jul 5, 2025

"POST /api/run HTTP/1.1" 422 Unprocessable Entity
                    INFO     failed to decode the request '/api/run' body <class    service.py:55
                             'vechord.model.web.RunRequest'>: Invalid enum value                 
                             'multimodal-emb' - at `$.steps[1].kind` 

Pydantic validate error.

Fixed

@kemingy kemingy merged commit 11439bf into tensorchord:main Jul 7, 2025
4 checks passed
@kemingy kemingy deleted the run_multimodal branch July 7, 2025 08:16
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.

2 participants