mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 04:27:47 +01:00
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>
11 lines
335 B
TypeScript
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';
|