Remove unwraps

This commit is contained in:
Louis Dureuil 2024-03-20 13:25:10 +01:00
parent b6b4b6bab7
commit f87747f4d3
No known key found for this signature in database
4 changed files with 40 additions and 13 deletions

View file

@ -242,11 +242,9 @@ fn send_original_documents_data(
let request_threads = rayon::ThreadPoolBuilder::new()
.num_threads(crate::vector::REQUEST_PARALLELISM)
.thread_name(|index| format!("embedding-request-{index}"))
.build()
.unwrap();
.build()?;
rayon::spawn(move || {
/// FIXME: unwrap
for (name, (embedder, prompt)) in embedders {
let result = extract_vector_points(
documents_chunk_cloned.clone(),