mirror of
https://github.com/samvallad33/vestige.git
synced 2026-05-08 23:32:37 +02:00
build: allow building on older glibc versions
This commit is contained in:
parent
946b49c95e
commit
b5892fc723
3 changed files with 26 additions and 127 deletions
|
|
@ -22,11 +22,19 @@ bundled-sqlite = ["rusqlite/bundled"]
|
|||
encryption = ["rusqlite/bundled-sqlcipher"]
|
||||
|
||||
# Core embeddings with fastembed (ONNX-based, local inference)
|
||||
embeddings = ["dep:fastembed"]
|
||||
# Downloads a pre-built ONNX Runtime binary at build time (requires glibc >= 2.38)
|
||||
embeddings = ["dep:fastembed", "fastembed/ort-download-binaries-native-tls"]
|
||||
|
||||
# HNSW vector search with USearch (20x faster than FAISS)
|
||||
vector-search = ["dep:usearch"]
|
||||
|
||||
# Use runtime-loaded ORT instead of the downloaded pre-built binary.
|
||||
# Required on systems with glibc < 2.38 (Ubuntu 22.04, Debian 12, RHEL/Rocky 9).
|
||||
# Mutually exclusive with the default `embeddings` feature's download strategy.
|
||||
# Usage: --no-default-features --features ort-dynamic,vector-search,bundled-sqlite
|
||||
# Runtime requirement: libonnxruntime.so must be on LD_LIBRARY_PATH or ORT_DYLIB_PATH set.
|
||||
ort-dynamic = ["dep:fastembed", "fastembed/ort-load-dynamic", "fastembed/hf-hub-native-tls", "fastembed/image-models"]
|
||||
|
||||
# Nomic Embed Text v2 MoE (475M params, 305M active, Candle backend)
|
||||
# Requires: fastembed with nomic-v2-moe feature
|
||||
nomic-v2 = ["embeddings", "fastembed/nomic-v2-moe"]
|
||||
|
|
@ -77,7 +85,7 @@ notify = "8"
|
|||
# ============================================================================
|
||||
# nomic-embed-text-v1.5: 768 dimensions, 8192 token context, Matryoshka support
|
||||
# v5.11: Adds Nomic v2 MoE (nomic-v2-moe feature) + Qwen3 reranker (qwen3 feature)
|
||||
fastembed = { version = "5.11", optional = true }
|
||||
fastembed = { version = "5.11", default-features = false, features = ["hf-hub-native-tls", "image-models"], optional = true }
|
||||
|
||||
# ============================================================================
|
||||
# OPTIONAL: Vector Search (USearch - HNSW, 20x faster than FAISS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue