shibing624 / similarities

Similarities: a toolkit for similarity calculation and semantic search. 相似度计算、匹配搜索工具包,支持亿级数据文搜文、文搜图、图搜图,python3开发,开箱即用。
https://pypi.org/project/similarities/
Apache License 2.0
776 stars 74 forks source link

为什么运行client时会出错?连接不上? #42

Open idea10101 opened 1 month ago

idea10101 commented 1 month ago

为啥运行client时会出错呢?连接不上?

c:/AI/similarities/examples/faiss_clip_search_client_demo.py 2024-10-03 19:46:10.422 | ERROR | similarities.faiss_clip_similarity:_post:520 - Request failed: HTTPConnectionPool(host='0.0.0.0', port=8002): Max retries exceeded with url: /emb (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001969831FC40>: Failed to establish a new connection: [WinError 10049] 在其上下文中,该请求的地址无效。')) Embedding for 'This is a sample text.': []

shibing624 commented 3 weeks ago

先后台启动serve,再运行client