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-11 UTC."],[[["\u003cp\u003eThis guide outlines how to generate indexes and query embeddings using stored embeddings in AlloyDB.\u003c/p\u003e\n"],["\u003cp\u003eAlloyDB supports the creation of \u003ccode\u003eScaNN\u003c/code\u003e, \u003ccode\u003eIVF\u003c/code\u003e, \u003ccode\u003eIVFFlat\u003c/code\u003e, and \u003ccode\u003eHNSW\u003c/code\u003e index types, each requiring a unique name within the database.\u003c/p\u003e\n"],["\u003cp\u003eBefore creating indexes, you need to ensure that embedding vectors are stored in an AlloyDB table and the \u003ccode\u003evector\u003c/code\u003e extension (version 0.5.0 or later) is installed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydb_scann\u003c/code\u003e extension is necessary for generating \u003ccode\u003eScaNN\u003c/code\u003e indexes and is compatible with PostgreSQL 14 and 15.\u003c/p\u003e\n"],["\u003cp\u003eUsers upgrading to AlloyDB Omni must drop any \u003ccode\u003epostgres_ann\u003c/code\u003e indexes, upgrade, and then recreate them using the renamed \u003ccode\u003ealloydb_scann\u003c/code\u003e extension.\u003c/p\u003e\n"]]],[],null,[]]