You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method used to fetch vector similarity scores is returning only a list of records, rather than a list of tuples containing both the records and their corresponding similarity scores.
Stacktrace and code to create the bug
client = rg.Argilla(api_url, api_key)
dataset = client.datasets(name="datatset_name", workspace="workspace_name")
similar = rg.Similar(name="vector", value=vector)
records = dataset.records(query=rg.Query(similar=similar), with_vectors=True)
Iterate over the above records or just try to convert into to_list, to_json or to_dict methods, which doesnot return similarity score.
Expected behavior
The method should return a list of tuples, where each tuple contains a record and its corresponding similarity score when fetching vector similarity.
Environment
Argilla Version [e.g. 1.0.0]: 2.6.0
ElasticSearch Version [e.g. 7.10.2]: 8.15.1
Docker Image (optional) [e.g. argilla:v1.0.0]:
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The method used to fetch vector similarity scores is returning only a list of records, rather than a list of tuples containing both the records and their corresponding similarity scores.
Stacktrace and code to create the bug
client = rg.Argilla(api_url, api_key)
dataset = client.datasets(name="datatset_name", workspace="workspace_name")
similar = rg.Similar(name="vector", value=vector)
records = dataset.records(query=rg.Query(similar=similar), with_vectors=True)
Iterate over the above records or just try to convert into to_list, to_json or to_dict methods, which doesnot return similarity score.
Expected behavior
The method should return a list of tuples, where each tuple contains a record and its corresponding similarity score when fetching vector similarity.
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: