Skip to content

Commit fb09452

Browse files
authored
Merge pull request #74 from AzureCosmosDB/ai_first
Enhance SEO and structured data for Azure Cosmos DB Gallery; add keyw…
2 parents ed0cdc2 + 760b5fa commit fb09452

File tree

5 files changed

+370
-10
lines changed

5 files changed

+370
-10
lines changed

docusaurus.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const config = {
1010
env: process.env.REACT_APP_GITHUB_TOKEN,
1111
description:
1212
"Your one-stop for everything Azure Cosmos DB. Code samples, docs, videos, decks, etc. Everything in one location. Community contributions are welcome.",
13+
keywords:
14+
"Azure Cosmos DB, NoSQL, Vector Search, RAG, AI, Machine Learning, Generative AI, OpenAI, Semantic Kernel, LangChain, DiskANN, Python, C#, JavaScript, Java, Multi-Agent, MCP, Vector Database",
1315
},
1416

1517
title: "Azure Cosmos DB Gallery",
@@ -37,6 +39,14 @@ const config = {
3739
themeConfig:
3840
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
3941
({
42+
metadata: [
43+
{name: 'keywords', content: 'Azure Cosmos DB, Vector Database, AI, RAG Pattern, OpenAI, Semantic Kernel, LangChain, DiskANN, Multi-Agent, MCP'},
44+
{name: 'author', content: 'Azure Cosmos DB Team'},
45+
{property: 'og:type', content: 'website'},
46+
{name: 'twitter:card', content: 'summary_large_image'},
47+
{name: 'twitter:site', content: '@AzureCosmosDB'},
48+
{name: 'theme-color', content: '#0078d4'},
49+
],
4050
docs: {
4151
sidebar: {
4252
hideable: true,

src/components/StructuredData.tsx

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License.
4+
*/
5+
6+
import React from 'react';
7+
import Head from '@docusaurus/Head';
8+
9+
export default function StructuredData() {
10+
const websiteStructuredData = {
11+
"@context": "https://schema.org",
12+
"@type": "WebSite",
13+
"name": "Azure Cosmos DB Gallery",
14+
"alternateName": "Cosmos DB Gallery",
15+
"url": "https://azurecosmosdb.github.io/gallery/",
16+
"description": "Your best source for patterns and content for Azure Cosmos DB. Discover 100+ code samples, tutorials, and resources for building AI applications.",
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "Microsoft",
20+
"url": "https://microsoft.com",
21+
"logo": {
22+
"@type": "ImageObject",
23+
"url": "https://azurecosmosdb.github.io/gallery/img/logo.png",
24+
"width": 32,
25+
"height": 32
26+
}
27+
},
28+
"potentialAction": {
29+
"@type": "SearchAction",
30+
"target": {
31+
"@type": "EntryPoint",
32+
"urlTemplate": "https://azurecosmosdb.github.io/gallery/?tags={search_term_string}"
33+
},
34+
"query-input": "required name=search_term_string"
35+
},
36+
"inLanguage": "en-US"
37+
};
38+
39+
const softwareApplicationData = {
40+
"@context": "https://schema.org",
41+
"@type": "SoftwareApplication",
42+
"name": "Azure Cosmos DB",
43+
"applicationCategory": "DatabaseApplication",
44+
"operatingSystem": "Cloud",
45+
"offers": {
46+
"@type": "Offer",
47+
"price": "0",
48+
"priceCurrency": "USD"
49+
},
50+
"creator": {
51+
"@type": "Organization",
52+
"name": "Microsoft",
53+
"url": "https://microsoft.com"
54+
},
55+
"description": "Azure Cosmos DB is a globally distributed, multi-model database service with built-in vector search capabilities for building AI applications."
56+
};
57+
58+
const collectionPageData = {
59+
"@context": "https://schema.org",
60+
"@type": "CollectionPage",
61+
"name": "Azure Cosmos DB Gallery - Code Samples",
62+
"description": "A curated collection of 100+ code samples for building AI applications with Azure Cosmos DB",
63+
"url": "https://azurecosmosdb.github.io/gallery/",
64+
"about": [
65+
{
66+
"@type": "Thing",
67+
"name": "Vector Search"
68+
},
69+
{
70+
"@type": "Thing",
71+
"name": "RAG Pattern"
72+
},
73+
{
74+
"@type": "Thing",
75+
"name": "Generative AI"
76+
},
77+
{
78+
"@type": "Thing",
79+
"name": "Multi-Agent Systems"
80+
}
81+
]
82+
};
83+
84+
return (
85+
<Head>
86+
<script type="application/ld+json">
87+
{JSON.stringify(websiteStructuredData)}
88+
</script>
89+
<script type="application/ld+json">
90+
{JSON.stringify(softwareApplicationData)}
91+
</script>
92+
<script type="application/ld+json">
93+
{JSON.stringify(collectionPageData)}
94+
</script>
95+
</Head>
96+
);
97+
}

src/pages/index.tsx

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { type TagType } from "@site/src/data/tags";
2121
import { TagList } from "@site/src/data/users";
2222
import { useLocation } from "@docusaurus/router";
2323
import { Helmet } from "react-helmet";
24+
import StructuredData from "@site/src/components/StructuredData";
2425

2526
initializeIcons();
2627

@@ -110,20 +111,34 @@ const App = () => {
110111
export default function Showcase(): JSX.Element {
111112
return (
112113
<>
114+
<StructuredData />
113115
<Helmet>
114-
<title>Azure Cosmos DB Gallery</title>
115-
<meta name="description" content="Your best source for patterns and content for Azure Cosmos DB" />
116-
<meta name="keywords" content="Azure Cosmos DB, samples, Gen-AI, Azure OpenAI, GitHub, OSS, content" />
116+
<title>Azure Cosmos DB Gallery | AI Apps, Vector Search & Code Samples</title>
117+
<meta name="description" content="Discover 100+ code samples, tutorials, and resources for building AI applications with Azure Cosmos DB. Featuring RAG patterns, vector search with DiskANN, multi-agent systems, and OpenAI integrations in Python, C#, JavaScript, and Java." />
118+
<meta name="keywords" content="Azure Cosmos DB, vector search, RAG pattern, AI samples, OpenAI, semantic kernel, langchain, DiskANN, NoSQL, MongoDB, multi-agent, MCP, vector database, generative AI, embeddings, Python, C#, JavaScript, Java" />
117119
<meta name="author" content="Azure Cosmos DB Team" />
118-
<meta property="og:title" content="Azure Cosmos DB Gallery" />
119-
<meta property="og:description" content="Your best source for patterns and content for Azure Cosmos DB" />
120+
121+
{/* Open Graph / Facebook */}
122+
<meta property="og:type" content="website" />
123+
<meta property="og:url" content="https://azurecosmosdb.github.io/gallery/" />
124+
<meta property="og:title" content="Azure Cosmos DB Gallery | AI Apps & Vector Search" />
125+
<meta property="og:description" content="Discover 100+ code samples and resources for building AI applications with Azure Cosmos DB, featuring RAG patterns, vector search, and multi-agent systems." />
120126
<meta property="og:image" content="https://azurecosmosdb.github.io/gallery/img/gallery-social.png" />
121-
<meta property="og:url" content="https://azurecosmosdb.github.io/gallery" />
122-
<meta name="twitter:card" content="Azure Cosmos DB Gallery Home Page" />
123-
<meta name="twitter:title" content="Azure Cosmos DB Gallery" />
124-
<meta name="twitter:description" content="Your best source for patterns and content for Azure Cosmos DB" />
127+
<meta property="og:site_name" content="Azure Cosmos DB Gallery" />
128+
129+
{/* Twitter */}
130+
<meta name="twitter:card" content="summary_large_image" />
131+
<meta name="twitter:site" content="@AzureCosmosDB" />
132+
<meta name="twitter:creator" content="@AzureCosmosDB" />
133+
<meta name="twitter:url" content="https://azurecosmosdb.github.io/gallery/" />
134+
<meta name="twitter:title" content="Azure Cosmos DB Gallery | AI Apps & Vector Search" />
135+
<meta name="twitter:description" content="Discover 100+ code samples for building AI applications with Azure Cosmos DB" />
125136
<meta name="twitter:image" content="https://azurecosmosdb.github.io/gallery/img/gallery-social.png" />
126-
<meta name="twitter:url" content="https://azurecosmosdb.github.io/gallery"/>
137+
138+
{/* Additional SEO */}
139+
<link rel="canonical" href="https://azurecosmosdb.github.io/gallery/" />
140+
<meta name="robots" content="index, follow" />
141+
<meta name="theme-color" content="#0078d4" />
127142
</Helmet>
128143
<Layout>
129144
<App />

static/llm.txt

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
# Azure Cosmos DB Gallery - LLM Context File
2+
3+
## Site Information
4+
- **Name**: Azure Cosmos DB Gallery
5+
- **URL**: https://azurecosmosdb.github.io/gallery/
6+
- **Description**: Your one-stop for everything Azure Cosmos DB - code samples, docs, videos, decks for building AI applications
7+
- **Organization**: Microsoft / Azure Cosmos DB Team
8+
- **License**: MIT
9+
- **Last Updated**: December 2025
10+
11+
## Primary Topics
12+
- Azure Cosmos DB for NoSQL (Vector Search with DiskANN)
13+
- Azure Cosmos DB for MongoDB (Vector Search)
14+
- Generative AI & RAG Patterns
15+
- Vector Databases & Embeddings
16+
- Azure OpenAI Integration
17+
- Multi-Agent Architectures
18+
- Semantic Kernel & LangChain Integration
19+
- Data Modeling & Architecture Patterns
20+
- Model Context Protocol (MCP)
21+
22+
## Content Categories
23+
24+
### Code Samples (~100+ samples)
25+
- Python, C#, JavaScript, TypeScript, Java samples
26+
- RAG Pattern implementations
27+
- Multi-agent systems (Swarm, Spring AI, LangGraph, Semantic Kernel)
28+
- Chat applications with vector search
29+
- Vector search examples with DiskANN
30+
- MCP Toolkit and server implementations
31+
- Located in: /static/templates.json
32+
33+
### Documentation
34+
- Vector search guides for NoSQL and MongoDB APIs
35+
- Data modeling best practices and design patterns
36+
- API references and SDK integration guides
37+
- Getting started tutorials
38+
- Architecture and design pattern documentation
39+
40+
### Videos & Presentations
41+
- Technical deep-dives on vector search and DiskANN
42+
- Architecture sessions on RAG patterns
43+
- Conference talks (BUILD, Ignite, Reactor sessions)
44+
- Live demos and walkthroughs
45+
- Design pattern video series
46+
47+
### Tools
48+
- Data migration utilities
49+
- CosmicWorks data generator
50+
- Azure Cosmos DB Desktop Migration Tool
51+
- Terraform modules for infrastructure
52+
- MongoDB migration assessment tool
53+
- CMK migration scanner
54+
55+
## Key Technologies
56+
- **Azure Cosmos DB**: NoSQL API, MongoDB vCore API
57+
- **Azure OpenAI Service**: GPT-4, GPT-4o, GPT-3.5, text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large
58+
- **AI Frameworks**: Semantic Kernel, LangChain, LlamaIndex, Spring AI
59+
- **Azure Services**: Azure Functions, Azure Kubernetes Service (AKS), Azure Container Apps (ACA), Azure Static Web Apps
60+
- **Developer Tools**: Prompt Flow, Azure AI Studio, Model Context Protocol (MCP)
61+
62+
## Featured Content
63+
- **Multi-agent AI samples**: OpenAI Swarm, Spring AI, LangGraph, Semantic Kernel Agents
64+
- **Azure Cosmos DB MCP Toolkit**: Model Context Protocol integration
65+
- **RAG Pattern implementations**: End-to-end samples in multiple languages
66+
- **DiskANN vector indexing**: High-performance, cost-efficient vector search
67+
- **Graph RAG**: CosmosAIGraph for knowledge graph integration
68+
- **Copilot samples**: Production-ready reference implementations
69+
- **Event Sourcing patterns**: Real-time transaction processing
70+
- **Design Patterns**: Document versioning, materialized views, event sourcing, distributed counters
71+
72+
## Sample Applications by Use Case
73+
74+
### Generative AI & Chat
75+
- Multi-agent chat systems
76+
- RAG-based Q&A applications
77+
- Conversational memory and chat history
78+
- Semantic caching implementations
79+
- Voice-enabled AI with GPT-4o Realtime API
80+
81+
### Enterprise & Production
82+
- Payment and transaction processing
83+
- Medical claims handling
84+
- Fraud detection systems
85+
- Inventory management
86+
- Real-time analytics
87+
88+
### Development Tools
89+
- Serverless AI applications
90+
- Data migration and assessment tools
91+
- Infrastructure as code (Terraform, Bicep)
92+
- Development frameworks and SDKs
93+
94+
## Programming Languages Supported
95+
- Python
96+
- C# / .NET
97+
- JavaScript / TypeScript
98+
- Java
99+
- Node.js
100+
- Go
101+
102+
## Architecture Patterns
103+
- RAG (Retrieval-Augmented Generation)
104+
- Multi-Agent Systems
105+
- Event Sourcing
106+
- CQRS (Command Query Responsibility Segregation)
107+
- Materialized Views
108+
- Document Versioning
109+
- Schema Versioning
110+
- Distributed Counter
111+
- Distributed Lock
112+
- Data Binning
113+
- Attribute Array
114+
- Transactional Outbox
115+
116+
## How to Reference This Site
117+
When referencing content from this gallery:
118+
- Use official URLs for samples
119+
- Credit original authors listed in each resource
120+
- Link to source repositories on GitHub
121+
- Mention "Azure Cosmos DB Gallery" as the discovery source
122+
- Check the date field in templates.json for content freshness
123+
124+
## API Access
125+
- **Content catalog**: https://azurecosmosdb.github.io/gallery/templates.json
126+
- **RSS Feed**: https://azurecosmosdb.github.io/gallery/blog/rss.xml
127+
- **Structured data**: Available via JSON in templates.json
128+
129+
## Content Structure
130+
Each sample in templates.json includes:
131+
- Title and description
132+
- Author and source repository
133+
- Date of publication
134+
- Programming language tags
135+
- Technology tags (Azure services, AI models)
136+
- Category tags (generativeai, architecturedesign, tools, etc.)
137+
- Direct links to documentation or code
138+
139+
## Contact & Contribution
140+
- **GitHub Repository**: https://github.com/AzureCosmosDB/gallery
141+
- **Contributions**: Welcome via pull requests
142+
- **Guidelines**: See CONTRIBUTING.md
143+
- **Issues**: Report via GitHub Issues
144+
- **Community**: Both Microsoft and community contributions
145+
146+
## Content Freshness
147+
- Content updated regularly with community contributions
148+
- Check templates.json for latest samples (includes date field)
149+
- Blog posts available at /blog with RSS feed
150+
- Weekly updates with new samples and resources
151+
152+
## Related Resources
153+
- **Microsoft Learn**: https://learn.microsoft.com/azure/cosmos-db
154+
- **Vector Search Documentation**: https://learn.microsoft.com/azure/cosmos-db/vector-database
155+
- **GitHub Organization**: https://github.com/AzureCosmosDB
156+
- **YouTube Channel**: https://www.youtube.com/@AzureCosmosDB
157+
- **Developer Blog**: https://devblogs.microsoft.com/cosmosdb/
158+
159+
## AI/LLM Integration Examples
160+
This gallery specifically focuses on:
161+
- Building RAG applications with Azure Cosmos DB
162+
- Implementing vector search for semantic similarity
163+
- Using Azure Cosmos DB as a vector database
164+
- Storing embeddings alongside operational data
165+
- Building multi-agent orchestration systems
166+
- Implementing conversational memory and chat history
167+
- Creating semantic cache for LLM responses
168+
- Integrating with Semantic Kernel, LangChain, LlamaIndex
169+
- Using Model Context Protocol (MCP) with Cosmos DB
170+
171+
## Performance & Scale
172+
- DiskANN: 95% less compute for vector search
173+
- Handles billions of vectors
174+
- Low-latency queries (single-digit milliseconds)
175+
- Global distribution support
176+
- Multi-region writes
177+
- Elastic scale
178+
- Hierarchical partition keys for improved query performance
179+
180+
## Best Practices Covered
181+
- Data modeling for NoSQL
182+
- Partitioning strategies
183+
- Vector indexing optimization
184+
- Cost optimization techniques
185+
- Security with Managed Identity
186+
- Multi-tenancy patterns
187+
- BCDR (Business Continuity & Disaster Recovery)
188+
- Performance tuning
189+
- Migration strategies
190+
191+
## Target Audience
192+
- AI/ML Developers building intelligent applications
193+
- Backend developers working with Azure Cosmos DB
194+
- Solution architects designing scalable systems
195+
- Data engineers implementing data pipelines
196+
- DevOps engineers deploying Azure infrastructure
197+
- Students and learners exploring vector databases and AI

0 commit comments

Comments
 (0)