Intent classification service #27

Closed
opened 2026-01-28 19:05:55 +00:00 by jason.woltje · 0 comments
Owner

Implement intent classification for natural language queries.

Intents:

  • query_tasks
  • query_events
  • query_projects
  • create_task
  • create_event
  • update_task
  • update_event
  • briefing
  • search

Implementation options:

  1. Rule-based (regex patterns)
  2. Ollama-based (LLM classification)
  3. Hybrid (rules first, LLM fallback)

API:

  • POST /api/brain/classify

Response:

  • intent: string
  • confidence: number
  • entities: extracted data (dates, names, etc.)

Requirements:

  • Fast (<100ms for rule-based)
  • Accurate (>90% for common queries)
  • Extensible (easy to add new intents)
Implement intent classification for natural language queries. **Intents:** - query_tasks - query_events - query_projects - create_task - create_event - update_task - update_event - briefing - search **Implementation options:** 1. Rule-based (regex patterns) 2. Ollama-based (LLM classification) 3. Hybrid (rules first, LLM fallback) **API:** - POST /api/brain/classify **Response:** - intent: string - confidence: number - entities: extracted data (dates, names, etc.) **Requirements:** - Fast (<100ms for rule-based) - Accurate (>90% for common queries) - Extensible (easy to add new intents)
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-28 19:05:55 +00:00
jason.woltje added the aip1api labels 2026-01-28 19:05:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#27