Public
Edited
Dec 18
Insert cell
Insert cell
ort = import(
"https://cdn.jsdelivr.net/npm/onnxruntime-web@1.18.0/dist/esm/ort.min.js"
)
Insert cell
loadModel(
"https://huggingface.co/jinaai/jina-embeddings-v3/resolve/main/onnx/model_fp16.onnx"
)
Insert cell
async function loadModel(onnxModelPath) {
ort.env.wasm.wasmPaths =
"https://cdn.jsdelivr.net/npm/onnxruntime-web@1.18.0/dist/";
const session = await ort.InferenceSession.create(onnxModelPath);
return session;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more