rag-api-server icon indicating copy to clipboard operation
rag-api-server copied to clipboard

failed to run the api server

Open chengchengpei opened this issue 1 year ago • 2 comments

I followed the instructions in readme.md. it built successfully i guess. but when i run wasmedge rag-api-server.wasm -h, i got the following errors:

[2024-05-29 18:44:18.672] [error] instantiation failed: unknown import, Code: 0x62
[2024-05-29 18:44:18.672] [error]     When linking module: "rustls_client" , function name: "new_codec"
[2024-05-29 18:44:18.672] [error]     At AST node: import description
[2024-05-29 18:44:18.672] [error]     At AST node: import section
[2024-05-29 18:44:18.672] [error]     At AST node: module

chengchengpei avatar May 30 '24 01:05 chengchengpei

Seems the rustls plugin is not required. Please try the following command to reinstall wasmedge with ggml + rustls plugins:

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.13.5 --plugins wasi_nn-ggml wasmedge_rustls

Mentioned here #6

ChloeWKY avatar May 30 '24 07:05 ChloeWKY

@chengchengpei The issue is still there on your side? Thanks!

apepkuss avatar Jul 01 '24 17:07 apepkuss