Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/file_formats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# OVOS File Formats Specification


## Dialog Files

- .dialog files
- text files
- each line is an alternative formulation of same sentence
- supports "optional" syntax, eg `(word1|word2)` or `(optional word|)`
- supports variables to be replaced at runtime, via curly braces syntax `{var_name}`

## Intent files

Example based intents (padatious style intents)

contents are example sentences, Intent prediction models are trained on the content of these files

- .intent files
- text files
- each line is an alternative formulation of same sentence
- supports "optional" syntax, eg `(word1|word2)` or `(optional word|)`
- supports variable capture, via curly braces syntax `{var_name}`

## Voc files

Keyword rule based intents (adapt style intents)

contents are not a full sentence, but rather key words/phrases that must be present in the final sentence. Intents are defined by rules around .voc files (required, optional, at\_least\_one, excludes)

- .voc files
- text files
- each line is an alternative formulation of same keyword
- supports "optional" syntax, eg `(word1|word2)` or `(optional word|)`

## Regex Files

keyword intents do not allow variable capture, but they support regex expressions to capture keywords

- .rx files
- text files
- each line is a regex expression, the capture group is the `variable_name`
- `variable_name` becomes available as a keyword
- complements .voc files