Перейти к содержимому
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\">" %}

Недавние поисковые запросы

Режим поиска:

Технические характеристики

Запланированные возможности для продакшена и детали интеграции этого инструмента.

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

Mode: demo

Основные возможности

  • 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

Возможности рабочей среды

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

Чем мы отличаемся

  • 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

Ограничения демо

  • 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

Технологии и интеграции

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

Как это работает

От первой консультации до запуска в продакшн за четыре простых шага.

1

Первичный созвон

Мы изучаем ваш бизнес, рабочие процессы и цели, чтобы определить оптимальное решение.

2

Индивидуальная разработка

Мы создаем и обучаем ИИ на основе вашего контента, тона бренда и конкретных требований.

3

Тестирование и доработка

Вы проверяете, тестируете и вносите изменения до тех пор, пока все не будет работать именно так, как вам нужно.

4

Запуск

Развертывание в продакшене с включенным мониторингом, аналитикой и постоянной поддержкой.

Хотите это для своего бизнеса?

Расскажите нам о своем проекте, и мы подготовим индивидуальное предложение — включая подходящий AI model, план интеграции и сроки. Бесплатная консультация, без обязательств.

  • Выберите свой AI engine — локальный, облачный или гибридный
  • Обучен на вашем контенте, товарах и FAQ
  • Интеграция с вашим сайтом, CRM и другими инструментами
  • Запуск за считаные дни, а не месяцы

Без спама. Мы ответим в течение 24 часов.

Готовы добавить ИИ в свой бизнес?

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

ИИ-ассистент

Позвонить Запросить расчёт