Files
kserve/test/e2e/data/text_embedding_input_v2.json
6c4c8a3287 support text embedding task in hugging face server (#3743)
* support text embedding task in huggingfaceserver

Signed-off-by: Kevin Mingtarja <[email protected]>

* fix lint errors

Signed-off-by: Kevin Mingtarja <[email protected]>

* format code

Signed-off-by: Kevin Mingtarja <[email protected]>

* minor refactor

Signed-off-by: Kevin Mingtarja <[email protected]>

* add e2e test

Signed-off-by: Kevin Mingtarja <[email protected]>

* specify task explicitly in e2e test

Signed-off-by: Kevin Mingtarja <[email protected]>

* use approx() for comparing text embedding output

Signed-off-by: Kevin Mingtarja <[email protected]>

* fix output

Signed-off-by: Kevin Mingtarja <[email protected]>

* specify relative tolerance to approx

Signed-off-by: Kevin Mingtarja <[email protected]>

* fix e2e test output

Signed-off-by: Kevin Mingtarja <[email protected]>

* Update to use predict_isvc in test

Signed-off-by: Dan Sun <[email protected]>

* Fix output data assert

Signed-off-by: Dan Sun <[email protected]>

* Add abs toleration

Signed-off-by: Dan Sun <[email protected]>

---------

Signed-off-by: Kevin Mingtarja <[email protected]>
Signed-off-by: Dan Sun <[email protected]>
Co-authored-by: Dan Sun <[email protected]>
2024-08-24 19:19:27 -04:00

11 lines
152 B
JSON

{
"inputs": [
{
"name": "input-0",
"datatype": "BYTES",
"shape": [],
"data": ["This is an example sentence."]
}
]
}