Find answers from the community

s
F
Y
a
P
Updated last month

Py

I could use help getting py2wasm to compile. A simple test can be made by...

llama.py:
Plain Text
from llama_index.core.chat_engine.types import StreamingAgentChatResponse


and then: py2wasm -o llama.wasm llama.py

I think it's getting stuck compiling pillow. Not 100% sure about it. py2wasm was just recently forked from Nuitka by the wasmer ppl. This obviously isn't normal scope but it would be a great benefit to run llama-index in edge functions/workers.

https://wasmer.io/posts/py2wasm-a-python-to-wasm-compiler
L
1 comment
There are some complex dependencies that will definitely have trouble with py2wasm (pandas, sqlalchemy, to name two)

I don't see an easy way to get that working πŸ€” although it has been on my todo list to remove those two as core dependencies.

Maybe you could fork the repo and try it?
Add a reply
Sign up and join the conversation on Discord