new: add collection exists section (#866)

This commit is contained in:
George
2024-05-14 17:49:28 +05:30
committed by GitHub
parent 23e266c965
commit 3c41de4f86
@@ -696,6 +696,38 @@ The distance function for sparse vectors is always `Dot` and does not need to be
However, there are optional parameters to tune the underlying [sparse vector index](../indexing/#sparse-vector-index).
### Check collection existence
*Available as of v1.8.0*
```http
GET http://localhost:6333/collections/{collection_name}
```
```bash
curl -X GET http://localhost:6333/collections/{collection_name}
```
```python
client.collection_exists(collection_name="{collection_name}")
```
```typescript
client.collectionExists("{collection_name}");
```
```rust
client.collection_exists("{collection_name}").await?;
```
```java
client.collectionExistsAsync("{collection_name}").get();
```
```csharp
await client.CollectionExistsAsync("{collection_name}");
```
### Delete collection
```http