Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed May 9, 2024
1 parent 670080e commit ae82a99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/ggml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ pub(crate) async fn rag_query_handler(
// create a embedding request
let embedding_request = EmbeddingRequest {
model: embedding_model_names[0].clone(),
input: vec![query_text.clone()],
input: query_text.into(),
encoding_format: None,
user: chat_request.user.clone(),
};
Expand Down Expand Up @@ -946,7 +946,7 @@ pub(crate) async fn doc_to_embeddings(
// create an embedding request
let embedding_request = EmbeddingRequest {
model,
input: chunks,
input: chunks.into(),
encoding_format: None,
user: None,
};
Expand Down Expand Up @@ -1098,7 +1098,7 @@ pub(crate) async fn retrieve_handler(
// create a embedding request
let embedding_request = EmbeddingRequest {
model: embedding_model_names[0].clone(),
input: vec![query_text.clone()],
input: query_text.into(),
encoding_format: None,
user: chat_request.user.clone(),
};
Expand Down

0 comments on commit ae82a99

Please sign in to comment.