Prompt

I'm building a search engine that mixes keyword and vector matching

Technology / Databases2 observationsLast seen Nov 21, 2026

Latest observation

Nov 21, 2026OpenAI APIWeb search: off

That’s a solid approach. A hybrid search engine usually gives better relevance than using either keyword search or vector search alone.

A practical architecture looks like this:

  1. Ingest and normalize documents

    • Clean text, extract metadata, chunk long docs into passages.
    • Store:
      • full text / chunks
      • keyword index fields
      • vector embeddings
      • metadata like title, tags, timestamp, author, permissions
  2. Build two retrieval paths

    • Keyword search: BM25 / inverted index for exact terms, entities, filters.
    • Vector search: ANN index over embeddings for semantic similarity.
  3. Combine results Common strategies:

    • Score fusion: normalize keyword and vector scores, then weighted sum.
    • Reciprocal Rank Fusion (RRF): robust and simple when score scales differ.
    • Two-stage retrieval:
      • retrieve top N from each
      • merge
      • rerank with a cross-encoder or LLM reranker
  4. Tune weights

    • Use more keyword weight for navigational queries, IDs, names, error codes.
    • Use more vector weight for vague or conceptual queries.
    • You can also detect query intent and choose weights dynamically.
  5. Add filters and ranking signals

    • Freshness, popularity, click logs, user context, permissions, locale, etc.
    • These often matter as much as the retrieval method.
  6. Evaluate

    • Build a labeled test set.
    • Measure MRR, nDCG, recall@k, and latency.
    • Compare keyword-only, vector-only, and hybrid.

If you want, I can help with one of these next:

  • a concrete hybrid ranking formula,
  • an architecture diagram,
  • sample code in Python,
  • or how to tune weights for keyword vs vector search.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (2 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.