Commit dfd9fc3
committed
Refactor ingestion pipeline: modularize chunking, enhance error handling, and improve API interaction
- Removed deprecated `embed` function and `create_config` from `embed.rs`.
- Introduced `chunking_utils.rs` for shared chunking logic, ensuring fields are chunked to ≤250 characters.
- Enhanced `marvelai_ingest.rs` with configurable retry and delay for embedding API calls, added debug output, and improved error messages.
- Updated `single_character_ingest.rs` to streamline processing of the 'Vision' character, including chunking and embedding with detailed logging.
- Created `ingest_utils.rs` for JSONL validation and error handling.
- Added a workspace structure in `Cargo.toml` for better project organization.
- Included a sample `vision.jsonl` file for testing and validation.1 parent 0cfbc0c commit dfd9fc3
File tree
10 files changed
+669
-487
lines changed- rust_ingest
- src/ingest
10 files changed
+669
-487
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
7 | 36 | | |
8 | 37 | | |
9 | 38 | | |
| |||
20 | 49 | | |
21 | 50 | | |
22 | 51 | | |
23 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
24 | 56 | | |
25 | 57 | | |
26 | 58 | | |
27 | 59 | | |
28 | 60 | | |
29 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
30 | 71 | | |
31 | 72 | | |
32 | 73 | | |
| |||
38 | 79 | | |
39 | 80 | | |
40 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
0 commit comments