➜  demo git:(feat/persistency-for-collectiom) ✗ curl http://localhost:3002/collections
{"success":true,"collections":[]}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections -H 'Content-Type: application/json' -d '
{"name":
quote>
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections -H 'Content-Type: application/json' -d '{"name": "test", "index_type": "hnsw"}'
{"success":true,"message":"Collection 'test' created successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/
json' -d '{"text": "hello"}'
{"success":true,"id":0,"message":"Text added successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/json' -d '{"text": "hi"}'
{"success":true,"id":1,"message":"Text added successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/json' -d '{"text": "hi"}'
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/json' -d '{"text": "world"}'
{"success":true,"id":2,"message":"Text added successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/json' -d '{"text": "bonjour"}'
{"success":true,"id":3,"message":"Text added successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/text -H 'Content-Type: application/json' -d '{"text": "coucou"}'
{"success":true,"id":4,"message":"Text added successfully"}%
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/search/text -H 'Content-Type: application/json' -d '{"query": "hey", "k": 2}' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   166  100   142  100    24     99     16  0:00:01  0:00:01 --:--:--   116
{
  "success": true,
  "results": [
    {
      "id": 1,
      "score": 0.9991162408632014
    },
    {
      "id": 0,
      "score": 0.9980507985534864
    }
  ],
  "message": "Search completed successfully"
}
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/search/text -H 'Content-Type: application/json' -d '{"query": "hey", "k": 1}' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130  100   106  100    24     74     16  0:00:01  0:00:01 --:--:--    91
{
  "success": true,
  "results": [
    {
      "id": 1,
      "score": 0.9991162408632014
    }
  ],
  "message": "Search completed successfully"
}
➜  demo git:(feat/persistency-for-collectiom) ✗ curl -X POST http://localhost:3002/collections/test/search/text -H 'Content-Type: application/json' -d '{"query": "hey", "k": 5}' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    24    0     0  100    24      0     16  0:00:01  0:00:01 --:--:--    16
curl: (52) Empty reply from server
