Saltar al contenido
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\">" %}

Búsquedas recientes

Modo de búsqueda:

Especificaciones técnicas

Capacidades de producción planificadas y detalles de integración para esta herramienta.

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

Mode: demo

Funciones principales

  • 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

Capacidades de producción

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

Qué nos distingue

  • 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

Limitaciones de la demo

  • 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

Tecnologías e integración

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

Cómo funciona

Desde la consulta inicial hasta el despliegue en vivo en cuatro pasos sencillos.

1

Llamada de descubrimiento

Conocemos su negocio, flujos de trabajo y objetivos para definir la solución adecuada.

2

Desarrollo a medida

Desarrollamos y entrenamos la IA con su contenido, tono de marca y requisitos específicos.

3

Pruebas y ajustes

Usted revisa, prueba e itera hasta que todo funcione exactamente como lo desea.

4

Lanzamiento

Implemente en producción con monitoreo, analíticas y soporte continuo incluidos.

¿Desea esto para su negocio?

Cuéntenos sobre su proyecto y prepararemos una propuesta personalizada — incluyendo el modelo de IA adecuado, plan de integración y cronograma. Consulta gratuita, sin compromiso.

  • Elija su motor de IA — local, en la nube o híbrido
  • Entrenado con su contenido, productos y preguntas frecuentes
  • Se integra con su sitio web, CRM y demás herramientas
  • En marcha en días, no en meses

Sin spam. Responderemos en un plazo de 24 horas.

¿Listo para añadir IA a su negocio?

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

Asistente de IA

Llamar Solicitar cotización