How to add AI search to your website, step by step
What AI search does that keyword search cannot
A standard site search looks for the words a visitor typed. If a shopper searches for a rain jacket for hiking and your page says waterproof shell for trekking, the ordinary search may miss it. AI search compares the meaning of the question with the meaning of each passage, so it can connect those two phrases.
Meaning alone is not always enough. Model numbers, part codes and brand names must still match exactly. Most production systems therefore combine both methods: a keyword match for exact terms, a meaning match for everything else, and one merged ranking of the two lists.
Index your content before anyone searches it
The index is only as good as the text put into it. Most of the work is collecting, cleaning and labelling content, and it is worth doing before you choose any tool.
- Collect the sources you want found: product pages, help articles, guides, policies and any PDFs customers download.
- Strip out menus, cookie banners, footers and repeated navigation text, which otherwise match almost every query.
- Split long pages into passages of a few short paragraphs each, so a result points to the right part of the page.
- Attach labels to each passage: language, category, product line, publish date and a link back to the page.
- Convert each passage into an embedding, a list of numbers that represents its meaning, using an embedding model from your provider. Store the result in a search index that supports both keyword and vector queries. Check each provider's current pricing and data terms before you send any content.
Handling product catalogues, filters and live data
A catalogue changes every day, so keep volatile data out of the search index. Prices, stock levels, delivery dates and promotions should be read from your store system at the moment of the search. The index should hold only the stable description of each product.
Use filters for what a customer selects. Colour, size, price range and category are structured fields. Apply them as hard filters before ranking, instead of asking the language model to read them from text. A visitor who asks for a medium navy shirt under a set budget should see only items that meet all three conditions.
Keep a short synonym list for terms your customers use but your catalogue does not, such as local names for a product. Send exact product codes to the keyword side of the search, so they are never lost to meaning matching.
Showing answers with sources, and saying when there is no answer
Visitors increasingly expect a direct answer, not a list of links. You can generate a short answer from the passages the search retrieved, and display the links to those passages beside it. Tell the model to answer only from those passages.
When nothing in the index matches well enough, the honest response is that the site does not have that answer, with a route to a person or a contact form. Set a minimum match threshold and test it with questions your site cannot answer. A confident, made-up answer about a refund policy does far more harm than no answer.
Measure what visitors search for
Search logs are the cheapest source of content ideas you will ever have. Read them on a schedule and act on what they show.
- Log each query, the results shown, and which result was clicked.
- Track queries that return nothing. This list tells you which pages to write next.
- Track whether a search led to an enquiry, a purchase or a next page, not only whether something was clicked.
- Review a sample of answers each week with the sources open, and correct the content or the instructions when an answer is wrong.
Mistakes that make AI search disappoint
Most failed projects make the same few errors. Avoid these and the search will feel reliable to visitors well before it is perfect.
Indexing old pages or drafts, so results point to content that has been removed. Letting the model answer from general knowledge about your products instead of your site. Showing answers without links, so nobody can check them. Ignoring the language of the visitor, especially when the site serves both Traditional and Simplified Chinese as well as English. Testing only with the team's own questions, when the search log holds the real ones.
Protect the visitor data in search logs
Visitors type names, phone numbers and order details into search boxes. Treat the search log as personal data. Mask anything that looks like a contact detail, keep logs for a set period and describe the purpose in your privacy notice. Check the rules for personal data in each market you serve, because they differ.
How Hundred Seas helps
Hundred Seas is a product studio in Taipei. We build AI search, AI agents and custom software on Claude and on OpenAI models, and we choose the model for each search on cost, speed, quality and where your content and visitor data must stay. We are a registered partner in Anthropic's Claude Partner Network and an OpenAI partner.
Our work starts with a scope step of about one week at a fixed price, which ends in a written plan and a firm quote. The build follows in weekly releases of working software, and a monthly run plan keeps the index, the search and the content pipeline up to date.
Questions
- Can I keep my current site search and add AI on top of it?
- Often yes. Many teams keep the existing keyword search as one input and add a meaning-based search beside it, then merge the two result lists. This lets you compare them on real queries before you switch anything off. Keep the old search until the new one clearly wins on the questions your customers actually ask.
- How do I stop AI search showing an old price?
- Do not store prices or stock levels in the search index. Have the search read them from your store or inventory system at the moment a result is shown, and let the index hold only the stable product description. Check the price again on the checkout page, because that is the figure the customer pays.
- Will it work for Traditional and Simplified Chinese pages?
- It can, but the two scripts need care. Index each page in the script it was written in, and label the variant so a Taiwan visitor sees Taiwan vocabulary. Test with native readers from each region, since a word that is correct in one may read as strange in the other.
- Do I need a specialised vector database?
- Not always. Many search engines already support vector fields alongside keyword search, and that may be enough for a small catalogue. A dedicated store becomes more useful at larger scale or when you need several search settings. Ask your builder to compare the options on your own content before choosing.
- Can AI search show customer data from my system?
- Only if you allow it, and only the fields each visitor is entitled to see. Limit a public site search to public content and the minimum live data it needs, and log every access. Public website search should never expose another customer's order or account details.