Skip to content

fix(python): add missing space in hybrid query error message#3340

Merged
westonpace merged 1 commit into
lancedb:mainfrom
n1teshy:fix-error-message
May 2, 2026
Merged

fix(python): add missing space in hybrid query error message#3340
westonpace merged 1 commit into
lancedb:mainfrom
n1teshy:fix-error-message

Conversation

@n1teshy

@n1teshy n1teshy commented May 1, 2026

Copy link
Copy Markdown
Contributor

Hi, the hybrid query error message looks like it can use a space, just added it.

def _validate_query(self, query, vector=None, text=None):
    if query is not None and (vector is not None or text is not None):
        raise ValueError(
            "You can either provide a string query in search() method"
            "or set `vector()` and `text()` explicitly for hybrid search."
            "But not both."
        )

@github-actions github-actions Bot added bug Something isn't working Python Python SDK labels May 1, 2026
@westonpace

Copy link
Copy Markdown
Contributor

Thanks!

@westonpace
westonpace merged commit 59db036 into lancedb:main May 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Python Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants