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
feita há 2 meses94 visualizações
1 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há 2 meses
profile pictureAWS
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas