Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3605

Similarity search issues

$
0
0

hi @Hamza_Rezgui !!

You need to specify which metadata you want to return in your query, like so:

response = collection.query.near_text(
    query="teste",  # The model provider integration will automatically vectorize the query
    limit=3,
    distance=0.75,
    return_metadata=wvc.query.MetadataQuery(
        distance=True, creation_time=True, certainty=True, explain_score=True,
        is_consistent=True, last_update_time=True, score=True
    )
)
for obj in response.objects:
    print(obj.metadata)

note that explain_score and score for example should not have anything, as it is only used for hybrid and bm25.

Let me know if this helps.

Thanks!


Viewing all articles
Browse latest Browse all 3605

Trending Articles