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
Datetime is currently not a supported datatype to be inferred. As a result, Neptune graphs that use datetime datatypes for properties have their datatypes inferred as strings. LLM-generated openCypher queries to do date/time manipulation (e.g. queries that need to find/filter on date/time ranges) then use string comparison instead of the proper date/time functions, because the schema being passed to the LLM says that these properties are strings when they are actually stored as datetimes.
Motivation
Datetime is a common datatype for properties, as it is often used for versioning, capturing when certain events/entities were established, and for time-to-live. It is common to write queries that filter results according to a date/time range, and needed to implement time-to-live.
Proposal (If applicable)
Add datetime as a supported datatype to be inferred.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Datatypes for property values are currently inferred:
langchain/libs/community/langchain_community/graphs/neptune_graph.py
Line 119 in ba74341
Datetime is currently not a supported datatype to be inferred. As a result, Neptune graphs that use datetime datatypes for properties have their datatypes inferred as strings. LLM-generated openCypher queries to do date/time manipulation (e.g. queries that need to find/filter on date/time ranges) then use string comparison instead of the proper date/time functions, because the schema being passed to the LLM says that these properties are strings when they are actually stored as datetimes.
Motivation
Datetime is a common datatype for properties, as it is often used for versioning, capturing when certain events/entities were established, and for time-to-live. It is common to write queries that filter results according to a date/time range, and needed to implement time-to-live.
Proposal (If applicable)
Add datetime as a supported datatype to be inferred.
Beta Was this translation helpful? Give feedback.
All reactions