Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, For

Hi, For clearml-serving , is there any contract on how the output from the model should be formatted. I have created a custom engine for spacy which will return a numpy array as output. I can see through my logs that it is correctly returned. But i get this below error as response. It seems to coming from fastapi. In this example [ORG,PRODUCT] is my result from model.
Any pointers would be helpful. Thanks.
` Output is
['ORG' 'PRODUCT']
INFO: 10.4.0.1:43954 - "POST /serve/test_model_spacy HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/fastapi/encoders.py", line 137, in jsonable_encoder
data = dict(obj)
ValueError: dictionary update sequence element #0 has length 3; 2 is required

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/fastapi/encoders.py", line 141, in jsonable_encoder
data = vars(obj)
TypeError: vars() argument must have dict attribute `

  
  
Posted 2 years ago
Votes Newest

Answers


Got this working after using the preprocess step similar to the sklearn example to convert the input explicitly to list.

  
  
Posted 2 years ago
900 Views
1 Answer
2 years ago
one year ago
Tags
Similar posts