Skip to content

Commit

Permalink
chore: fix clippy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Apr 6, 2024
1 parent e43e0ed commit 3668d8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/backend/ggml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,10 @@ pub(crate) async fn doc_to_embeddings(req: Request<Body>) -> Result<Response<Bod
));
}

let chunks = match llama_core::rag::chunk_text(&contents, extension) {
match llama_core::rag::chunk_text(&contents, extension) {
Ok(chunks) => chunks,
Err(e) => return error::internal_server_error(e.to_string()),
};

chunks
}
};

// compute embeddings for chunks
Expand Down

0 comments on commit 3668d8d

Please sign in to comment.