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

Skip to content

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented Jul 2, 2025

No description provided.

@kemingy kemingy requested a review from Copilot July 2, 2025 13:24
@kemingy kemingy marked this pull request as ready for review July 2, 2025 13:24
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 centralizes namespace updates via a new method and refines how keywords are instantiated in the dynamic pipeline.

  • Introduces reset_namespace in the registry to unify namespace assignment for both registry and client.
  • Updates run_dynamic_pipeline to use reset_namespace instead of direct attribute mutation.
  • Changes Keyword instantiation to use a positional argument for brevity.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vechord/registry.py Added reset_namespace method to set ns on registry and client
vechord/pipeline.py Switched to reset_namespace call and adjusted Keyword usage
Comments suppressed due to low confidence (4)

vechord/registry.py:81

  • Missing docstring for public method reset_namespace. Consider adding a clear docstring explaining its purpose and effects.
    def reset_namespace(self, namespace: str):

vechord/pipeline.py:96

  • The new reset_namespace path in the pipeline isn’t covered by existing tests. Consider adding a unit test to verify the namespace is correctly propagated.
    vr.reset_namespace(request.name)

vechord/pipeline.py:135

  • [nitpick] Using a positional argument for Keyword reduces clarity. Consider using the explicit named parameter (Keyword(text=chunks[i])) to improve readability.
                        keyword=Keyword(chunks[i]) if use_keyword_index else None,

@kemingy kemingy merged commit 1115dbf into tensorchord:main Jul 3, 2025
4 checks passed
@kemingy kemingy deleted the fix_pipeline_bug branch July 3, 2025 07:40
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