Spaces:
Runtime error
Runtime error
Download rust/worker/src/assignment/config.rs from expressapi/chroma: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/spaces/expressapi/chroma/resolve/main/rust/worker/src/assignment/config.rs
- Command line
-
hf download hf://spaces/expressapi/chroma/rust/worker/src/assignment/config.rs
-
curl -L -o config.rs https://huggingface.co/spaces/expressapi/chroma/resolve/main/rust/worker/src/assignment/config.rs
809 Bytes
| use serde::Deserialize; | |
| /// The type of hasher to use. | |
| /// # Options | |
| /// - Murmur3: The murmur3 hasher. | |
| pub(crate) enum HasherType { | |
| Murmur3, | |
| } | |
| /// The configuration for the assignment policy. | |
| /// # Options | |
| /// - RendezvousHashing: The rendezvous hashing assignment policy. | |
| /// # Notes | |
| /// See config.rs in the root of the worker crate for an example of how to use | |
| /// config files to configure the worker. | |
| pub(crate) enum AssignmentPolicyConfig { | |
| RendezvousHashing(RendezvousHashingAssignmentPolicyConfig), | |
| } | |
| /// The configuration for the rendezvous hashing assignment policy. | |
| /// # Fields | |
| /// - hasher: The type of hasher to use. | |
| pub(crate) struct RendezvousHashingAssignmentPolicyConfig { | |
| pub(crate) hasher: HasherType, | |
| } | |