How Lumio's knowledge engine
actually works.
A deep dive into content sync, TF-IDF vector indexing, the query pipeline, FAQ management, and topic routing. Everything that powers Lumio's zero-hallucination answers.
Content Sync
Lumio reads all published WordPress content and builds a structured knowledge base from it. The sync process runs in batches to stay safe on any hosting environment.
batch_size: 200 // posts per batch
post_types: ["post", "page", "product", "custom_type"]
fields: ["title", "content", "excerpt", "acf_*", "meta_*"]
woo_fields: ["price", "sku", "stock", "weight", "dimensions"]
TF-IDF Vector Index
After content sync completes, Lumio builds a TF-IDF (Term Frequency-Inverse Document Frequency) vector index. This mathematical model converts your content into searchable vectors that enable semantic matching.
Query Pipeline
When a visitor asks a question, Lumio runs it through a multi-stage pipeline to find the best possible answer from your content. Here is every stage in order:
Keyword Search with Synonym Expansion
The query is scanned for keywords and expanded with synonyms. This catches common rephrasings visitors use.
Entity Detection
Lumio recognizes product names, page titles, and category names mentioned in the query. Detected entities get a scoring boost.
TF-IDF Vector Search
The query is vectorized and compared against the document index using cosine similarity. This catches conceptual matches beyond exact keywords.
FAQ Table Lookup
Your manually curated FAQ pairs are checked. If a match is found, the FAQ answer is used directly, providing precise control over critical responses.
Best Excerpt Selection & AI Generation
The highest-scoring content excerpt is selected and sent to the AI model (Groq or OpenAI) along with the system prompt. The AI generates a natural-language answer grounded exclusively in your content.
Synonym Expansion Map
Built-in synonym mappings ensure visitors find answers regardless of how they phrase the question:
| Visitor Says | Also Matches | Use Case |
|---|---|---|
refund | return, money back | Return policies |
shipping | delivery, dispatch | Shipping info pages |
cost | price, pricing, fee | Product pricing |
hours | schedule, open, timing | Business hours |
contact | reach, email, phone | Contact pages |
FAQ Management
FAQs give you precise control over how Lumio answers specific questions. They take priority over auto-generated content matches, ensuring critical information is always accurate.
question,answer
"What is your return policy?","30-day returns on all items..."
"Do you ship internationally?","Yes, we ship to 40+ countries..."
"What payment methods accepted?","Visa, Mastercard, PayPal..."
Topic Map & Prompt Routing
The Topic Map lets you define keyword-to-topic routing rules. When a visitor's question matches a topic, Lumio prepends a topic-specific prompt prefix to guide the AI's response tone and depth.
return, damagedConfiguration & Maintenance
Fine-tune the knowledge engine and keep your index fresh with these configuration options: