Small demo that converts text to a knowledge graph and/or loads a movie CSV into Neo4j, then runs Cypher QA using Gemini (Google) via LangChain integrations.
- app.py — convert text → graph, push to Neo4j and run QA. Key symbols:
app.graph,app.llm,app.chain - app1.py — load sample movie CSV into Neo4j, clear DB, run sample QA. Key symbols:
app1.graph,app1.llm,app1.chain - .env — environment variables (API keys & Neo4j credentials). Do NOT commit this file.
- Python 3.8+
- Neo4j AuraDB or local Neo4j instance
- Google Generative AI API key
Recommended packages (examples):
pip install python-dotenv neo4j langchain langchain-google-genai langchain-community langchain-experimental
Setup
Copy or edit the existing .env with your credentials:
GOOGLE_API_KEY
NEO4J_URI
NEO4J_USERNAME
NEO4J_PASSWORD
Install Python dependencies (see above).