How to add the vector to a field with vector_index #823
-
Hello @mariusconjeaud, Been loving everything about neomodel so far. I have a question about the How do you actually add the vector to the index? For a Thanks for your help. I am specifically tagging you since this is the only best available documentation related to vector_index. I went through the code but couldn't find anything. If I missed something, please tell me where I can find it. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello, Firstly, I added a section specifically about Schema in the documentation. There was an issue in the docs generation at release time though but it was fixed some time back. Then, about "adding a vector to the index", I am not 100% sure I got your question right. If I read correctly, you are interested in knowing how actual data fields are added into the index inside of Neo4j ? This happens automatically once the property is saved to the database and is handled by Neo4j itself. |
Beta Was this translation helpful? Give feedback.
Hello,
Firstly, I added a section specifically about Schema in the documentation. There was an issue in the docs generation at release time though but it was fixed some time back.
Have a look here : https://neomodel.readthedocs.io/en/latest/schema_management.html
Then, about "adding a vector to the index", I am not 100% sure I got your question right. If I read correctly, you are interested in knowing how actual data fields are added into the index inside of Neo4j ? This happens automatically once the property is saved to the database and is handled by Neo4j itself.
So that when you do :
myNode.vector = [1.0, 1.0]
and thenmyNode.save()
, the index inside of Neo4j will be updated since the…