- Newest
- Most votes
- Most comments
Hello.
Is the vector search option enabled on your MemoryDB cluster as described in the following documentation?
https://docs.aws.amazon.com/memorydb/latest/devguide/vector-search-cluster.html
To use vector search commands like FT.CREATE in Amazon MemoryDB with Valkey, you need to explicitly enable the vector search capability when creating your cluster. Based on your error message "Command not enabled, Vector Search is not supported on this cluster configuration," it appears that your cluster was created without enabling vector search.
When creating a MemoryDB cluster with vector search capability, you need to:
- Enable the Vector Search capability specifically during cluster creation
- Use the appropriate parameter group - when vector search is enabled, you must use
default.memorydb-valkey7.searchparameter group - The number of shards will be fixed when vector search is enabled
In your Python CDK code for the CFNCluster, you need to ensure you're setting the appropriate parameters to enable vector search. The cluster creation should include the vector search parameter explicitly.
Once you have a properly configured cluster with vector search enabled, you'll be able to use commands like FT.CREATE, FT.SEARCH, FT.AGGREGATE, and other vector search commands.
Note that after creating a vector index using FT.CREATE, there's a backfilling process that runs in the background to scan the keyspace and add keys to the index. During this backfilling process, query operations will return an error, so you'll need to wait until the backfill is complete (which you can check using the FT.INFO command).
Sources
Vector search commands - Amazon MemoryDB
Vector search for Amazon MemoryDB is now generally available | AWS News Blog
Vector search overview - Amazon MemoryDB
Getting started with MemoryDB - Amazon MemoryDB
Relevant content
asked a year ago
asked 3 years ago
asked 2 years ago

Ah you're correct it was set to disabled in the AWS console. Not sure exactly how to set this value from the cdk though. Can this be done? It looks like its this parameter group setting. Thanks
It doesn't seem to be a CDK parameter. It looks like it would be fine to use "default.memorydb-valkey7.search" in the cluster parameter group. The parameter "search-enabled" must be set to "yes". Therefore, using "default.memorydb-valkey7.search" should enable vector search.