Replies: 2 comments
-
🤖 Hello, The error you're encountering is due to incorrect syntax in your ngql command. The "->" symbol is used in ngql to denote a relationship or edge between two nodes. The error message suggests that the command is trying to insert an edge with the name "column_xyz", but the syntax is incorrect. The correct syntax for inserting an edge in ngql should look something like this:
Please replace However, within the LlamaIndex codebase, the insertion of an edge (or a triplet) in ngql is done through the Here is how you can use it: kg_index = KnowledgeGraphIndex()
kg_index.upsert_triplet(('subject', 'relationship', 'object')) This will insert the triplet into the graph store. I hope this helps! If you have any other questions, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Still getting the same error anything that you can suggest apart from this. |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
%ngql INSERT VERTEX table(name) VALUES 'abc':('abc');
%ngql INSERT VERTEX column(name) VALUES 'column_xyz':('xyz');
%ngql CREATE EDGE IF NOT EXISTS has_column(has_column STRING);
%ngql INSERT EDGE has_column() VALUES "abc"->"column_xyz": ();
UsageError: unrecognized arguments: ->"column_xyz": ();
Beta Was this translation helpful? Give feedback.
All reactions