Skip to content

Commit

Permalink
[ENH] Move segment module out of worker crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan committed Jan 23, 2025
1 parent b3f2870 commit dbf6ad2
Show file tree
Hide file tree
Showing 12 changed files with 6,657 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
resolver = "2"

members = ["rust/benchmark", "rust/blockstore", "rust/cache", "rust/chroma", "rust/config", "rust/distance", "rust/error", "rust/garbage_collector", "rust/index", "rust/load", "rust/storage", "rust/system", "rust/sysdb", "rust/types", "rust/worker"]
members = ["rust/benchmark", "rust/blockstore", "rust/cache", "rust/chroma", "rust/config", "rust/distance", "rust/error", "rust/garbage_collector", "rust/index", "rust/load", "rust/storage", "rust/system", "rust/sysdb", "rust/types", "rust/worker", "rust/segment"]

[workspace.dependencies]
arrow = "52.2.0"
Expand Down Expand Up @@ -43,6 +43,7 @@ chroma-cache = { path = "rust/cache" }
chroma-types = { path = "rust/types" }
chroma-index = { path = "rust/index" }
chroma-distance = { path = "rust/distance" }
chroma-segment = { path="rust/segment" }
chroma-system = { path = "rust/system" }
chroma-sysdb = { path = "rust/sysdb" }
worker = { path = "rust/worker" }
Expand Down
28 changes: 28 additions & 0 deletions rust/segment/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "segment"
version = "0.1.0"
edition = "2021"

[dependencies]
futures = { workspace = true }
roaring = { workspace = true }
serde = { workspace = true }
tantivy = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
uuid = { workspace = true }

chroma-blockstore = { workspace = true }
chroma-distance = { workspace = true }
chroma-error = { workspace = true }
chroma-index = { workspace = true }
chroma-types = { workspace = true }

[dev-dependencies]
shuttle = { workspace = true }
tokio = { workspace = true }
tempfile = { workspace = true }

chroma-cache = { workspace = true }
chroma-storage = { workspace = true }

10 changes: 10 additions & 0 deletions rust/segment/src/config.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use serde::Deserialize;

/// The configuration for the custom resource memberlist provider.
/// # Fields
/// - storage_path: The path to use for temporary storage in the segment manager, if needed.
#[derive(Deserialize)]
pub(crate) struct SegmentManagerConfig {
#[allow(dead_code)]
pub(crate) storage_path: String,
}
Loading

0 comments on commit dbf6ad2

Please sign in to comment.