Skip to content

Commit 98bb32d

Browse files
authored
Move notice in README.md
1 parent 8ce8f86 commit 98bb32d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ Run the following Go CLI command in your project directory:
4040
go get -u github.com/anush008/fastembed-go
4141
```
4242

43+
## ℹ︎ Notice:
44+
45+
The Onnx runtime path is automatically loaded on most environments. However, if you encounter
46+
```sh
47+
panic: Platform-specific initialization failed: Error loading ONNX shared library
48+
```
49+
Set the `ONNX_PATH` env to your Onnx installation.
50+
For eg, on MacOS:
51+
```sh
52+
export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.dylib"
53+
```
54+
On Linux:
55+
```sh
56+
export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.so"
57+
```
58+
You can find the Onnx runtime releases [here](https://github.com/microsoft/onnxruntime/releases).
59+
4360
## 📖 Usage
4461

4562
```go
@@ -107,23 +124,6 @@ if err != nil {
107124
}
108125
```
109126

110-
## ℹ︎ Notice:
111-
112-
The Onnx runtime path is automatically loaded on most environments. However, if you encounter
113-
```sh
114-
panic: Platform-specific initialization failed: Error loading ONNX shared library
115-
```
116-
Set the `ONNX_PATH` env to your Onnx installation.
117-
For eg, on MacOS:
118-
```sh
119-
export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.dylib"
120-
```
121-
On Linux:
122-
```sh
123-
export ONNX_PATH="/path/to/onnx/lib/libonnxruntime.so"
124-
```
125-
You can find the Onnx runtime releases [here](https://github.com/microsoft/onnxruntime/releases).
126-
127127
## 🚒 Under the hood
128128

129129
### Why fast?

0 commit comments

Comments
 (0)