Skip to content

Commit

Permalink
Update CONVENTIONS.md
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
  • Loading branch information
kolchfa-aws committed Apr 4, 2024
1 parent eed3cd6 commit e3bb609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONVENTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ For example, [dashboards-notebooks/opensearch_dashboards.json](https://github.co
### APIs

- Use `_` as prefix for APIs, e.g. `_plugins/_anomaly_detection/*`.
- Use snake case when naming API request/response fields and parameters (for example, `use_case`), separating individual words with an underscore.
- Replace hyphens with underscores (for example, for retrieval-augmented generation, use `retrieval_augmented_generation`).
- When creating a new type of a component, take note of how other components of this type are named. For example, search processors are named omitting the word `processor` at the end (the collapse processor is called `collapse`).

### Indices

Expand Down

0 comments on commit e3bb609

Please sign in to comment.