Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Este documento mostra como usar embeddings armazenados para gerar índices e embeddings de consulta. Para mais informações sobre como armazenar embeddings, consulte
Armazenar embeddings de vetor.
É possível criar índices ScaNN, IVF, IVFFlat e HNSW com o AlloyDB.
Antes de começar
Antes de começar a criar índices, conclua os seguintes
pré-requisitos.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-07-09 UTC."],[[["This document explains how to create and use `ScaNN`, `IVF`, `IVFFlat`, and `HNSW` indexes with AlloyDB to query stored embeddings."],["Before creating indexes, ensure that embedding vectors are added to a table, the `vector` extension (version 0.5.0 or later) is installed, and the `alloydb_scann` extension is installed for `ScaNN` indexes."],["If you are upgrading to AlloyDB Omni, you must drop any indexes created with the older `postgres_ann` extension and recreate them using the `alloydb_scann` extension."],["The `alloydb_scann` extension is a prerequisite for creating ScaNN indexes and can be used with PostgreSQL 14 and 15 compatible databases."],["The `ScaNN` index feature is in Pre-GA and subject to limited support, according to the Pre-GA Offerings Terms in the Service Specific Terms."]]],[]]