run-llama / create-llama

The easiest way to get started with LlamaIndex
MIT License
803 stars 98 forks source link

Write Wikipedia tool in WASM #252

Open marcusschiesser opened 3 weeks ago

marcusschiesser commented 3 weeks ago

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

thucpn commented 2 weeks ago

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