Customizing Embeddings for Chromadb Vector Database #545
anthonyikeda
started this conversation in
General
Replies: 1 comment 1 reply
-
did you find a resolution to this ? i am also hitting a wall trying to have a custom schema for my clip embeddings and some metadata using chromadb . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started with this video on getting started with ChromaDB https://www.youtube.com/watch?v=u_N1t0CBuqA and decided, with the output database, to see how I can start querying the data using Spring AI Vector Stores.
In my Jupyter notebook, I'm configuring the ChromDB Client with:
My data in the collection is:
Using the following query:
I've hit wall where I get the error message:
Embedding dimension 1536 does not match collection dimensionality 512
Apparently it's because the embedding function using in the Spring Application does not align with the one used in the Python code.
In the original video I'm using the
OpenCLIPEmbeddingFunction
in ChromaDB and I'm not sure how to reconfigure this for the Java code.Has anyone faced this?
Should I just change my chromadb embedding function in the Python code to something that is supported in Spring AI (https://docs.spring.io/spring-ai/reference/api/embeddings.html) or can I actually create a new EmbeddingClient for Chroma DB specifically?
Beta Was this translation helpful? Give feedback.
All reactions