From 35be66d41a1359c79f6a06bd051697bfd9cff79e Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 16:12:57 -0700 Subject: [PATCH 1/6] update product recommendation example description --- README.md | 2 +- examples/product_taxonomy_knowledge_graph/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac602edb..3c7a9a93 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ It defines an index flow like this: | [Docs to Knowledge Graph](examples/docs_to_knowledge_graph) | Extract relationships from Markdown documents and build a knowledge graph | | [Embeddings to Qdrant](examples/text_embedding_qdrant) | Index documents in a Qdrant collection for semantic search | | [FastAPI Server with Docker](examples/fastapi_server_docker) | Run the semantic search server in a Dockerized FastAPI setup | -| [Product_Taxonomy_Knowledge_Graph](examples/product_taxonomy_knowledge_graph) | Build knowledge graph for product recommendations | +| [Recommendation Engine with Knowledge Graph](examples/product_taxonomy_knowledge_graph) | Build real-time product recommendations with LLM and knowledge graph | | [Image Search with Vision API](examples/image_search_example) | Generates detailed captions for images using a vision model, embeds them, enables live-updating semantic search via FastAPI and served on a React frontend| More coming and stay tuned 👀! diff --git a/examples/product_taxonomy_knowledge_graph/README.md b/examples/product_taxonomy_knowledge_graph/README.md index ebda11a1..24da1f06 100644 --- a/examples/product_taxonomy_knowledge_graph/README.md +++ b/examples/product_taxonomy_knowledge_graph/README.md @@ -1,6 +1,6 @@ -# Build Real-Time Product Recommendation based on LLM Taxonomy Extraction and Knowledge Graph +# Build Real-Time Recommendation Engine with LLM and Knowledge Graph -We will process a list of products and use LLM to extract the taxonomy and complimentary taxonomy for each product. +We will process a list of products and use LLM to extract the taxonomy and complimentary taxonomy for each product and find connections between products. Please drop [CocoIndex on Github](https://github.com/cocoindex-io/cocoindex) a star to support us and stay tuned for more updates. Thank you so much 🥥🤗. [![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex) From f4472de0a94dbfb3fac5d9204bfe56540cdd41b8 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 16:54:12 -0700 Subject: [PATCH 2/6] rename folder --- .../.env | 0 .../README.md | 4 +++- .../img/cocoinsight.png | Bin .../img/neo4j.png | Bin .../main.py | 0 .../products/p1.json | 0 .../products/p2.json | 0 .../products/p3.json | 0 .../products/p4.json | 0 .../products/p5.json | 0 .../products/p6.json | 0 .../products/p7.json | 0 .../products/p8.json | 0 .../products/p9.json | 0 .../pyproject.toml | 0 15 files changed, 3 insertions(+), 1 deletion(-) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/.env (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/README.md (81%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/img/cocoinsight.png (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/img/neo4j.png (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/main.py (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p1.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p2.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p3.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p4.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p5.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p6.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p7.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p8.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/products/p9.json (100%) rename examples/{product_taxonomy_knowledge_graph => product_recommendation}/pyproject.toml (100%) diff --git a/examples/product_taxonomy_knowledge_graph/.env b/examples/product_recommendation/.env similarity index 100% rename from examples/product_taxonomy_knowledge_graph/.env rename to examples/product_recommendation/.env diff --git a/examples/product_taxonomy_knowledge_graph/README.md b/examples/product_recommendation/README.md similarity index 81% rename from examples/product_taxonomy_knowledge_graph/README.md rename to examples/product_recommendation/README.md index 24da1f06..c554655b 100644 --- a/examples/product_taxonomy_knowledge_graph/README.md +++ b/examples/product_recommendation/README.md @@ -1,6 +1,8 @@ # Build Real-Time Recommendation Engine with LLM and Knowledge Graph -We will process a list of products and use LLM to extract the taxonomy and complimentary taxonomy for each product and find connections between products. +We will build a real-time product recommendation engine with LLM and knowledge graph. 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 Knowledge Graph to explore the relationships between products that can be further used for product recommendations or labeling. Please drop [CocoIndex on Github](https://github.com/cocoindex-io/cocoindex) a star to support us and stay tuned for more updates. Thank you so much 🥥🤗. [![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex) diff --git a/examples/product_taxonomy_knowledge_graph/img/cocoinsight.png b/examples/product_recommendation/img/cocoinsight.png similarity index 100% rename from examples/product_taxonomy_knowledge_graph/img/cocoinsight.png rename to examples/product_recommendation/img/cocoinsight.png diff --git a/examples/product_taxonomy_knowledge_graph/img/neo4j.png b/examples/product_recommendation/img/neo4j.png similarity index 100% rename from examples/product_taxonomy_knowledge_graph/img/neo4j.png rename to examples/product_recommendation/img/neo4j.png diff --git a/examples/product_taxonomy_knowledge_graph/main.py b/examples/product_recommendation/main.py similarity index 100% rename from examples/product_taxonomy_knowledge_graph/main.py rename to examples/product_recommendation/main.py diff --git a/examples/product_taxonomy_knowledge_graph/products/p1.json b/examples/product_recommendation/products/p1.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p1.json rename to examples/product_recommendation/products/p1.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p2.json b/examples/product_recommendation/products/p2.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p2.json rename to examples/product_recommendation/products/p2.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p3.json b/examples/product_recommendation/products/p3.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p3.json rename to examples/product_recommendation/products/p3.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p4.json b/examples/product_recommendation/products/p4.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p4.json rename to examples/product_recommendation/products/p4.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p5.json b/examples/product_recommendation/products/p5.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p5.json rename to examples/product_recommendation/products/p5.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p6.json b/examples/product_recommendation/products/p6.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p6.json rename to examples/product_recommendation/products/p6.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p7.json b/examples/product_recommendation/products/p7.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p7.json rename to examples/product_recommendation/products/p7.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p8.json b/examples/product_recommendation/products/p8.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p8.json rename to examples/product_recommendation/products/p8.json diff --git a/examples/product_taxonomy_knowledge_graph/products/p9.json b/examples/product_recommendation/products/p9.json similarity index 100% rename from examples/product_taxonomy_knowledge_graph/products/p9.json rename to examples/product_recommendation/products/p9.json diff --git a/examples/product_taxonomy_knowledge_graph/pyproject.toml b/examples/product_recommendation/pyproject.toml similarity index 100% rename from examples/product_taxonomy_knowledge_graph/pyproject.toml rename to examples/product_recommendation/pyproject.toml From a8a6769589744a02f277a54f01fa2465998e954d Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 16:54:40 -0700 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c7a9a93..b09e7621 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ It defines an index flow like this: | [Docs to Knowledge Graph](examples/docs_to_knowledge_graph) | Extract relationships from Markdown documents and build a knowledge graph | | [Embeddings to Qdrant](examples/text_embedding_qdrant) | Index documents in a Qdrant collection for semantic search | | [FastAPI Server with Docker](examples/fastapi_server_docker) | Run the semantic search server in a Dockerized FastAPI setup | -| [Recommendation Engine with Knowledge Graph](examples/product_taxonomy_knowledge_graph) | Build real-time product recommendations with LLM and knowledge graph | +| [Product Recommendation with Knowledge Graph](examples/product_recommendation) | Build real-time product recommendations with LLM and knowledge graph | | [Image Search with Vision API](examples/image_search_example) | Generates detailed captions for images using a vision model, embeds them, enables live-updating semantic search via FastAPI and served on a React frontend| More coming and stay tuned 👀! From 554f593b3510e09d658637b2a4ffb163f0da8c17 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 16:56:18 -0700 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b09e7621..8b3cb3a2 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ It defines an index flow like this: | [Docs to Knowledge Graph](examples/docs_to_knowledge_graph) | Extract relationships from Markdown documents and build a knowledge graph | | [Embeddings to Qdrant](examples/text_embedding_qdrant) | Index documents in a Qdrant collection for semantic search | | [FastAPI Server with Docker](examples/fastapi_server_docker) | Run the semantic search server in a Dockerized FastAPI setup | -| [Product Recommendation with Knowledge Graph](examples/product_recommendation) | Build real-time product recommendations with LLM and knowledge graph | +| [Product Recommendation](examples/product_recommendation) | Build real-time product recommendations with LLM and graph database| | [Image Search with Vision API](examples/image_search_example) | Generates detailed captions for images using a vision model, embeds them, enables live-updating semantic search via FastAPI and served on a React frontend| More coming and stay tuned 👀! From 5000124e5c7cf9544471863ce4aaece8786ff30f Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 17:07:15 -0700 Subject: [PATCH 5/6] Update README.md --- examples/product_recommendation/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/product_recommendation/README.md b/examples/product_recommendation/README.md index c554655b..51552a6b 100644 --- a/examples/product_recommendation/README.md +++ b/examples/product_recommendation/README.md @@ -1,6 +1,6 @@ -# Build Real-Time Recommendation Engine with LLM and Knowledge Graph +# Build Real-Time Recommendation Engine with LLM and Graph Database -We will build a real-time product recommendation engine with LLM and knowledge graph. 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 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 Knowledge Graph to explore the relationships between products that can be further used for product recommendations or labeling. From 315e0510afffdb9792f6d15c92f06e04699861e6 Mon Sep 17 00:00:00 2001 From: Linghua Jin Date: Sun, 18 May 2025 17:07:46 -0700 Subject: [PATCH 6/6] Update README.md --- examples/product_recommendation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/product_recommendation/README.md b/examples/product_recommendation/README.md index 51552a6b..96565782 100644 --- a/examples/product_recommendation/README.md +++ b/examples/product_recommendation/README.md @@ -2,7 +2,7 @@ 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 Knowledge Graph to explore the relationships between products that can be further used for product recommendations or labeling. +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](https://github.com/cocoindex-io/cocoindex) a star to support us and stay tuned for more updates. Thank you so much 🥥🤗. [![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex)