{"schemaVersion":1,"id":"pgvector","name":"pgvector","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/pgvector/","officialUrl":"https://github.com/pgvector/pgvector","isCatalog":false,"description":"A PostgreSQL extension for vector search: it stores embeddings alongside ordinary tables and adds neighbor-search indexes.","tasks":["Add embedding search to PostgreSQL","Load vectors and check a nearest-neighbor query with the required index"],"categoryIds":["backend"],"subcategoryIds":["backend.databases","backend.search"],"tags":["pgvector","database","Development"],"aliases":["pgvector/pgvector","pgvector","postgres-vector","similarity-search-extension"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Installing the extension and running vector queries in your own PostgreSQL.","paidUsage":"Self-hosting requires compute resources and storage. Managed PostgreSQL and external embedding generation may have separate paid plans or free terms from the chosen provider; the pgvector license does not pay for them or require purchasing these services.","license":"PostgreSQL License: a permissive extension license, not MIT.","selectionGuide":{"purpose":"Add embedding search to PostgreSQL","chooseWhen":["Add embedding search to PostgreSQL","Load vectors and check a nearest-neighbor query with the required index"],"considerInstead":[],"requirements":["Enable the extension with CREATE EXTENSION vector in every required database. To use an index, the query needs ascending ORDER BY on the distance operator and LIMIT."],"limitations":["Costs and limits of free use: Self-hosting requires compute resources and storage. Managed PostgreSQL and external embedding generation may have separate paid plans or free terms from the chosen provider; the pgvector license does not pay for them or require purchasing these services.","Terms of use: PostgreSQL License: a permissive extension license, not MIT.","With approximate search, WHERE applies after the index scan: results may contain fewer rows. Iterative scan broadens the search until enough rows are found or the configured limit is reached."],"faq":[{"question":"What can you use for free in pgvector?","answer":"Installing the extension and running vector queries in your own PostgreSQL."},{"question":"What additional costs might arise with pgvector?","answer":"Self-hosting requires compute resources and storage. Managed PostgreSQL and external embedding generation may have separate paid plans or free terms from the chosen provider; the pgvector license does not pay for them or require purchasing these services."},{"question":"What terms of use matter for pgvector?","answer":"PostgreSQL License: a permissive extension license, not MIT."},{"question":"How do you get started with pgvector?","answer":"Define a vector column and document embedding source. Load vectors and check a nearest-neighbor query with the required index. Check schema changes, indexes, and data recovery."},{"question":"How do exact search and HNSW/IVFFlat indexes differ in pgvector?","answer":"Search is exact by default. HNSW builds a graph without training; IVFFlat trains on data and divides vectors into lists. Approximate indexes accelerate queries at the cost of recall; search parameters control this tradeoff."}],"related":[],"sources":["https://github.com/pgvector/pgvector","https://raw.githubusercontent.com/pgvector/pgvector/HEAD/README.md","https://raw.githubusercontent.com/pgvector/pgvector/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add embedding search to PostgreSQL.","inputs":["A schema, test dataset, and queries.","A supported database or runtime."],"steps":["Define a vector column and document embedding source.","Load vectors and check a nearest-neighbor query with the required index.","Check schema changes, indexes, and data recovery."],"checks":["Query results match the reference data.","Check access permissions, backup recovery, and load before production use."]},"sources":["https://github.com/pgvector/pgvector","https://raw.githubusercontent.com/pgvector/pgvector/HEAD/README.md","https://raw.githubusercontent.com/pgvector/pgvector/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"Purpose, the current repository license, and the boundaries between code, services, and models were reviewed. The product was not run or security-audited.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Database / data tool","kind":"tool","pricingNote":"Installing the extension and running vector queries in your own PostgreSQL. Self-hosting requires compute resources and storage. Managed PostgreSQL and external embedding generation may have separate paid plans or free terms from the chosen provider; the pgvector license does not pay for them or require purchasing these services.","notes":null,"labeledSources":[{"url":"https://github.com/pgvector/pgvector","label":"Official source"},{"url":"https://raw.githubusercontent.com/pgvector/pgvector/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/pgvector/pgvector/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"custom","title":"Custom license — this product's terms apply","scope":null,"summary":"The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.","url":null}],"entryIds":[],"composition":null}