langchain
3eb39156 - langchain[minor]: Reduce the number of tokens required to describe a Cypher/Neo4j schema (#13851)

Commit
2 years ago
langchain[minor]: Reduce the number of tokens required to describe a Cypher/Neo4j schema (#13851) Instead of using JSON-like syntax to describe node and relationship properties we changed to a shorter and more concise schema description Old: ``` Node properties are the following: [{'properties': [{'property': 'name', 'type': 'STRING'}], 'labels': 'Movie'}, {'properties': [{'property': 'name', 'type': 'STRING'}], 'labels': 'Actor'}] Relationship properties are the following: [] The relationships are the following: ['(:Actor)-[:ACTED_IN]->(:Movie)'] ``` New: ``` Node properties are the following: Movie {name: STRING},Actor {name: STRING} Relationship properties are the following: The relationships are the following: (:Actor)-[:ACTED_IN]->(:Movie) ```
Author
Parents
Loading