mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Add TurboQuant quantization documentation (v1.18.0) Adds a new TurboQuant section to the quantization guide covering the four encoding options (bits1/bits1_5/bits2/bits4), automatic asymmetric quantization, distance metric support, and the automatic TQ+ precision enhancement for sealed segments. Updates the comparison table and method-selection guidance to recommend TurboQuant over Binary and Scalar Quantization for new collections. Adds HTTP-only snippets for basic setup and explicit bit-depth selection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Consistently use title case for headers * Restructure doc to lead with TurboQuant * Clarify rescoring * Edits * Soften TQ advice * Updates * Fix * Apply suggestions from code review Co-authored-by: Jojii <15957865+JojiiOfficial@users.noreply.github.com> * Review feedback * Add Go/Java/C# code snippets * Add list of 4 quantization methods to introduction * Review feedback * Stronger advice for TQ4 * Add Python snippets * Add Rust snippets * Add TS snippets * Update recommendation table * Update production checklist * Remove link to article --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Jojii <15957865+JojiiOfficial@users.noreply.github.com>
32 lines
613 B
Go
32 lines
613 B
Go
package snippet
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdrant/go-client/qdrant"
|
|
)
|
|
|
|
func Main() {
|
|
// @hide-start
|
|
client, err := qdrant.NewClient(&qdrant.Config{
|
|
Host: "localhost",
|
|
Port: 6334,
|
|
})
|
|
|
|
if err != nil { panic(err) }
|
|
// @hide-end
|
|
|
|
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
|
|
CollectionName: "{collection_name}",
|
|
VectorsConfig: qdrant.NewVectorsConfig(&qdrant.VectorParams{
|
|
Size: 1536,
|
|
Distance: qdrant.Distance_Cosine,
|
|
}),
|
|
QuantizationConfig: qdrant.NewQuantizationTurbo(
|
|
&qdrant.TurboQuantization{
|
|
AlwaysRam: qdrant.PtrOf(true),
|
|
},
|
|
),
|
|
})
|
|
}
|