We will build a real-time product recommendation engine with LLM and graph database. In particular, we will use LLM to understand the category (taxonomy) of a product. In addition, we will use LLM to enumerate the complementary products - users are likely to buy together with the current product (pencil and notebook).
We will use Graph to explore the relationships between products that can be further used for product recommendations or labeling.
Please drop CocoIndex on Github a star to support us and stay tuned for more updates. Thank you so much 🥥🤗.
You can read the official CocoIndex Documentation for Property Graph Targets here.
Install dependencies:
pip install -e .Update index:
cocoindex update mainAfter the knowledge graph is built, you can explore the knowledge graph.
- If you're using Neo4j, you can open the explorer at http://localhost:7474, with username
neo4jand passwordcocoindex.
You can run the following Cypher query to get all relationships:
MATCH p=()-->() RETURN pI used CocoInsight (Free beta now) to troubleshoot the index generation and understand the data lineage of the pipeline. It just connects to your local CocoIndex server, with Zero pipeline data retention. Run following command to start CocoInsight:
cocoindex server -ci mainAnd then open the url https://cocoindex.io/cocoinsight.

