From 98bb32d57bcbf964ee5a9c3c42fd33d001a832b9 Mon Sep 17 00:00:00 2001 From: Anush Date: Fri, 24 May 2024 22:46:09 +0530 Subject: [PATCH] Move notice in README.md --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 98def50..71a6aac 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,23 @@ Run the following Go CLI command in your project directory: go get -u github.com/anush008/fastembed-go ``` +## ℹī¸Ž Notice: + +The Onnx runtime path is automatically loaded on most environments. However, if you encounter +```sh +panic: Platform-specific initialization failed: Error loading ONNX shared library +``` +Set the `ONNX_PATH` env to your Onnx installation. +For eg, on MacOS: +```sh +export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.dylib" +``` +On Linux: +```sh +export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.so" +``` +You can find the Onnx runtime releases [here](https://github.com/microsoft/onnxruntime/releases). + ## 📖 Usage ```go @@ -107,23 +124,6 @@ if err != nil { } ``` -## ℹī¸Ž Notice: - -The Onnx runtime path is automatically loaded on most environments. However, if you encounter -```sh -panic: Platform-specific initialization failed: Error loading ONNX shared library -``` -Set the `ONNX_PATH` env to your Onnx installation. -For eg, on MacOS: -```sh -export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.dylib" -``` -On Linux: -```sh -export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.so" -``` -You can find the Onnx runtime releases [here](https://github.com/microsoft/onnxruntime/releases). - ## 🚒 Under the hood ### Why fast?