Skip to content

Commit

Permalink
Split collection update API into several endpoints (#126)
Browse files Browse the repository at this point in the history
* split storage operation structures #32

* cargo fmt #32

* split collection update api into several endpoints #32

* cargo fmt #32

* fix tonic-related code with new structures

* upd alias structures

* use ytt teplate engine for OpenAPI Endpoint schema generation
  • Loading branch information
generall committed Dec 13, 2021
1 parent 56b1271 commit d714812
Show file tree
Hide file tree
Showing 19 changed files with 2,755 additions and 2,071 deletions.
25 changes: 11 additions & 14 deletions QUICK_START.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ For additional information please refer to the [API documentation](https://qdran
## Create collection
First - let's create a collection with dot-production metric.
```bash
curl -X POST 'http://localhost:6333/collections' \
curl -X PUT 'http://localhost:6333/collections/test_collection' \
-H 'Content-Type: application/json' \
--data-raw '{
"create_collection": {
"name": "test_collection",
"vector_size": 4,
"distance": "Dot"
}
"vector_size": 4,
"distance": "Dot"
}'
```

Expand Down Expand Up @@ -120,14 +117,14 @@ curl -L -X POST 'http://localhost:6333/collections/test_collection/points/search
Expected response:

```json
{
"result": [
{ "id": 4, "score": 1.362 },
{ "id": 1, "score": 1.273 },
{ "id": 3, "score": 1.208 }
],
"status": "ok",
"time": 0.000055785
{
"result": [
{ "id": 4, "score": 1.362, "payload": null, "version": 0 },
{ "id": 1, "score": 1.273, "payload": null, "version": 0 },
{ "id": 3, "score": 1.208, "payload": null, "version": 0 }
],
"status": "ok",
"time": 0.000055785
}
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ So you can [play with it online!](https://categories.qdrant.tech/)
Online OpenAPI 3.0 documentation is available [here](https://qdrant.github.io/qdrant/redoc/index.html).
OpenAPI makes it easy to generate a client for virtually any framework or programing language.

You can also download raw OpenAPI [definitions](openapi/openapi.yaml).
You can also download raw OpenAPI [definitions](openapi/openapi-merged.yaml).

## Features

Expand Down

0 comments on commit d714812

Please sign in to comment.