mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Document 7 missing strict_mode_config parameters Adds documentation sections and code snippets (Python, TypeScript, Rust, Go, Java, C#, HTTP, bash) for search_allow_exact, search_max_hnsw_ef, search_max_oversampling, search_max_batchsize, max_resident_memory_percent, multivector_config, and sparse_config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Use title case for all headers * Update qdrant-landing/content/documentation/ops-configuration/administration.md Co-authored-by: Tim Visée <tim@visee.me> * Mention default strict mode on Cloud; Clarify behavior of only setting enabled=true * Apply suggestion from @timvisee Co-authored-by: Tim Visée <tim@visee.me> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Tim Visée <tim@visee.me>
29 lines
626 B
Go
29 lines
626 B
Go
package snippet
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdrant/go-client/qdrant"
|
|
)
|
|
|
|
func Main() {
|
|
client, err := qdrant.NewClient(&qdrant.Config{
|
|
Host: "localhost",
|
|
Port: 6334,
|
|
})
|
|
|
|
if err != nil { panic(err) } // @hide
|
|
|
|
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
|
|
CollectionName: "{collection_name}",
|
|
StrictModeConfig: &qdrant.StrictModeConfig{
|
|
Enabled: qdrant.PtrOf(true),
|
|
SparseConfig: &qdrant.StrictModeSparseConfig{
|
|
SparseConfig: map[string]*qdrant.StrictModeSparse{
|
|
"{vector_name}": {MaxLength: qdrant.PtrOf(uint64(1000))},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
}
|