From 0158780b6926a41f53eb222b8af738d1819c394a Mon Sep 17 00:00:00 2001 From: nicole pardal Date: Fri, 7 Nov 2025 11:58:32 -0800 Subject: [PATCH] added cli tab --- docs/capabilities/embeddings.mdx | 36 ++++++++++++++------------------ 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/docs/capabilities/embeddings.mdx b/docs/capabilities/embeddings.mdx index ade3124912..7d364200fc 100644 --- a/docs/capabilities/embeddings.mdx +++ b/docs/capabilities/embeddings.mdx @@ -13,27 +13,23 @@ Embeddings turn text into numeric vectors you can store in a vector database, se ## Generate embeddings -### 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. - -### API and SDKs - -Use `/api/embed` with a single string. - + + 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. + + ```shell curl -X POST http://localhost:11434/api/embed \