Files
qdrant-client/qdrant_client/embed/models.py
George baa3e264c8 Drop python 3.8 (#848)
* new: drop python 3.8 support, update type hints

* fix: remove 3.8 from ci

* fix: update type hints

* fix: make netlify use python3.10

* fix: try python3.9 for sphinx

* debug: try updating sphinx

* new: bump ffastembed to 0.4.2

* fix: install numpy<2 for mypy

* fix: install numpy via poetry
2024-11-15 15:54:32 +01:00

26 lines
550 B
Python

from typing import Union
from pydantic import StrictFloat, StrictStr
from qdrant_client.http.models import ExtendedPointId, SparseVector
NumericVector = Union[
list[StrictFloat],
SparseVector,
list[list[StrictFloat]],
]
NumericVectorInput = Union[
list[StrictFloat],
SparseVector,
list[list[StrictFloat]],
ExtendedPointId,
]
NumericVectorStruct = Union[
list[StrictFloat],
list[list[StrictFloat]],
dict[StrictStr, NumericVector],
]
__all__ = ["NumericVector", "NumericVectorInput", "NumericVectorStruct"]