From aa5bf7e61d85dde5b7977c5b3de69ed39dc8e9ad Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Wed, 1 Jan 2025 13:32:01 +0800 Subject: [PATCH] fold embedding vectors in item labels --- src/components/common/CategorizedItems.vue | 5 +- src/components/common/TopItemsCard.vue | 5 +- src/components/common/UserRecommend.vue | 5 +- .../layout/MainFooter/MainFooter.vue | 2 +- src/utils/index.js | 78 ++++++------------- src/views/ItemNeighbors.vue | 7 +- src/views/Items.vue | 4 +- 7 files changed, 44 insertions(+), 62 deletions(-) diff --git a/src/components/common/CategorizedItems.vue b/src/components/common/CategorizedItems.vue index 40b5813..35978c4 100644 --- a/src/components/common/CategorizedItems.vue +++ b/src/components/common/CategorizedItems.vue @@ -50,7 +50,7 @@ - {{ item.Labels }} + {{ fold(item.Labels) }} @@ -73,6 +73,8 @@ diff --git a/src/components/common/TopItemsCard.vue b/src/components/common/TopItemsCard.vue index a890979..0050e79 100644 --- a/src/components/common/TopItemsCard.vue +++ b/src/components/common/TopItemsCard.vue @@ -35,7 +35,7 @@ {{ label }} - {{ item.Labels }} + {{ fold(item.Labels) }} @@ -69,6 +69,8 @@ diff --git a/src/components/common/UserRecommend.vue b/src/components/common/UserRecommend.vue index 15f0912..a6939dc 100644 --- a/src/components/common/UserRecommend.vue +++ b/src/components/common/UserRecommend.vue @@ -59,7 +59,7 @@
- {{ item.Labels }} + {{ fold(item.Labels) }}
@@ -93,6 +93,8 @@ diff --git a/src/views/Items.vue b/src/views/Items.vue index 293ac25..506418b 100644 --- a/src/views/Items.vue +++ b/src/views/Items.vue @@ -70,7 +70,7 @@ {{ format_date_time(item.Timestamp) }} - {{ item.Labels }} + {{ fold(item.Labels) }} {{ item.Comment }} @@ -110,6 +110,7 @@