Skip to content

Commit

Permalink
[ENH] A chroma-load that is limited to 4 connections. (#3394)
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv authored Jan 3, 2025
1 parent f488d7d commit bde75c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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 rust/load/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ opentelemetry_sdk = { workspace = true }

# Unlikely to be used in the workspace.
axum = "0.7"
chromadb = { git = "https://github.com/rescrv/chromadb-rs", rev = "70c79feb220c3f75c345916f6dfa073b88f8f16a" }
chromadb = { git = "https://github.com/rescrv/chromadb-rs", rev = "4017daf7c5c601a095b5c509bfddabc6125e6616" }
guacamole = { version = "0.9", default-features = false }
tower-http = { version = "0.6.2", features = ["trace"] }
reqwest = { version = "0.12", features = ["json"] }
Expand Down
2 changes: 2 additions & 0 deletions rust/load/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ pub async fn client_for_url(url: String) -> ChromaClient {
header: ChromaTokenHeader::XChromaToken,
},
database: "hf-tiny-stories".to_string(),
connections: 4,
})
.await
.unwrap()
Expand All @@ -137,6 +138,7 @@ pub async fn client_for_url(url: String) -> ChromaClient {
url: Some(url),
auth: ChromaAuthMethod::None,
database: "hf-tiny-stories".to_string(),
connections: 4,
})
.await
.unwrap()
Expand Down

0 comments on commit bde75c8

Please sign in to comment.