feat: Add Qdrant client's retrieve_points functionality
- Added a new `retrieve_points` function to the Qdrant client to retrieve points by their IDs. This allows for efficient fetching of specific points from a collection. - Renamed `is_exists` to `is_collection_exists` for clarity and consistency. - Added `RetrievePointsRequest`, `RetrievePointsParams`, and `RetrievePointsResponse` structs for better structured data.
This commit is contained in:
@@ -40,7 +40,19 @@ list_collection := qdrant_client.list_collections()!
|
||||
println('List Collection: ${list_collection}')
|
||||
|
||||
// 6. Check collection existence
|
||||
collection_existence := qdrant_client.is_exists(
|
||||
collection_existence := qdrant_client.is_collection_exists(
|
||||
collection_name: collection_name
|
||||
)!
|
||||
println('Collection Existence: ${collection_existence}')
|
||||
|
||||
// 7. Retrieve points
|
||||
collection_points := qdrant_client.retrieve_points(
|
||||
collection_name: collection_name
|
||||
ids: [
|
||||
0,
|
||||
3,
|
||||
100,
|
||||
]
|
||||
)!
|
||||
|
||||
println('Collection Points: ${collection_points}')
|
||||
|
||||
Reference in New Issue
Block a user