hsnmrtermis / milvus-php-client

Milvus Php Client
12 stars 3 forks source link

insert error #4

Closed jasonhe88 closed 1 year ago

jasonhe88 commented 1 year ago

try to run the demo code, get following error when do insert:

Milvus Parameters (Result) Error: Could not resolve error, please read contents of UnaryCall.php => wait() => $event->message.

Mivus verion: 2.2

hsnmrtermis commented 1 year ago

Hi, in the wait method in the UnaryCall.php file at vendor/grpc/grpc/src/lib/UnaryCall.php; print_r($event->message); Can you share the output? Let's look at the error message from Milvus. It may be giving a parameter error.

The part where you need to add the printr() function

jasonhe88 commented 1 year ago

here is the error message:

9DescribeCollection failed: can't find collection: deneme2

need to create collection "deneme2" before insert ?

hsnmrtermis commented 1 year ago

Yes, for now, we can only create collections through the Attu program. The document has been updated: https://hasan-mert-ermis.gitbook.io/main/milvus-2-grpc-php-client/create-collection-attu I plan to add collection creation with PHP in the near future.