Closed hxt365 closed 1 month ago
File "/home/miniconda3/envs/py3.10/lib/python3.10/site-packages/nano_vectordb/dbs.py", line 147, in query return self.usable_metrics[self.metric](query, top_k, better_than_threshold) File "/home/miniconda3/envs/py3.10/lib/python3.10/site-packages/nano_vectordb/dbs.py", line 162, in _cosine_query scores = np.dot(use_matrix, query) ValueError: shapes (42,1536) and (768,) not aligned: 1536 (dim 1) != 768 (dim 0)
I guess you changed the embedding model but used a old storage file.
Thanks. I figured it out. I think the error message can be improved