Example how to construct knowledge graph from a document with LLM and use it with Langchain as part of your RAG
3 Notebooks:
You need to copy .env.example
file to .env
and fill the variables with your own values.
After that, run notebook 1 to create the knowledge graph (stored in file) and then run notebook 2 or 3 to use it with either Neo4j or CosmosDB.
If you run the neo4j database with docker compose, edit the docker-compose.yml
file for a volume mount before starting it.