You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we're using list for vectors in Python. It's not efficient and needs extra conversions, e.g. when building vector search queries with pgvector like the ::vector here:
SELECT filename, text, embedding <=> %s::vector AS distance
We want to support vector of numbers represented by numpy.typing.NDArray, e.g. numpy.typing.NDArray[npmpy.float32], numpy.typing.NDArray[npmpy.float64], numpy.typing.NDArray[npmpy.int64] for corresponding types.
#437 is a similar issue - which also added a new Python representation for an existing type.
❤️ Contributors, please refer to 📙Contributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.
The text was updated successfully, but these errors were encountered:
Currently we're using
list
for vectors in Python. It's not efficient and needs extra conversions, e.g. when building vector search queries with pgvector like the::vector
here:cocoindex/examples/text_embedding/main.py
Line 55 in a37eddc
We want to support vector of numbers represented by
numpy.typing.NDArray
, e.g.numpy.typing.NDArray[npmpy.float32]
,numpy.typing.NDArray[npmpy.float64]
,numpy.typing.NDArray[npmpy.int64]
for corresponding types.#437 is a similar issue - which also added a new Python representation for an existing type.
❤️ Contributors, please refer to 📙Contributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like
I'm working on it
orCan I work on this issue?
to avoid duplicating work. Our Discord server is always open and friendly.The text was updated successfully, but these errors were encountered: