This is my config.yml. recipe: default.v1
language: en pipeline:
- name: SpacyNLP model: “en_core_web_md”
- name: SpacyTokenizer
- name: RegexFeaturizer
case_sensitive: False
regex_features:
- name: reminder_type pattern: “(doctor('s|s)? appointment|appointment with (the |a )?doctor|checkup|medical visit|appointment|medication|task|meeting|call|birthday|anniversary| work|gym|dentist|market|school|bills|rents)”
- name: date pattern: “\d{4}-\d{2}-\d{2}”
- name: time pattern: “\d{1,2}:\d{2} (AM|PM)|july 10th”
- name:duration
- pattern: “(today|tomorrow|this week|next week|this month |next month|next year|this year)”
- name: month_name
- pattern: “(january|february|march|april|may|june|july|august|september|october|november|december)” use_lookup_tables: True # Add this line
- name: SpacyFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: DIETClassifier constrain_similarities: true epochs: 100
- name: EntitySynonymMapper
- name: DucklingEntityExtractor
url: http://localhost:8000
dimensions:
- “time”
- “dates”
- “duration” timezone: “Asia/Kolkata” # Set according to your location locale: “en_IN”
- name: LLMCommandGenerator llm: model_name: gpt-4o request_timeout: 7 max_tokens: 256 prompt: prompts/command-generator.jinja2
policies:
- name: FlowPolicy confidence_threshold: 0.6