vector-cookbook icon indicating copy to clipboard operation
vector-cookbook copied to clipboard

bug while using a custom embedding model

Open ShukriChiu opened this issue 2 years ago • 2 comments

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

ShukriChiu avatar Jan 19 '24 09:01 ShukriChiu

ALTER TABLE 'table_name' ALTER COLUMN embedding TYPE vector(768)

ShukriChiu avatar Jan 19 '24 10:01 ShukriChiu

I need to do this manually

ShukriChiu avatar Jan 19 '24 10:01 ShukriChiu