Skip to content

Commit 01ec787

Browse files
Update card include and add ML demo (#10689) (#10690)
1 parent c8e3c79 commit 01ec787

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

_includes/cards.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@
22
<div class="card-container">
33
{% for card in include.cards %}
44
<div class="card">
5-
<a href="{{ site.url }}{{ site.baseurl }}{{ card.link }}" class="card-link"></a>
6-
<p class="heading">{{ card.heading }}</p>
5+
{% if card.link contains 'http://' or card.link contains 'https://' %}
6+
<a href="{{ card.link }}" class="card-link"></a>
7+
{% else %}
8+
<a href="{{ site.url }}{{ site.baseurl }}{{ card.link }}" class="card-link"></a>
9+
{% endif %}
10+
11+
<p class="heading">{{ card.heading }}</p>
712
{% if card.description %}
813
<p class="description">{{ card.description }}</p>
914
{% endif %}
1015
{% if card.list %}
1116
<ul>
12-
{% for item in card.list %}
13-
<li class="description">{{ item }}</li>
14-
{% endfor %}
17+
{% for item in card.list %}
18+
<li class="description">{{ item }}</li>
19+
{% endfor %}
1520
</ul>
16-
{% endif %}
21+
{% endif %}
1722
{% if include.documentation_link %}
1823
<p class="last-link">Documentation &#x2192;</p>
1924
{% endif %}
2025
</div>
2126
{% endfor %}
2227
</div>
23-
</div>
28+
</div>
2429

_ml-commons-plugin/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ nav_exclude: true
88
permalink: /ml-commons-plugin/
99
redirect_from:
1010
- /ml-commons-plugin/index/
11+
demo_cards:
12+
- heading: "Explore AI search and RAG demos"
13+
description: "Try interactive Hugging Face demos showcasing AI search, multimodal RAG, and agentic RAG"
14+
link: "https://huggingface.co/spaces/opensearch-project/OpenSearch-AI"
1115
models:
1216
- heading: "Deploy local models to your cluster"
1317
link: "/ml-commons-plugin/using-ml-models/"
@@ -47,6 +51,10 @@ algorithms:
4751

4852
OpenSearch offers two distinct approaches to machine learning (ML): using ML models for tasks like semantic search and text generation, and running statistical algorithms for data analysis. Choose the approach that best fits your use case.
4953

54+
## Interactive demos
55+
56+
{% include cards.html cards=page.demo_cards %}
57+
5058
## ML models for search and AI/ML-powered applications
5159

5260
OpenSearch supports ML models that you can use to enhance search relevance through semantic understanding. You can either deploy models directly within your OpenSearch cluster or connect to models hosted on external platforms. These models can transform text into vector embeddings, enabling semantic search capabilities, or provide advanced features like text generation and question answering. For more information, see [Integrating ML models]({{site.url}}{{site.baseurl}}/ml-commons-plugin/integrating-ml-models/).

_vector-search/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ tutorial_cards:
1616
- heading: "Generate embeddings automatically"
1717
description: "Streamline your vector search using OpenSearch's built-in embedding generation"
1818
link: "/vector-search/getting-started/auto-generated-embeddings/"
19+
demo_cards:
20+
- heading: "Explore AI search and RAG demos"
21+
description: "Try interactive Hugging Face demos showcasing AI search, multimodal RAG, and agentic RAG"
22+
link: "https://huggingface.co/spaces/opensearch-project/OpenSearch-AI"
1923
more_cards:
2024
- heading: "AI search"
2125
description: "Discover AI search, from <b>semantic</b>, <b>hybrid</b>, and <b>multimodal</b> search to <b>RAG</b>"
@@ -1131,6 +1135,10 @@ DELETE /neural_search_pqa
11311135

11321136
</details>
11331137

1138+
## Interactive demos
1139+
1140+
{% include cards.html cards=page.demo_cards %}
1141+
11341142
## Getting started
11351143

11361144
You can bring your own vectors or let OpenSearch generate embeddings automatically from your data. See [Preparing vectors]({{site.url}}{{site.baseurl}}/vector-search/getting-started/vector-search-options/).

0 commit comments

Comments
 (0)