mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-30 20:39:55 +00:00
refactor: reorganize folder structure for better maintainability
Changes: - Move migrations/ under open_notebook/database/migrations/ - Extract AI models to open_notebook/ai/ (Model, ModelManager, provision) - Extract podcasts to open_notebook/podcasts/ (EpisodeProfile, SpeakerProfile, PodcastEpisode) - Reorganize prompts to mirror graphs structure (chat/, source_chat/) This improves code organization by: - Consolidating database concerns (migrations now with database code) - Separating AI infrastructure from domain entities - Isolating podcast feature into its own module - Creating consistent prompt/graph naming conventions All 52 tests pass.
This commit is contained in:
parent
93cda6c42a
commit
ab5560c9a2
48 changed files with 50 additions and 47 deletions
24
open_notebook/database/migrations/1_down.surrealql
Normal file
24
open_notebook/database/migrations/1_down.surrealql
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
REMOVE TABLE IF EXISTS source;
|
||||
REMOVE TABLE IF EXISTS source_embedding;
|
||||
REMOVE TABLE IF EXISTS source_insight;
|
||||
REMOVE TABLE IF EXISTS note;
|
||||
REMOVE TABLE IF EXISTS notebook;
|
||||
REMOVE TABLE IF EXISTS reference;
|
||||
REMOVE TABLE IF EXISTS artifact;
|
||||
REMOVE TABLE IF EXISTS podcast_config;
|
||||
|
||||
REMOVE EVENT IF EXISTS source_delete ON TABLE source;
|
||||
|
||||
REMOVE ANALYZER IF EXISTS my_analyzer;
|
||||
|
||||
REMOVE INDEX IF EXISTS idx_source_title ON TABLE source;
|
||||
REMOVE INDEX IF EXISTS idx_source_full_text ON TABLE source;
|
||||
REMOVE INDEX IF EXISTS idx_source_embed_chunk ON TABLE source_embedding;
|
||||
REMOVE INDEX IF EXISTS idx_source_insight ON TABLE source_insight;
|
||||
REMOVE INDEX IF EXISTS idx_note ON TABLE note;
|
||||
REMOVE INDEX IF EXISTS idx_note_title ON TABLE note;
|
||||
|
||||
REMOVE FUNCTION IF EXISTS fn::text_search;
|
||||
REMOVE FUNCTION IF EXISTS fn::vector_search;
|
||||
|
||||
DELETE open_notebook:default_models;
|
||||
Loading…
Add table
Add a link
Reference in a new issue