Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Real-Time Recommendation Engine with LLM and Graph Database

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 🥥🤗. GitHub

Prerequisite

Documentation

You can read the official CocoIndex Documentation for Property Graph Targets here.

Run

Build the index

Install dependencies:

pip install -e .

Update index:

cocoindex update main

Browse the knowledge graph

After the knowledge graph is built, you can explore the knowledge graph.

You can run the following Cypher query to get all relationships:

MATCH p=()-->() RETURN p

Neo4j Browser Screenshot

CocoInsight

I 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 main

And then open the url https://cocoindex.io/cocoinsight.

CocoInsight Screenshot