Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
482bec82
"docs/vscode:/vscode.git/clone" did not exist on "9f48394bf7ab75a43435d3ebb96649665e09c98b"
Unverified
Commit
482bec82
authored
Nov 13, 2025
by
nicole pardal
Committed by
GitHub
Nov 13, 2025
Browse files
embeddings: added cli command to embedding docs (#12993)
parent
684a9a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
docs/capabilities/embeddings.mdx
docs/capabilities/embeddings.mdx
+16
-2
No files found.
docs/capabilities/embeddings.mdx
View file @
482bec82
...
@@ -13,9 +13,23 @@ Embeddings turn text into numeric vectors you can store in a vector database, se
...
@@ -13,9 +13,23 @@ Embeddings turn text into numeric vectors you can store in a vector database, se
## Generate embeddings
## Generate embeddings
Use `/api/embed` with a single string.
<Tabs>
<Tabs>
<Tab title="CLI">
Generate embeddings directly from the command line:
```shell
ollama run embeddinggemma "Hello world"
```
You can also pipe text to generate embeddings:
```shell
echo "Hello world" | ollama run embeddinggemma
```
Output is a JSON array.
</Tab>
<Tab title="cURL">
<Tab title="cURL">
```shell
```shell
curl -X POST http://localhost:11434/api/embed \
curl -X POST http://localhost:11434/api/embed \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment