feat: event store, pattern inference, and routine proposals

- Add events table (migration #4): stores normalized (action, object, ts)
  triples extracted from facts, indexed for recurrence detection.
- Add proposed_routines table: stores inferred recurring patterns with
  proposed/accepted/dismissed status and optional linked reminder.
- Add pattern package: Extractor normalizes fact text into (action, object)
  pairs with TTS normalization; Detector groups events to find recurring
  patterns and proposes routines.
- Add internal/ttsnorm: text normalization pipeline for Russian/English
  (lowercase, punctuation strip, number normalization, stopword removal).
- Add chat seed file for LLM phraser.
This commit is contained in:
kami
2026-07-10 15:49:03 +04:00
parent c0c11cd36d
commit 4c40a183cf
11 changed files with 980 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
# chat.txt — conversational utterances routed to IntentChat.
# The chat intent captures free-form conversation that doesn't match
# any transactional intent (fact/reminder/note/query/act).
# The LLM replies from dialogue history + general knowledge.
что ты думаешь о жизни
расскажи что-нибудь интересное
как у тебя дела
как прошёл день
расскажи про себя
ты мне нравишься
почему небо голубое
о чём поговорим
у тебя есть чувства
что такое любовь
расскажи историю
как работает интернет
шутка
анекдот
пошути
привет
как дела
чем занимаешься
как настроение
что нового
думаешь о чём-то
расскажи про космос
почему трава зелёная
откуда берётся дождь
что было интересного сегодня
как тебя зовут
сколько тебе лет
what do you think about
tell me something interesting
how are you
tell me a story
i'm bored
what's up
tell me a joke
do you have feelings
what is love
tell me about yourself
why is the sky blue
how does the internet work