Files
g-butandClaude Opus 4.6 b32b30c4cb feat(context): add user context accumulation system
Core differentiator: professionals learn about users over time.

- Add user_context table with vector embeddings (migration 011)
- Add get_relevant_context() SQL function for semantic search
- Create lib/context/ module:
  - store.ts: save and retrieve user context entries
  - extractor.ts: LLM-based fact extraction from conversations
  - domain-detector.ts: keyword-based domain classification
- Integrate into professional-chat route:
  - Retrieve relevant user context and inject into system prompt
  - Async extraction of facts after each conversation turn

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 17:23:15 +01:00

11 lines
335 B
TypeScript

/**
* User Context Module
*
* Extracts, stores, and retrieves accumulated user knowledge
* to personalize AI professional interactions.
*/
export { extractAndSaveContext } from './extractor';
export { saveUserContext, getRelevantContext, type UserContextEntry } from './store';
export { detectDomains } from './domain-detector';