Skip to content

Commit

Permalink
trim leading/trailing whitespace (#74)
Browse files Browse the repository at this point in the history
* trim leading/trailing whitespace

* bump ver

* add missing migration
  • Loading branch information
ChuckHend authored Mar 6, 2024
1 parent 7ea5d86 commit c886ce3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vectorize"
version = "0.12.0"
version = "0.12.1"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "The simplest way to orchestrate vector search on Postgres."
homepage = "https://github.com/tembo-io/pg_vectorize"
documentation = "https://github.com/tembo-io/pg_vectorize"
categories = ["orchestration", "machine_learning"]
version = "0.12.0"
version = "0.12.1"

[build]
postgres_version = "15"
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub async fn get_new_updates(
let token_estimate = bpe.encode_with_special_tokens(&ipt).len() as i32;
new_inputs.push(Inputs {
record_id: r.get("record_id"),
inputs: ipt,
inputs: ipt.trim().to_owned(),
token_estimate,
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn _handle_table_update(job_name: &str, record_ids: Vec<String>, inputs: Vec<Str
let token_estimate = bpe.encode_with_special_tokens(&input).len() as i32;
new_inputs.push(Inputs {
record_id,
inputs: input,
inputs: input.trim().to_owned(),
token_estimate,
})
}
Expand Down Expand Up @@ -138,7 +138,7 @@ pub fn initalize_table_job(
record_id: row["record_id"]
.value::<String>()?
.expect("record_id is null"),
inputs: ipt,
inputs: ipt.trim().to_owned(),
token_estimate,
});
}
Expand Down

0 comments on commit c886ce3

Please sign in to comment.