-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About client API searching function #921
Comments
Hi, as the tip suggests, do you have a flow with encoder and indexer? |
Like this? I always feel that something is not right. from clip_client import Client c = Client('grpc://0.0.0.0:51000') da = [ r = c.encode(da) r = c.index(da) print(r.summary())result = c.search(['smile'], limit=2) print(result['@m', ['text', 'scores__cosine']]) |
You may learn how to start a search flow with this documentation, and then you may use |
Follow this document, it will fail:
|
https://clip-as-service.jina.ai/user-guides/client/#searching
Following the example, the result returns an empty list []
instead of the expected: [['she smiled, with pain', ''], [{'value': 0.09604918956756592}, {'value': 0.7994111776351929}]]
The text was updated successfully, but these errors were encountered: