Skip to content

Instantly share code, notes, and snippets.

@skeptrunedev
Last active June 27, 2024 07:16
Show Gist options
  • Save skeptrunedev/f4b9ddf6cbbb724ac17e7893f242f06a to your computer and use it in GitHub Desktop.
Save skeptrunedev/f4b9ddf6cbbb724ac17e7893f242f06a to your computer and use it in GitHub Desktop.
Good Qdrant Config
{
"params": {
"vectors": {
"1024_vectors": {
"size": 1024,
"distance": "Cosine",
"hnsw_config": {
"on_disk": false
},
"quantization_config": {
"binary": {
"always_ram": true
}
},
"on_disk": true
}
},
"shard_number": 12,
"replication_factor": 1,
"write_consistency_factor": 1,
"on_disk_payload": true,
"sparse_vectors": {
"sparse_vectors": {
"index": {
"on_disk": true
}
}
}
},
"hnsw_config": {
"m": 16,
"ef_construct": 4,
"full_scan_threshold": 10000,
"max_indexing_threads": 0,
"on_disk": false,
"payload_m": 0
},
"optimizer_config": {
"deleted_threshold": 0.2,
"vacuum_min_vector_number": 1000,
"default_segment_number": 0,
"max_segment_size": null,
"memmap_threshold": null,
"indexing_threshold": 20000,
"flush_interval_sec": 5,
"max_optimization_threads": null
},
"wal_config": {
"wal_capacity_mb": 32,
"wal_segments_ahead": 0
},
"quantization_config": {
"binary": {
"always_ram": true
}
}
}
{
"params": {
"vectors": {
"1024_vectors": {
"size": 1024,
"distance": "Cosine",
"hnsw_config": {
"on_disk": false
},
"quantization_config": {
"binary": {
"always_ram": true
}
},
"on_disk": true
}
},
"shard_number": 12,
"replication_factor": 1,
"write_consistency_factor": 1,
"on_disk_payload": true,
"sparse_vectors": {
"sparse_vectors": {
"index": {
"on_disk": true
}
}
}
},
"hnsw_config": {
"m": 16,
"ef_construct": 4,
"full_scan_threshold": 10000,
"max_indexing_threads": 0,
"on_disk": false,
"payload_m": 0
},
"optimizer_config": {
"deleted_threshold": 0.2,
"vacuum_min_vector_number": 1000,
"default_segment_number": 0,
"max_segment_size": null,
"memmap_threshold": null,
"indexing_threshold": 20000,
"flush_interval_sec": 5,
"max_optimization_threads": null
},
"wal_config": {
"wal_capacity_mb": 32,
"wal_segments_ahead": 0
},
"quantization_config": {
"binary": {
"always_ram": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment