Skip to main content

Drupal AI on Lutetia Shipworks

About this demo

Lutetia Shipworks is a made-up Paris boatbuilder, but everything around it is real Drupal 11. The same ~420 pages are searched with today's keyword search and with AI search, and an AI assistant, editor tools, automation and translation run on the same content. Every AI request goes to amazee.ai: chat models, embeddings and the vector database, all through the Drupal AI module and its amazee.ai provider.

From keywords to meaning

Search has moved from matching words to matching meaning, and from returning links to answering questions. Each approach still has its place. Run one query through keyword search and AI search at once, on the compare search page.

Keyword search with Solr

Search API + Apache Solr · lexical

The traditional approach. Every page is split into words and stored in an inverted index on a Solr server. A query returns pages that contain the words you typed, ranked by how often and where they appear (title matches count more).

Advantages

  • Exact and predictable: names, part numbers and codes are found every time.
  • Fast and cheap at scale; no per-query AI cost.
  • Mature: facets, highlighting, spellcheck, synonyms, stemming.
  • Easy to explain why a result matched.

Disadvantages

  • Needs the right words: "cheap boat one person can take to Rouen" finds nothing if pages say "affordable single-handed cruiser".
  • Every word must match by default, so longer natural questions return zero results.
  • Synonyms and tuning are manual work.
  • Another server to run and keep in sync.

Best for: known-item lookup, catalogues, admin search, legal or technical text where exact terms matter.

Try “Grand Salon 38”

Semantic search with a vector database

AI Search · amazee.ai embeddings · pgvector

Each page is split into chunks, and an embedding model turns each chunk into a long list of numbers that captures its meaning. These vectors live in amazee.ai's Postgres/pgvector database. A query is embedded the same way, and the closest chunks by cosine similarity are returned, whatever words they use.

Advantages

  • Matches meaning: "freight", "cargo barge" and "moving goods by river" all land together.
  • Robust to phrasing, typos and synonyms without manual tuning.
  • Cross-lingual by nature with multilingual embedding models.
  • The foundation for RAG: the same index feeds the chatbot below.

Disadvantages

  • A new query needs one embeddings call: about 2 seconds here, and a small cost. Repeated queries are cached and return in about 0.1 s.
  • The first indexing is slow and paid (every chunk of every page is embedded); after that only changed pages are embedded again.
  • Weaker on codes and part numbers that carry no meaning; scores are hard to explain.
  • Always returns "nearest" results, even when nothing is truly relevant.

Best for: research, support and knowledge bases where people describe what they need rather than name it.

Try a fuzzy question

Answers, not links: RAG chatbot

AI Assistant API · AI Chatbot · retrieval-augmented generation

Ask Lutetia (bottom right of every page) searches the vector database for the chunks most relevant to your question, then gives them to an LLM with instructions to answer only from that context and link the pages it used. It keeps the conversation, so you can ask follow-ups.

Advantages

  • One direct, conversational answer that combines several pages.
  • Grounded in your own content, with links back to the source.
  • Instructions shape tone, scope and what it refuses to answer.

Disadvantages

  • Slowest option: retrieval plus generation, several seconds per answer.
  • LLM cost per message; needs rate limits on a public site.
  • Can still misread or over-summarise; answers must be checked against the links.

Best for: guided discovery, product advice and support questions.

Open “Ask Lutetia” and try: I want to open a floating café on the Seine. Where do I begin?

Side by side

Start with what visitors type. These six searches were run on this site in November 2026; click any of them to run it again yourself.

What the visitor typed Solr keyword AI search
Exact name Grand Salon 38 10 results: Grand Salon 38 first 10 results: Grand Salon 38 and its pages on top
Typo barje for heavy cargo No results Last Mile Barge 30, Seine Bulk 110, Canal Carrier 38: the barges
Question how do I learn to take a boat through a lock on my own No results Licences and lessons, a solo skipper’s diary, Inland Waterways Licence Course: guides and a course
Description something that puts out fires on the river No results Salamander Fireboat: the boat and posts about it
Other language günstiges Boot für eine Person bis Rouen No results Kingfisher 8, Moorhen 6: the same top three as the English “cheap boat one person can take to Rouen”
Code that does not exist LSW-400 No results: correct: no page has it 10 weak matches: nearest pages, low scores (about 0.2)

Keyword search answered one of the six, and was right to find nothing for the made-up code. AI search answered five, matched it on the exact name, and its one weakness is the made-up code, where it shows weak matches instead of saying nothing was found.

The full comparison

Criterion Solr keyword Vector RAG chatbot
What visitors get
Natural-language questionsPoor: every word must matchVery goodVery good
Typos, synonyms, other wordingManual: synonym lists and spellcheck to maintainBuilt inBuilt in
Queries in other languagesNo: only finds the language of the pageYes: a German query finds English pagesYes: same index
Exact namesExcellentGood: same first result hereGood
Codes and part numbersExcellentFairFair
Facets and filtersYesMetadata filtersNo
OutputRanked linksRanked passagesA written answer with links
What it costs to run
Response time (this site)~10–300 ms~2–3 s for a new query, ~0.1 s when repeated (cached)~5–20 s
AI cost per queryNone1 embeddings call for a new query; repeats are freeEmbeddings + LLM
Indexing (this site, ~420 pages)Seconds~40 minutes, once; then only changed pagesShares the vector index
Tuning to keep results goodOngoing: synonyms, stemming, boosts, per languageNone to startInstructions for tone and scope
InfrastructureA Solr server per siteVector DB + embeddings API, both from amazee.aiThe same, plus an LLM
Explainable rankingYesSimilarity score onlyVia cited links

Keyword search is faster and cheaper per query, and it answers fewer of the searches people type. For a public site, lead with AI search and put RAG on top when people want an answer. Where exact codes matter, keep keyword precision too: AI Search can boost a Search API database or Solr index with vector results.

More Drupal AI on this site

Search is one use of Drupal AI. These run on this site too. Features marked Editor need a login; on a trial or a local copy, use drush uli.

Try it now

Ask Lutetia chatbot

A RAG assistant built with the AI Assistant API and AI Chatbot (Deep Chat) modules, answering from the vector index with links to sources.

Try it: open the chat bubble, bottom right, and ask “Who runs Pont Shuttle river buses, and how many?”

Try it now

AI search beside keyword search

AI Search with amazee.ai embeddings finds pages by meaning, side by side with the site's Solr keyword search. Both follow Drupal's access rules: staff-only pages appear only for staff.

Try it: search in plain language and watch Solr come back empty while AI search finds the right pages.

Open compare search
Editor

AI in the editor (CKEditor)

An AI button in the CKEditor toolbar: continue writing, summarise, change tone (including “Parisian café menu”), translate, fix spelling, reformat HTML, or run your own prompt on selected text.

Try it: Content › Add content › Blog post, select a paragraph, click the AI button.

Add a blog post
Editor

AI Automators

Fields that fill themselves. Blog post tags are chosen by an LLM from the body when you save, reusing existing tags where they fit. Automators can also write summaries, extract data, generate images or chain steps.

Try it: save a blog post with an empty Tags field, then look at its tags.

Editor

AI Content Suggestions

On every edit form: suggested titles, a summary, a readability check, tone analysis, content moderation, and taxonomy term suggestions for the text you wrote.

Try it: edit any boat or post and open the AI suggestions panel.

Edit the Pont Shuttle 24
Editor

AI Translate

One-click translation of whole pages into German, French and Japanese, as real Drupal translations you can review and edit.

Try it: open a page's Translate tab and choose “AI Translate”.

Translate a boat page
Admin

AI API Explorer

A playground for site builders: try chat, embeddings and other operations against any configured provider and model, and see the code to call them from PHP.

Open the explorers
Admin

AI Logging

Every AI request this site makes is logged with its provider, model and tags, so you can see what each feature uses. Prompts and answers are not stored: the site keeps nothing.

View the AI log
Admin

One provider: amazee.ai

Chat, embeddings and the vector database all come from the amazee.ai provider. Features ask for model aliases like chat and embeddings, keys live in the Key module, and switching provider is one setting.

AI default providers

What else Drupal AI can do

Not installed on this demo, but part of the same ecosystem:

  • AI Agents: agents that build content types, fields and views, or edit content, from a chat prompt.
  • Image AI: alt text generation, image classification and image generation in automators.
  • ECA + AI: no-code workflows where an AI step classifies, routes or rewrites content on events.
  • Field widget actions and AI validations: AI buttons next to any field, and validation rules written in plain language.
  • External moderation: screening of user-submitted text before it reaches an LLM.
  • MCP: exposing Drupal content and actions to external AI tools.