From f882f5b69a14e27dd4a677804a1ba985dc3462c4 Mon Sep 17 00:00:00 2001 From: Wyatt Alt Date: Tue, 25 Mar 2025 08:50:23 -0700 Subject: [PATCH] fix: update Query pydoc (#2273) Removes reference of nonexistent method. --- python/python/lancedb/query.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/python/lancedb/query.py b/python/python/lancedb/query.py index 7c7447be..9399c43b 100644 --- a/python/python/lancedb/query.py +++ b/python/python/lancedb/query.py @@ -109,10 +109,11 @@ class FullTextSearchQuery(pydantic.BaseModel): class Query(pydantic.BaseModel): """A LanceDB Query - Queries are constructed by the `Table.search` and `Table.query` methods. This - class is a python representation of the query. Normally you will not need to - interact with this class directly. You can build up a query and execute it using - collection methods such as `to_batches()`, `to_arrow()`, `to_pandas()`, etc. + Queries are constructed by the `Table.search` method. This class is a + python representation of the query. Normally you will not need to interact + with this class directly. You can build up a query and execute it using + collection methods such as `to_batches()`, `to_arrow()`, `to_pandas()`, + etc. However, you can use the `to_query()` method to get the underlying query object. This can be useful for serializing a query or using it in a different context.