Memorystore for Redis は、ベクトル データの保存とクエリをサポートしています。このページでは、Memorystore for Redis のベクトル検索について説明します。
Memorystore for Redis のベクトル検索は、オープンソースの LLM フレームワーク LangChain と互換性があります。LangChain でベクトル検索を使用すると、次のユースケースのソリューションを構築できます。
検索拡張生成(RAG)
LLM キャッシュ
レコメンデーション エンジン
セマンティック検索
画像の類似性検索
他の Google Cloud データベースとは異なり、Memorystore を使用して生成 AI データを保存するメリットは、Memorystore の速度です。Memorystore for Redis のベクトル検索はマルチスレッド クエリを活用し、低レイテンシで高スループットのクエリ処理(QPS)を実現します。
Memorystore には、速度と精度のバランスをとれるように 2 つの異なる検索アプローチも用意されています。HNSW(Hierarchical Navigable Small World)オプションでは、概算値をすばやく取得できます。近似一致で十分な大規模なデータセットに最適です。厳密な精度が必要な場合については、「FLAT」アプローチによって正確な結果が生成されますが、処理に要する時間が若干長くなる可能性があります。
ベクトルデータの読み取り / 書き込み速度を最速にするようにアプリケーションを最適化する場合は、Memorystore for Redis が最適なオプションとなる可能性があります。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# About vector search\n\nMemorystore for Redis supports storing and querying vector data. This page provides\ninformation about vector search on Memorystore for Redis.\n| **Important:** To use vector search, your instance must use Redis version 7.2 or newer. To use this feature, either [create](/memorystore/docs/redis/create-manage-instances) or [upgrade](/memorystore/docs/redis/upgrade-redis-version) your instance to Redis version 7.2.\n\nVector search on Memorystore for Redis is compatible with the open-source LLM\nframework [LangChain](https://python.langchain.com/docs/get_started/introduction).\nUsing vector search with LangChain lets you build solutions for the following\nuse cases:\n\n- Retrieval Augmented Generation (RAG)\n- LLM cache\n- Recommendation engine\n- Semantic search\n- Image similarity search\n\nThe advantage of using Memorystore to store your generative AI data is Memorystore's speed. Vector\nsearch on Memorystore for Redis leverages multi-threaded queries, resulting in\nhigh query throughput (QPS) at low latency.\n\nMemorystore also provides two distinct search approaches to help you find the right balance between speed and accuracy. The HNSW (Hierarchical Navigable Small World) option delivers fast, approximate results - ideal for large datasets where a close match is sufficient. If you require absolute precision, the 'FLAT' approach produces exact answers, though it may take slightly longer to process.\n\nIf you want to optimize your application for the fastest vector data read and write\nspeeds, Memorystore for Redis is likely the best option for you."]]