mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +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>
22 lines
475 B
C#
22 lines
475 B
C#
using Qdrant.Client;
|
|
using Qdrant.Client.Grpc;
|
|
|
|
public class Snippet
|
|
{
|
|
public static async Task Run()
|
|
{
|
|
// @hide-start
|
|
var client = new QdrantClient("localhost", 6334);
|
|
// @hide-end
|
|
|
|
await client.CreateCollectionAsync(
|
|
collectionName: "{collection_name}",
|
|
vectorsConfig: new VectorParams { Size = 1536, Distance = Distance.Cosine },
|
|
quantizationConfig: new QuantizationConfig
|
|
{
|
|
Turboquant = new TurboQuantization { AlwaysRam = true }
|
|
}
|
|
);
|
|
}
|
|
}
|