feat: Remove unnecessary delete_collection call in example
- Removed the `delete_collection` call from the Qdrant example to avoid unnecessary collection deletion. This simplifies the example and prevents potential issues if the collection doesn't exist. - Updated `RetrievePointsParams` struct to use optional parameters for `shard_key`, `with_payload`, and `with_vectors`. This improves flexibility and reduces the required parameters. The change simplifies the request structure.
This commit is contained in:
@@ -29,11 +29,11 @@ get_collection := qdrant_client.get_collection(
|
||||
println('Get Collection: ${get_collection}')
|
||||
|
||||
// 4. Delete the created collection
|
||||
deleted_collection := qdrant_client.delete_collection(
|
||||
collection_name: collection_name
|
||||
)!
|
||||
// deleted_collection := qdrant_client.delete_collection(
|
||||
// collection_name: collection_name
|
||||
// )!
|
||||
|
||||
println('Deleted Collection: ${deleted_collection}')
|
||||
// println('Deleted Collection: ${deleted_collection}')
|
||||
|
||||
// 5. List all collections
|
||||
list_collection := qdrant_client.list_collections()!
|
||||
|
||||
Reference in New Issue
Block a user