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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则