feat: upgrade to lance 0.19.2-beta.3 (#1794)

This commit is contained in:
Weston Pace
2024-11-05 06:43:41 -08:00
committed by GitHub
parent 3604d20ad3
commit 26f4a80e10
3 changed files with 13 additions and 11 deletions

View File

@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from numpy import NaN
from numpy import nan
import pyarrow as pa
from .base import Reranker
@@ -71,7 +71,7 @@ class LinearCombinationReranker(Reranker):
elif self.score == "all":
results = results.append_column(
"_distance",
pa.array([NaN] * len(fts_results), type=pa.float32()),
pa.array([nan] * len(fts_results), type=pa.float32()),
)
return results
@@ -92,7 +92,7 @@ class LinearCombinationReranker(Reranker):
elif self.score == "all":
results = results.append_column(
"_score",
pa.array([NaN] * len(vector_results), type=pa.float32()),
pa.array([nan] * len(vector_results), type=pa.float32()),
)
return results