Write Wikipedia tool in WASM #41

Closed
opened 2026-02-15 19:15:25 -05:00 by yindo · 1 comment
Owner

Originally created by @marcusschiesser on GitHub (Aug 26, 2024).

Originally assigned to: @thucpn on GitHub.

Context

WASM would be a great technology for writing the same LLM tool once and using it in Python and TS.

However, the problem is that even a simple HTTP fetch is not standardized among WASM runtimes. This would be the minimum requirement for a runtime running LLM tools (tools usually do API calls).

Status

LlamaIndexTS can already use WASM tools; see https://github.com/run-llama/LlamaIndexTS/blob/main/packages/wasm-tools/README.md

Options

How can we do an HTTP fetch?

Extism looks more mature. (August 2024)

Next step

Try extism to implement a Wikipedia tool

Originally created by @marcusschiesser on GitHub (Aug 26, 2024). Originally assigned to: @thucpn on GitHub. ## Context WASM would be a great technology for writing the same LLM tool once and using it in Python and TS. However, the problem is that even a simple HTTP fetch is not standardized among WASM runtimes. This would be the minimum requirement for a runtime running LLM tools (tools usually do API calls). ## Status LlamaIndexTS can already use WASM tools; see https://github.com/run-llama/LlamaIndexTS/blob/main/packages/wasm-tools/README.md ## Options How can we do an HTTP fetch? - https://github.com/extism/extism - Webassembly components (see https://component-model.bytecodealliance.org/) Extism looks more mature. (August 2024) ## Next step Try extism to implement a Wikipedia tool
yindo closed this issue 2026-02-15 19:15:25 -05:00
Author
Owner

@thucpn commented on GitHub (Aug 29, 2024):

Extism is very cool for JS and Python. I can:

Just one problem, their python-sdk hasn't support using the http plugin. I submit an issue here to ask them:
https://github.com/extism/python-sdk/issues/25

@thucpn commented on GitHub (Aug 29, 2024): Extism is very cool for JS and Python. I can: - First, build Wasm file by using Extism Compiler Tool: https://github.com/extism/js-pdk - Use Wasm file in Nodejs by using JS SDK: https://www.npmjs.com/package/@extism/extism - Use Wasm file in Python by using Python SDK: https://github.com/extism/python-sdk Just one problem, their python-sdk hasn't support using the http plugin. I submit an issue here to ask them: https://github.com/extism/python-sdk/issues/25
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#41