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-04-21 UTC."],[[["This guide outlines how to generate indexes and query embeddings using stored embeddings in AlloyDB, building upon the foundation of storing vector embeddings."],["AlloyDB supports the creation of `ScaNN`, `IVF`, `IVFFlat`, and `HNSW` index types, and for `ScaNN` indexes the `alloydb_scann` extension is necessary alongside the `vector` extension."],["Before creating indexes, you must ensure that vector embeddings are stored in an AlloyDB table, and the `vector` extension (version 0.5.0 or later) is installed."],["The `postgres_ann` extension has been renamed to `alloydb_scann`, so any existing indexes using the prior extension must be dropped before upgrading, and re-created after the update."],["Index names must be unique to each table in the database because they are shared across the database."]]],[]]