Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug while using a custom embedding model #5

Open
ShukriChiu opened this issue Jan 19, 2024 · 2 comments
Open

bug while using a custom embedding model #5

ShukriChiu opened this issue Jan 19, 2024 · 2 comments

Comments

@ShukriChiu
Copy link

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
Copy link
Author

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

@ShukriChiu
Copy link
Author

I need to do this manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant