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:
Mahmoud Emad
2025-03-16 11:56:55 +02:00
parent 025e8fba69
commit c3fe788a5b
2 changed files with 8 additions and 22 deletions

View File

@@ -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()!