Skip to content

Commit

Permalink
[ENH] Upsert and a synthetic data set.
Browse files Browse the repository at this point in the history
This lays out the scaffolding for upsert.
  • Loading branch information
rescrv committed Dec 6, 2024
1 parent de1bf72 commit 6ac4b7b
Show file tree
Hide file tree
Showing 8 changed files with 1,685 additions and 11 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions rust/load/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ chromadb = { git = "https://github.com/rescrv/chromadb-rs", rev = "e364e35c34c66
guacamole = { version = "0.9", default-features = false }
tower-http = { version = "0.6.2", features = ["trace"] }
reqwest = { version = "0.12", features = ["json"] }
siphasher = "1.0.1"
4 changes: 3 additions & 1 deletion rust/load/examples/workload-json.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use chroma_load::{Distribution, GetQuery, QueryQuery, Workload};
use chroma_load::{Distribution, GetQuery, QueryQuery, Skew, Workload};

fn main() {
let w = Workload::Hybrid(vec![
Expand All @@ -7,6 +7,7 @@ fn main() {
(
1.0,
Workload::Get(GetQuery {
skew: Skew::Zipf { theta: 0.999 },
limit: Distribution::Constant(10),
document: None,
metadata: None,
Expand All @@ -15,6 +16,7 @@ fn main() {
(
1.0,
Workload::Query(QueryQuery {
skew: Skew::Zipf { theta: 0.999 },
limit: Distribution::Constant(10),
document: None,
metadata: None,
Expand Down
Loading

0 comments on commit 6ac4b7b

Please sign in to comment.