Real-time vector search across science lab manufacturing products powered by Next.js, OpenAI & Pinecone
Next.js API
Captures intent & query text
OpenAI Embeddings
Translates query into 1,536 math dimensions
Pinecone Vector DB
Finds nearest product coordinates
GPT-4o Mini (RAG)
Generates response strictly from CMS data
Search result matches will show here.
An automated pipeline connecting content, vector search, and AI generation.
When an editor creates, edits, or deletes product details in Sanity Studio, Sanity automatically sends a webhook alert to our server.
Our backend sends the updated text to OpenAI, converting words into a list of mathematical numbers (vector coordinates) representing semantic meaning.
Those mathematical coordinates are saved in Pinecone—a specialised vector database built to compare data meaning at high speed.
User queries are converted into coordinates, matched in Pinecone, and passed to OpenAI to write an accurate, grounded answer.
This solution operates as a flexible AI discovery engine hosted on Vercel. It can be deployed in two distinct ways depending on your enterprise architecture:
Serves as a complete, self-contained AI web solution paired with any frontend rendering engine or CMS (e.g., Next.js, WordPress, or Drupal).
Runs alongside your existing enterprise platform (e.g., ASP.NET, Sitecore) to add natural language search and AI visibility without replacing your legacy database or interrupting operations.
"Whether built as a new standalone frontend or deployed as a zero-risk sidecar to your monolithic database, this architecture delivers instant AI search, automated catalog sync, and next-generation search engine visibility."
Yes. Sanity acts as a specialised Headless Content Graph that sits parallel to your primary database.
Embed the search UI onto your existing site using a single line of JavaScript (like Google Analytics) or via a fast CDN routing rule.
Vercel serves an edge-cached API (GET /api/schema/[id]) that your legacy site fetches and injects directly into its HTML <head> tag. This ensures external AI tools (ChatGPT, Perplexity) accurately parse and cite your catalog.
The system automatically publishes a standardised llms.txt file and an AI-specific sitemap, giving third-party AI crawlers a fast, structured gateway to index your full catalog.
The middleware analyses customer search queries. When interest surges for a specific topic (e.g., "Best centrifuges for cold room assays"), Next.js automatically generates permanent, pre-rendered Q&A pages optimised for Google AI Overviews.