https://medium.com/@homayoun.srp/building-a-knowledge-graph-for-rag-using-neo4j-e69d3441d843
This project is divided into two main parts:
- Designing the Knowledge Graph and Ingesting Data
- Retrieving Data from the Knowledge Graph To clone this repository, run:
git clone https://github.com/homayounsr/Knowledge-Graph-for-RAG-using-Neo4j
Install Poetry if you haven't already:
pip install poetry
Then, install the project dependencies:
poetry install
Use main.py to run the application
If you want to use your personal data, follow these steps:
- Place your raw data into the Data folder.
- Clean the data using the preprocessing script.
- Convert the cleaned text data to JSON using the text2json script.
- Design your custom knowledge graph by modifying the Nodes_and_Relationships.ipynb notebook in the knowledge_graph folder.
- Use the generated JSON file as input for your knowledge graph.
- Modify Chunking.py to chunk your file and extract properties from it
Contributions are welcome! Please submit a pull request or open an issue if you have suggestions or improvements. If you have any questions you can send an email to [email protected]