chore: harden common errors, fastembed blocking, and ingest ownership

Run FastEmbed inference on spawn_blocking, propagate Surreal take
failures,
add AppError::internal and typed ingest/embedding parse errors, and take
owned file lists in ingestion payload construction.
This commit is contained in:
Per Stark
2026-05-28 20:25:12 +02:00
parent 1e25705377
commit 1e0dba72c8
13 changed files with 153 additions and 125 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ impl SurrealDbClient {
.load_files(&MIGRATIONS_DIR)
.up()
.await
.map_err(|e| AppError::InternalError(e.to_string()))?;
.map_err(AppError::internal)?;
Ok(())
}