mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 19:08:32 +02:00
Fix Go snippet
This commit is contained in:
-3
@@ -10,9 +10,6 @@ client, err := qdrant.NewClient(&qdrant.Config{
|
||||
Port: 6334,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
|
||||
CollectionName: "{collection_name}",
|
||||
VectorsConfig: qdrant.NewVectorsConfig(&qdrant.VectorParams{
|
||||
|
||||
+1
-3
@@ -12,9 +12,7 @@ func Main() {
|
||||
Port: 6334,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
} // @hide
|
||||
if err != nil { panic(err) } // @hide
|
||||
|
||||
client.CreateCollection(context.Background(), &qdrant.CreateCollection{
|
||||
CollectionName: "{collection_name}",
|
||||
|
||||
Reference in New Issue
Block a user