Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento mostra come utilizzare gli embedding archiviati per generare indici e query
gli embedding. Per saperne di più su come memorizzare gli embedding, consulta
Memorizzare gli embedding di vettori.
Puoi creare indici ScaNN, IVF, IVFFlat e HNSW con AlloyDB.
Prima di iniziare
Prima di poter iniziare a creare gli indici, devi completare i seguenti prerequisiti.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-04-11 UTC."],[[["This guide outlines how to generate indexes and query embeddings using stored embeddings in AlloyDB."],["AlloyDB supports the creation of `ScaNN`, `IVF`, `IVFFlat`, and `HNSW` index types, each requiring a unique name within the database."],["Before creating indexes, you need to ensure that embedding vectors are stored in an AlloyDB table and the `vector` extension (version 0.5.0 or later) is installed."],["The `alloydb_scann` extension is necessary for generating `ScaNN` indexes and is compatible with PostgreSQL 14 and 15."],["Users upgrading to AlloyDB Omni must drop any `postgres_ann` indexes, upgrade, and then recreate them using the renamed `alloydb_scann` extension."]]],[]]