Skip to content

Commit

Permalink
feature: Quantize Vectors env flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker authored and skeptrunedev committed Apr 5, 2024
1 parent afde22f commit e6b9f8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.server
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ BASE_SERVER_URL="http://localhost:8090"
UNLIMITED="true"
REDIS_CONNECTIONS=30
SENTRY_URL="http://********************.ingest.sentry.io/******",
QUANTIZE_VECTORS="false"
7 changes: 6 additions & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,12 @@ pub async fn main() -> std::io::Result<()> {

let oidc_client = build_oidc_client().await;

let _ = create_new_qdrant_collection_query(None, None, None, false)
let quantize_vectors = std::env::var("QUANTIZE_VECTORS")
.unwrap_or("false".to_string())
.parse()
.unwrap_or(false);

let _ = create_new_qdrant_collection_query(None, None, None, quantize_vectors)
.await
.map_err(|err| {
log::error!("Failed to create qdrant group: {:?}", err);
Expand Down

0 comments on commit e6b9f8a

Please sign in to comment.