📄️ Defining a Basic Node
Defining nodes in Uix can be very simple. No methods are necessary to generate a node without vector embeddings, unique indexes, etc.
📄️ Defining Unique Indexes
Defining unique indexes can be extremely useful for fetching nodes. For example if you want all users to have unique email addresses or usernames, you can define that as a unique index. This makes it extremely simple to fetch nodes using nodeKeys or indexes, and simultaneously makes it impossible for users to register an account with a username that already exists.
📄️ Defining Unique Relationships
Defining unique relationships can be extremely useful for maintaining data. For example, if you want to define a Profile for your User node, but every user should only have one profile, then you can define that as such.
📄️ Defining Node Set Relationships
Similar to defining a Unique Relationship, defining Node Set relationships is extremely useful. For example: a user may only have one unique profile, but that profile will have anywhere from zero to unlimited posts
📄️ Defining Property Vectors
Arguably defining property vectors is one of the greatest draws to using Uix for AI focused implementations. By defining a property vector, your node will be automatically embedded on those properties, allowing for seamless vector search and AI searching implementations.