discourse-ai/spec
Sam 6ddc17fd61
DEV: port directory structure to Zeitwerk (#319)
Previous to this change we relied on explicit loading for a files in Discourse AI.

This had a few downsides:

- Busywork whenever you add a file (an extra require relative)
- We were not keeping to conventions internally ... some places were OpenAI others are OpenAi
- Autoloader did not work which lead to lots of full application broken reloads when developing.

This moves all of DiscourseAI into a Zeitwerk compatible structure.

It also leaves some minimal amount of manual loading (automation - which is loading into an existing namespace that may or may not be there)

To avoid needing /lib/discourse_ai/... we mount a namespace thus we are able to keep /lib pointed at ::DiscourseAi

Various files were renamed to get around zeitwerk rules and minimize usage of custom inflections

Though we can get custom inflections to work it is not worth it, will require a Discourse core patch which means we create a hard dependency.
2023-11-29 15:17:46 +11:00
..
fabricators FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
fixtures/embeddings FEATURE: Embeddings to main db (#99) 2023-07-13 12:41:36 -03:00
lib DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
models FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
requests DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
serializers FIX: Serialize channel title for DMs (#90) 2023-06-16 14:37:16 -03:00
shared FIX: implement tools framework for Anthropic (#307) 2023-11-24 06:39:56 +11:00
support REFACTOR: Summarization and HyDE now use an LLM abstraction. (#297) 2023-11-23 12:58:54 -03:00
system DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
plugin_spec.rb DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00