Skip to content

Smart Query Expansion - Ollama-powered semantic search #81

@jordanpartridge

Description

@jordanpartridge

Goal

Ollama-powered semantic query understanding for better search results

Why

Find relevant knowledge even with imperfect queries

Tasks

  • Expand user query with synonyms/related terms via Ollama
  • Generate multiple embedding variations
  • Query Qdrant with all variations
  • Merge and de-duplicate results
  • Rank by semantic similarity + recency
  • Show "searched for: X, Y, Z" to user
  • Cache expanded queries (Redis)

Success Criteria

  • know search "redis" finds entries about "cache", "key-value store"
  • Relevant results even with typos or informal language
  • Query expansion < 500ms (cached) or < 2s (uncached)
  • Top 3 results are relevant 80%+ of the time

Priority

🟢 MEDIUM - Intelligence multiplier

Related

Depends on Issue #2 (Redis caching) for performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions