As you are using near_text or pure vector searching, the result will include a distance value, not a score. If you would like to obtain score as a result, this is available when using hybrid search or BM25
Here’s an example on how you can correctly configure distance and enable it:
from weaviate.classes.query import MetadataQuery
jeopardy = client.collections.use("JeopardyQuestion")
response = jeopardy.query.near_text(
query="animals in movies",
limit=2,
return_metadata=MetadataQuery(distance=True)
)
for o in response.objects:
print(o.properties)
print(o.metadata.distance)