You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -912,19 +912,32 @@ For improved reliability with :ref:`OpenAILLM <openaillm>` or :ref:`VertexAILLM
912
912
Schema Validation and Node Properties
913
913
--------------------------------------
914
914
915
-
**Important:** All node types must have at least one property defined. When using string shorthand for node types (e.g., ``"Person"``), a default ``"name"`` property is automatically added with ``additional_properties=True`` to allow flexible LLM extraction:
915
+
All node types must have at least one property defined. When no properties are provided,
916
+
a default ``name: STRING`` property is added automatically and ``additional_properties``
917
+
is set to ``True`` to allow the LLM to extract additional properties freely.
918
+
919
+
This applies to both the **string shorthand** and the **long dict syntax** when the
Passing ``properties`` explicitly as an empty list raises a ``ValidationError``:
936
+
937
+
.. code:: python
938
+
939
+
# Raises ValidationError — empty list is not auto-filled
940
+
{"label": "House", "properties": []}
928
941
929
942
**Relationship types** with no properties automatically set ``additional_properties=True`` to preserve LLM-extracted properties during graph construction.
0 commit comments