You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/neo4j-generation
Erick Friis ebf998acb6
Templates (#12294)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Lance Martin <lance@langchain.dev>
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
11 months ago
..
neo4j_generation Templates (#12294) 11 months ago
tests Templates (#12294) 11 months ago
README.md Templates (#12294) 11 months ago
main.py Templates (#12294) 11 months ago
poetry.lock Templates (#12294) 11 months ago
pyproject.toml Templates (#12294) 11 months ago

README.md

Graph Generation Chain for Neo4j Knowledge Graph

Harness the power of natural language understanding and convert plain text into structured knowledge graphs with the Graph Generation Chain. This system integrates with the Neo4j graph database using OpenAI's LLM. By leveraging OpenAI Functions capabilities, the Graph Generation Chain efficiently extracts graph structure from text.

Set up Environment

You need to define the following environment variables

OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
NEO4J_URI=<YOUR_NEO4J_URI>
NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>
NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>

Installation

To get started with the Graph Generation Chain:

# from inside your LangServe instance
poe add neo4j-generation