Hi, I have a question regarding semantic search an...
# community-help
e
Hi, I have a question regarding semantic search and embeddings. I have a collection with with 2 fields, one is string and the other is embedding derived from that string, exactly like in https://typesense.org/docs/guide/semantic-search.html#step-1-create-a-collection When I index a new document, the embedding gets automatically calculated, and it's value is (almost) same as when I embed the string field value using the embedding model itself. When I update the value of the string field e.g. like this
Copy code
_ = client.collections[collection_name].documents[id].update({"product_name": new_value})
The embedding field changes, but I don't understand to what value. The new embedding value is not similar to the value I get when I embed the new string field value myself, and it's also not similar to the original embedding value. How is the new value calculated?
j
We had a bug in v27.1 where updating embeddings when a value is updated had issues. Could you try this again on v28.0.rc30?
e
Thanks for the reply. I am indeed running on v27.1. I'll let you know if the update fixed it.
t
we tested this extensively over multiple Typesense versions and we believe that there is still a bug in the recent version 28.0.rc33 we believe that this bug was introduced in 27.0, it seems that it is not present in previous versions of Typesense for reference in this thread: we created issue https://github.com/typesense/typesense/issues/2139