File tree 1 file changed +17
-17
lines changed
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,23 @@ Run the following Go CLI command in your project directory:
40
40
go get -u github.com/anush008/fastembed-go
41
41
```
42
42
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
+
43
60
## 📖 Usage
44
61
45
62
``` go
@@ -107,23 +124,6 @@ if err != nil {
107
124
}
108
125
```
109
126
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
-
127
127
## 🚒 Under the hood
128
128
129
129
### Why fast?
You can’t perform that action at this time.
0 commit comments