diff --git a/config/config.yaml b/config/config.yaml index 10d9265..ba46bcf 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -371,11 +371,11 @@ services: image_backends: clip_as_service: server: "grpc://127.0.0.1:51000" - model_name: "CN-CLIP/ViT-H-14" + model_name: "CN-CLIP/ViT-L-14" batch_size: 8 normalize_embeddings: true local_cnclip: - model_name: "ViT-H-14" + model_name: "ViT-L-14" device: null batch_size: 8 normalize_embeddings: true diff --git a/docs/常用查询 - ES.md b/docs/常用查询 - ES.md index c028b8c..e3b3af0 100644 --- a/docs/常用查询 - ES.md +++ b/docs/常用查询 - ES.md @@ -1,5 +1,8 @@ +# 查看所有租户索引 + curl -u 'saas:4hOaLaf41y2VuI8y' -X GET 'http://localhost:9200/_cat/indices/search_products_tenant_*?v' + # ====================================== # 租户相关 # ====================================== diff --git a/docs/常用查询 - sql.sql b/docs/常用查询 - sql.sql index 4b74e69..74229e7 100644 --- a/docs/常用查询 - sql.sql +++ b/docs/常用查询 - sql.sql @@ -575,6 +575,28 @@ SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_inde 删除下面两个表中 tenant_id=163的所有行 shoplazza_sync_log shoplazza_product_index_increment +``` +# 先统计 tenant_id=163 的行数 +cd /data/saas-search && MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e " +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163 +UNION ALL +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163; +" + +# 执行删除 +cd /data/saas-search && MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e " +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163 +UNION ALL +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163; +" + +# 再次统计 tenant_id=163 的行数 +MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e " +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163 +UNION ALL +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163; +" +``` 然后触发重新安装: https://47167113.myshoplaza.com/admin/oauth/redirect_from_partner_center?client_id=kqN5QTBARwPAEO_ThHi8mikyFC_4DLkwOOrzQsUL3L0 diff --git a/mappings/search_products.json b/mappings/search_products.json index ebd729b..6a796c4 100644 --- a/mappings/search_products.json +++ b/mappings/search_products.json @@ -1002,7 +1002,7 @@ "properties": { "vector": { "type": "dense_vector", - "dims": 1024, + "dims": 768, "index": true, "similarity": "dot_product", "element_type": "bfloat16" -- libgit2 0.21.2