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
전문가
답변함 2달 전
profile pictureAWS
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인