AI article
Add AI search to existing application
Community description: How to add semantic search to an existing app using an embedding model and pgvector ...
Dev.to | Sep 13, 2026 | Carlo Gino Catapang
Automated excerpt
On search, embed the search term the same way and ask the database which rows are closest. Now search that same list for "groceries". Step 3: Search with the same model The search term goes through the exact same embedding call as the stored text. Substring search gets that right every time. Backfill the rows that have no embedding The search query skips rows where embedding is null, so a todo without an embedding is invisible to AI search.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.