Update README.md
Browse files
README.md
CHANGED
|
@@ -5,4 +5,22 @@ license: apache-2.0
|
|
| 5 |
embeddings is a repo for quantized bert models in ggml format.
|
| 6 |
|
| 7 |
### usage
|
| 8 |
-
You can utilize [bert.cpp](https://github.com/skeskinen/bert.cpp) as usual or use [our new api](https://rapidapi.com/nohakcoffee/api/simple-similarity) to quickly test it out.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
embeddings is a repo for quantized bert models in ggml format.
|
| 6 |
|
| 7 |
### usage
|
| 8 |
+
You can utilize [bert.cpp](https://github.com/skeskinen/bert.cpp) as usual or use [our new api](https://rapidapi.com/nohakcoffee/api/simple-similarity) to quickly test it out.
|
| 9 |
+
|
| 10 |
+
### api sample output
|
| 11 |
+
```
|
| 12 |
+
{
|
| 13 |
+
"time": {
|
| 14 |
+
"timestamp": 1708287985.356056,
|
| 15 |
+
"prediction_time": 0.07016229629516602
|
| 16 |
+
},
|
| 17 |
+
"texts": {
|
| 18 |
+
"txt1": "A person ",
|
| 19 |
+
"txt2": "A cat"
|
| 20 |
+
},
|
| 21 |
+
"similarity": {
|
| 22 |
+
"semantic": 0.035270897102758283,
|
| 23 |
+
"literal": 0.22219999999999998
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
```
|