From 7b3f424ae199d83acac28e619c60448b7db083b7 Mon Sep 17 00:00:00 2001 From: Jemin Huh Date: Sun, 24 Nov 2024 20:22:59 +0900 Subject: [PATCH] Fix correct external link formatting for Ollama documentation Signed-off-by: Jemin Huh --- .../antora/modules/ROOT/pages/api/chat/ollama-chat.adoc | 8 ++++---- .../ROOT/pages/api/embeddings/ollama-embeddings.adoc | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc index ccdf6f3c9..4fdf15796 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc @@ -10,18 +10,18 @@ The xref:_openai_api_compatibility[OpenAI API compatibility] section explains ho You first need access to an Ollama instance. There are a few options, including the following: -* xref:https://ollama.com/download[Download and install Ollama] on your local machine. +* link:https://ollama.com/download[Download and install Ollama] on your local machine. * Configure and xref:api/testcontainers.adoc[run Ollama via Testcontainers]. * Bind to an Ollama instance via xref:api/cloud-bindings.adoc[Kubernetes Service Bindings]. -You can pull the models you want to use in your application from the xref:https://ollama.com/library[Ollama model library]: +You can pull the models you want to use in your application from the link:https://ollama.com/library[Ollama model library]: [source,shellscript] ---- ollama pull ---- -You can also pull any of the thousands, free, https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]: +You can also pull any of the thousands, free, link:https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]: [source,shellscript] ---- @@ -166,7 +166,7 @@ TIP: In addition to the model specific link:https://github.com/spring-projects/s Spring AI Ollama can automatically pull models when they are not available in your Ollama instance. This feature is particularly useful for development and testing as well as for deploying your applications to new environments. -TIP: You can also pull, by name, any of the thousands, free, https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]. +TIP: You can also pull, by name, any of the thousands, free, link:https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]. There are three strategies for pulling models: diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc index 8ac430cde..c621f6c97 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc @@ -11,7 +11,7 @@ The `OllamaEmbeddingModel` implementation leverages the Ollama https://github.co You first need access to an Ollama instance. There are a few options, including the following: -* xref:https://ollama.com/download[Download and install Ollama] on your local machine. +* link:https://ollama.com/download[Download and install Ollama] on your local machine. * Configure and xref:api/testcontainers.adoc[run Ollama via Testcontainers]. * Bind to an Ollama instance via xref:api/cloud-bindings.adoc[Kubernetes Service Bindings]. @@ -22,7 +22,8 @@ You can pull the models you want to use in your application from the https://oll ollama pull ---- -You can also pull any of the thousands, free, https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]: + +You can also pull any of the thousands, free, link:https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]: [source,shellscript] ---- @@ -166,7 +167,7 @@ EmbeddingResponse embeddingResponse = embeddingModel.call( Spring AI Ollama can automatically pull models when they are not available in your Ollama instance. This feature is particularly useful for development and testing as well as for deploying your applications to new environments. -TIP: You can also pull, by name, any of the thousands, free, https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]. +TIP: You can also pull, by name, any of the thousands, free, link:https://huggingface.co/models?library=gguf&sort=trending[GGUF Hugging Face Models]. There are three strategies for pulling models: