aminalaee/sqladmin

Support for pgvector.sqlalchemy.vector.VECTOR field support

spsoni opened this issue · 1 comments

Checklist

  • There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

sqladmin/forms.py", line 274, in get_converter
raise NoConverterFound( # pragma: nocover
sqladmin.exceptions.NoConverterFound: Could not find field converter for column embedding (<class 'pgvector.sqlalchemy.vector.VECTOR'>).

[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^2.8.2"
sqlmodel = "^0.0.21"
pgvector = "^0.3.2"
psycopg2-binary = "^2.9.9"
sqladmin = {extras = ["full"], version = "^0.18.0"}
uvicorn = "^0.30.6"

Describe the solution you would like.

Need field converter for column embedding (<class 'pgvector.sqlalchemy.vector.VECTOR'>)

Describe alternatives you considered

Raised issue in pgvector git repo - pgvector/pgvector-python#88

Additional context

Your tool is a life saver. Thanks for the hard work

Thanks for reporting this.
I think this could be nice but I don't have much context. How should we go about displaying this vector data? Should we just show the whole array of floats? What is the point of seeing this data?