Skip to content
Website Add-ons

AI Search Bar

Semantic search using embeddings. Ask questions in natural language, get precise answers.

{ if (id !== this.runId) return; const stopwords = ['the','a','an','is','do','you','what','how','i','we','can','for','of','and','or','in','to','my','are','it','s','does','your','me','much','there','any']; const terms = [...new Set(q.toLowerCase().replace(/[?!.,'\\x22]/g, '').split(/\\s+/).filter(t => t.length > 1 && !stopwords.includes(t)))]; const lq = q.toLowerCase(); let scored = this.kb.map(item => { let score = this.scoreResult(item, terms); if (this.mode === 'semantic') { if (/cost|price|how much|cheap|expensive|fee/.test(lq) && item.text.includes('$')) score += 20; if (/when|hours|available|open|weekend|holiday|night/.test(lq) && (item.text.includes('24/7') || item.tags.includes('schedule') || item.tags.includes('hours'))) score += 20; if (/near|where|location|area|city|town/.test(lq) && (item.tags.includes('area') || item.tags.includes('serve') || item.tags.includes('location'))) score += 20; if (/broke|broken|leak|burst|no heat|not working|urgent|flood/.test(lq) && item.tags.includes('emergency')) score += 25; } return { ...item, score }; }).filter(r => r.score > 0).sort((a, b) => b.score - a.score); const maxScore = scored.length > 0 ? scored[0].score : 1; this.results = scored.filter(r => r.score >= maxScore * 0.4).slice(0, 5).map(r => ({ ...r, relevance: Math.min(99, Math.max(35, Math.round((r.score / maxScore) * 96))), excerpt: this.highlightTerms(r.text, terms) })); this.elapsed = Math.round(performance.now() - t0 - (this.mode === 'semantic' ? 450 : 200)) + (this.mode === 'semantic' ? 38 : 6); this.searched = q; this.loading = false; if (this.results.length) this.askAI(q, id); }, this.mode === 'semantic' ? 450 : 200); }, askAI(q, id) { const top = this.results.slice(0, 3); const ctx = top.map((r, i) => '[' + (i + 1) + '] ' + r.title + ': ' + r.text).join('\\n'); const fb = top[0].text.split(/(?" %}<=\.)\s/).slice(0, 2).join(' ') + ' (Source: ' + top[0].title + ')'; const prompt = 'You are the search assistant on a home-services company website (Front Range Home Pros, Denver area). Answer the customer question in 2-3 short sentences using ONLY the articles below. Mention prices or details exactly as written. If the articles do not answer it, say so and suggest calling the office. Cite the article number like [1].\n\nArticles:\n' + ctx + '\n\nQuestion: ' + q; this.answerLoading = true; window.aiDraft(prompt, fb, 25000).then(r => {% trans "{ if (id !== this.runId) return; this.answerEngine = r.engine; window.aiType(r.text.slice(0, 700), (partial, done) => { this.answer = partial; if (done) this.answerLoading = false; }); }); }, escapeHtml(t) { return t.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); }, highlightTerms(text, terms) { const safe = this.escapeHtml(text); const parts = terms.filter(t => t.length > 1).map(t => this.escapeHtml(t).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')); if (!parts.length) return safe; const re = new RegExp('\\\\b(' + parts.join('|') + ')\\\\w*', 'gi'); return safe.replace(re, m => '" %}' + m + '{% trans "'); }, clearSearch() { this.runId++; this.query = ''; this.results = []; this.searched = ''; this.answer = ''; this.answerLoading = false; this.loading = false; this.$nextTick(() => this.$refs.q && this.$refs.q.focus()); } }\" class=\"max-w-3xl mx-auto px-4 sm:px-6\">" %}

Recent Searches

Search Mode:

Technical Specifications

Planned production capabilities and integration details for this tool.

This demo uses scripted responses. In production, responses come from local AI models.

Mode: demo

Core Features

  • Semantic search using vector embeddings
  • Natural language queries — ask questions, get answers
  • Auto-suggest with typo tolerance and fuzzy matching
  • Faceted filtering by category, date, and content type
  • Highlighted results with relevance scoring
  • Search analytics dashboard with top queries

Production Capabilities

Demo mode: responses are pre-scripted. The items below describe the intended production build; figures marked 'Target' are design goals, not measurements.

  • Target: indexes 100K+ pages with sub-100ms query time
  • Automatic re-indexing on content changes
  • Embedding generation runs locally via Ollama
  • Supports PDF, HTML, and Markdown content
  • Query intent classification for better results
  • REST API for headless integration

What Sets Us Apart

  • Understands meaning, not just keywords
  • Runs entirely on your own infrastructure
  • Zero external API dependencies when using Ollama
  • Replaces expensive Algolia or Elasticsearch setups
  • One-line embed for any website

Demo Limitations

  • Scripted demo: responses are pre-written and no live AI model is called
  • Demo searches a small sample dataset
  • Index limited to 50 demo pages
  • Embedding updates are simulated
  • Analytics dashboard shows mock data

Tech Stack & Integration

Backend
Django + Python
AI Engine
Scripted demo (production: Ollama embeddings)
Frontend
Alpine.js + Tailwind
Integration
REST API + JSON

How It Works

From initial consultation to live deployment in four straightforward steps.

1

Discovery Call

We learn your business, workflows, and goals to scope the right solution.

2

Custom Build

We build and train the AI on your content, brand voice, and specific requirements.

3

Test & Refine

You review, test, and iterate until everything works exactly how you want it.

4

Go Live

Deploy to production with monitoring, analytics, and ongoing support included.

Want This for Your Business?

Tell us about your project and we'll put together a custom proposal — including the right AI model, integration plan, and timeline. Free consultation, no obligation.

  • Choose your AI engine — local, cloud, or hybrid
  • Trained on your content, products, and FAQs
  • Integrates with your website, CRM, and tools
  • Live in days, not months

No spam. We'll respond within 24 hours.

Ready to Add AI to Your Business?

Browse all 39 AI tools we offer or get in touch for a custom solution tailored to your needs.

AI Assistant

Call Get a quote