Commit 1681a1358410e0409d8d06bf8ae1132060d82ff0

Authored by tangwang
1 parent 5a01af3c

image_embeddin sizeg配置跟服务统一到768

config/config.yaml
... ... @@ -371,11 +371,11 @@ services:
371 371 image_backends:
372 372 clip_as_service:
373 373 server: "grpc://127.0.0.1:51000"
374   - model_name: "CN-CLIP/ViT-H-14"
  374 + model_name: "CN-CLIP/ViT-L-14"
375 375 batch_size: 8
376 376 normalize_embeddings: true
377 377 local_cnclip:
378   - model_name: "ViT-H-14"
  378 + model_name: "ViT-L-14"
379 379 device: null
380 380 batch_size: 8
381 381 normalize_embeddings: true
... ...
docs/常用查询 - ES.md
1 1  
2 2  
  3 +# 查看所有租户索引
  4 + curl -u 'saas:4hOaLaf41y2VuI8y' -X GET 'http://localhost:9200/_cat/indices/search_products_tenant_*?v'
  5 +
3 6 # ======================================
4 7 # 租户相关
5 8 # ======================================
... ...
docs/常用查询 - sql.sql
... ... @@ -575,6 +575,28 @@ SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_inde
575 575 删除下面两个表中 tenant_id=163的所有行
576 576 shoplazza_sync_log
577 577 shoplazza_product_index_increment
  578 +```
  579 +# 先统计 tenant_id=163 的行数
  580 +cd /data/saas-search && MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e "
  581 +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163
  582 +UNION ALL
  583 +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163;
  584 +"
  585 +
  586 +# 执行删除
  587 +cd /data/saas-search && MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e "
  588 +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163
  589 +UNION ALL
  590 +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163;
  591 +"
  592 +
  593 +# 再次统计 tenant_id=163 的行数
  594 +MYSQL_PWD='qY8tgodLoA&KT#yQ' mysql -h 10.200.16.14 -P 3316 -u root saas -N -e "
  595 +SELECT 'shoplazza_sync_log', COUNT(*) FROM shoplazza_sync_log WHERE tenant_id = 163
  596 +UNION ALL
  597 +SELECT 'shoplazza_product_index_increment', COUNT(*) FROM shoplazza_product_index_increment WHERE tenant_id = 163;
  598 +"
  599 +```
578 600  
579 601 然后触发重新安装:
580 602 https://47167113.myshoplaza.com/admin/oauth/redirect_from_partner_center?client_id=kqN5QTBARwPAEO_ThHi8mikyFC_4DLkwOOrzQsUL3L0
... ...
mappings/search_products.json
... ... @@ -1002,7 +1002,7 @@
1002 1002 "properties": {
1003 1003 "vector": {
1004 1004 "type": "dense_vector",
1005   - "dims": 1024,
  1005 + "dims": 768,
1006 1006 "index": true,
1007 1007 "similarity": "dot_product",
1008 1008 "element_type": "bfloat16"
... ...