vector-cookbook
vector-cookbook copied to clipboard
bug while using a custom embedding model
for example, if I use "jina-embeddings-v2-base-zh" embedding model, the dimension size should be 768
File "/root/.cache/pypoetry/virtualenvs/shujian-knowledge-server-GJO3bz0z-py3.11/lib/python3.11/site-packages/timescale_vector/client.py", line 1196, in upsert cur.executemany(query, records) psycopg2.errors.DataException: expected 1536 dimensions, not 768
ALTER TABLE 'table_name' ALTER COLUMN embedding TYPE vector(768)
I need to do this manually