From 08c0803ae168b3441e490d4fcf5d1db0432ad7ea Mon Sep 17 00:00:00 2001 From: Chang She <759245+changhiskhan@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:57:55 -0800 Subject: [PATCH] chore(python): use pypi tantivy to speed up CI (#987) --- docs/src/examples/image_embeddings_roboflow.md | 2 +- python/python/lancedb/fts.py | 2 +- python/python/lancedb/query.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/examples/image_embeddings_roboflow.md b/docs/src/examples/image_embeddings_roboflow.md index 0b38c646..f4056af8 100644 --- a/docs/src/examples/image_embeddings_roboflow.md +++ b/docs/src/examples/image_embeddings_roboflow.md @@ -43,7 +43,7 @@ pip install lancedb We also need to install a specific commit of `tantivy`, a dependency of the LanceDB full text search engine we will use later in this guide: ``` -pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985 +pip install tantivy ``` Create a new Python file and add the following code: diff --git a/python/python/lancedb/fts.py b/python/python/lancedb/fts.py index cb36aa79..6efa2723 100644 --- a/python/python/lancedb/fts.py +++ b/python/python/lancedb/fts.py @@ -22,7 +22,7 @@ try: import tantivy except ImportError: raise ImportError( - "Please install tantivy-py `pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985` to use the full text search feature." # noqa: E501 + "Please install tantivy-py `pip install tantivy` to use the full text search feature." # noqa: E501 ) from .table import LanceTable diff --git a/python/python/lancedb/query.py b/python/python/lancedb/query.py index 840b8830..04cbaa77 100644 --- a/python/python/lancedb/query.py +++ b/python/python/lancedb/query.py @@ -559,7 +559,7 @@ class LanceFtsQueryBuilder(LanceQueryBuilder): import tantivy except ImportError: raise ImportError( - "Please install tantivy-py `pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985` to use the full text search feature." # noqa: E501 + "Please install tantivy-py `pip install tantivy` to use the full text search feature." # noqa: E501 ) from .fts import search_index