Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dokumen ini menunjukkan cara menggunakan penyematan yang disimpan untuk membuat indeks dan kueri
penyematan. Untuk informasi selengkapnya tentang menyimpan penyematan, lihat
Menyimpan penyematan vektor.
Anda dapat membuat indeks ScaNN, IVF, IVFFlat, dan HNSW dengan AlloyDB.
Sebelum memulai
Sebelum dapat mulai membuat indeks, Anda harus menyelesaikan prasyarat
berikut.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]],[]]