Amazon Memorydb does it support return_fields for vector search?

0

I'm following this search query guide for querying vector: https://redis.readthedocs.io/en/stable/examples/search_vector_similarity_examples.html

When reaching the part of this:

query = (
    Query("@vector:[VECTOR_RANGE $radius $vec]=>{$YIELD_DISTANCE_AS: score}")
     .sort_by("score")
     .return_fields("id", "score")
     .paging(0, 3)
     .dialect(2)
)

I get an unknown field of 'id' or score.

This query seems to be working on my local using redis-stack but when using memory db it doesn't work. But removing the return_fields() work but it returns all the data..

Any idea why?

Qatanah
已提問 2 個月前檢視次數 94 次
1 個回答
1
已接受的答案

Amazon MemoryDB may not support the same vector search features as Redis Stack, such as return_fields for vector search, which can result in unknown field errors for 'id' or 'score'. This difference might be because MemoryDB and Redis Stack support different subsets of Redis commands and functionalities. For detailed MemoryDB capabilities, you should refer to its official documentation or AWS support for more accurate information. If return_fields() is not supported, removing it might default to returning all fields, as you observed. For the most accurate and up-to-date information, check Amazon MemoryDB's official documentation.

profile picture
專家
已回答 1 個月前
profile pictureAWS
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南