hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! RAG-output workflows on the course-notes surface: list a note's outputs, |
| 2 | //! read and delete one, and cascade-drop every output of a note or of one |
| 3 | //! of its source files. The rows are derived data (the note is the source |
| 4 | //! of truth), so every path here is disposable by design. The queries live |
| 5 | //! in [`crate::db::rag_output`]. |
| 6 | |
| 7 | use crateDatabase; |
| 8 | use craterag_output; |
| 9 | use crateCourseNoteId; |
| 10 | use crateCourseNoteFileId; |
| 11 | use crate; |
| 12 | use crateAppError; |
| 13 | |
| 14 | pub async |
| 15 | |
| 16 | |
| 17 | |
| 18 | /// A note's outputs, newest first. |
| 19 | pub async |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | pub async |
| 29 | |
| 30 | |
| 31 | |
| 32 | /// Cascade: every output of `note`. Deleting none is a success — a note |
| 33 | /// no service ever indexed has nothing to drop. |
| 34 | pub async |
| 35 | |
| 36 | |
| 37 | |
| 38 | /// Cascade: the citation links pointing at `file`. Runs on a file delete |
| 39 | /// even with no AI service connected — the file row refuses to go while a |
| 40 | /// link still cites it. |
| 41 | pub async |
| 42 | |
| 43 |