csv_kg_chat
langroid/agent/special/neo4j/csv_kg_chat.py
CSVGraphAgent(config)
¶
Bases: Neo4jChatAgent
Source code in langroid/agent/special/neo4j/csv_kg_chat.py
pandas_to_kg(msg)
¶
Creates nodes and relationships in the graph database based on the data in a CSV file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg |
PandasToKGTool
|
An instance of the PandasToKGTool class containing the necessary information for generating nodes. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
A string indicating the success or failure of the operation. |