mirror of
https://github.com/ollama/ollama.git
synced 2025-11-11 09:27:40 +01:00
added cli tab
This commit is contained in:
@@ -13,8 +13,8 @@ Embeddings turn text into numeric vectors you can store in a vector database, se
|
|||||||
|
|
||||||
## Generate embeddings
|
## Generate embeddings
|
||||||
|
|
||||||
### CLI
|
<Tabs>
|
||||||
|
<Tab title="CLI">
|
||||||
Generate embeddings directly from the command line:
|
Generate embeddings directly from the command line:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -29,11 +29,7 @@ echo "Hello world" | ollama run embeddinggemma
|
|||||||
|
|
||||||
Output is a JSON array.
|
Output is a JSON array.
|
||||||
|
|
||||||
### API and SDKs
|
</Tab>
|
||||||
|
|
||||||
Use `/api/embed` with a single string.
|
|
||||||
|
|
||||||
<Tabs>
|
|
||||||
<Tab title="cURL">
|
<Tab title="cURL">
|
||||||
```shell
|
```shell
|
||||||
curl -X POST http://localhost:11434/api/embed \
|
curl -X POST http://localhost:11434/api/embed \
|
||||||
|
|||||||
Reference in New Issue
Block a user