[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EXQKBDGGEQ236A1N2VMHHN":3,"skill-same:01M6EXQKBDGGEQ236A1N2VMHHN":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6EXQKBDGGEQ236A1N2VMHHN","azure-search-documents-ts",null,"Build search applications using Azure AI Search SDK for JavaScript (@azure\u002Fsearch-documents). Use when creating\u002Fmanaging indexes, implementing vector\u002Fhybrid search, semantic ranking, or building agentic retrieval with knowledge bases.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-search-documents-ts\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"documents","azure","azure search documents ts","search","search documents","with","agentic","Hybrid Search","retrieval","ranking","build","indexes","bases","use","knowledge","applications","vector","azure ai","javascript","sdk","2026-11-10 10:12:30",false,"---\nname: azure-search-documents-ts\ndescription: Build search applications using Azure AI Search SDK for JavaScript (@azure\u002Fsearch-documents). Use when creating\u002Fmanaging indexes, implementing vector\u002Fhybrid search, semantic ranking, or building agentic retrieval with knowledge bases.\npackage: \"@azure\u002Fsearch-documents\"\n---\n\n# Azure AI Search SDK for TypeScript\n\nBuild search applications with vector, hybrid, and semantic search capabilities.\n\n## Installation\n\n```bash\nnpm install @azure\u002Fsearch-documents @azure\u002Fidentity\n```\n\n## Environment Variables\n\n```bash\nAZURE_SEARCH_ENDPOINT=https:\u002F\u002F\u003Cservice-name>.search.windows.net\nAZURE_SEARCH_INDEX_NAME=my-index\nAZURE_SEARCH_ADMIN_KEY=\u003Cadmin-key>  # Optional if using Entra ID\n```\n\n## Authentication\n\n```typescript\nimport { SearchClient, SearchIndexClient } from \"@azure\u002Fsearch-documents\";\nimport { DefaultAzureCredential } from \"@azure\u002Fidentity\";\n\nconst endpoint = process.env.AZURE_SEARCH_ENDPOINT!;\nconst indexName = process.env.AZURE_SEARCH_INDEX_NAME!;\nconst credential = new DefaultAzureCredential();\n\n\u002F\u002F For searching\nconst searchClient = new SearchClient(endpoint, indexName, credential);\n\n\u002F\u002F For index management\nconst indexClient = new SearchIndexClient(endpoint, credential);\n```\n\n## Core Workflow\n\n### Create Index with Vector Field\n\n```typescript\nimport { SearchIndex, SearchField, VectorSearch } from \"@azure\u002Fsearch-documents\";\n\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [\n    { name: \"id\", type: \"Edm.String\", key: true },\n    { name: \"title\", type: \"Edm.String\", searchable: true },\n    { name: \"description\", type: \"Edm.String\", searchable: true },\n    { name: \"category\", type: \"Edm.String\", filterable: true, facetable: true },\n    {\n      name: \"embedding\",\n      type: \"Collection(Edm.Single)\",\n      searchable: true,\n      vectorSearchDimensions: 1536,\n      vectorSearchProfileName: \"vector-profile\",\n    },\n  ],\n  vectorSearch: {\n    algorithms: [\n      { name: \"hnsw-algorithm\", kind: \"hnsw\" },\n    ],\n    profiles: [\n      { name: \"vector-profile\", algorithmConfigurationName: \"hnsw-algorithm\" },\n    ],\n  },\n};\n\nawait indexClient.createOrUpdateIndex(index);\n```\n\n### Index Documents\n\n```typescript\nconst documents = [\n  { id: \"1\", title: \"Widget\", description: \"A useful widget\", category: \"Tools\", embedding: [...] },\n  { id: \"2\", title: \"Gadget\", description: \"A cool gadget\", category: \"Electronics\", embedding: [...] },\n];\n\nconst result = await searchClient.uploadDocuments(documents);\nconsole.log(`Indexed ${result.results.length} documents`);\n```\n\n### Full-Text Search\n\n```typescript\nconst results = await searchClient.search(\"widget\", {\n  select: [\"id\", \"title\", \"description\"],\n  filter: \"category eq 'Tools'\",\n  orderBy: [\"title asc\"],\n  top: 10,\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}: ${result.score}`);\n}\n```\n\n### Vector Search\n\n```typescript\nconst queryVector = await getEmbedding(\"useful tool\"); \u002F\u002F Your embedding function\n\nconst results = await searchClient.search(\"*\", {\n  vectorSearchOptions: {\n    queries: [\n      {\n        kind: \"vector\",\n        vector: queryVector,\n        fields: [\"embedding\"],\n        kNearestNeighborsCount: 10,\n      },\n    ],\n  },\n  select: [\"id\", \"title\", \"description\"],\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}: ${result.score}`);\n}\n```\n\n### Hybrid Search (Text + Vector)\n\n```typescript\nconst queryVector = await getEmbedding(\"useful tool\");\n\nconst results = await searchClient.search(\"tool\", {\n  vectorSearchOptions: {\n    queries: [\n      {\n        kind: \"vector\",\n        vector: queryVector,\n        fields: [\"embedding\"],\n        kNearestNeighborsCount: 50,\n      },\n    ],\n  },\n  select: [\"id\", \"title\", \"description\"],\n  top: 10,\n});\n```\n\n### Semantic Search\n\n```typescript\n\u002F\u002F Index must have semantic configuration\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [...],\n  semanticSearch: {\n    configurations: [\n      {\n        name: \"semantic-config\",\n        prioritizedFields: {\n          titleField: { name: \"title\" },\n          contentFields: [{ name: \"description\" }],\n        },\n      },\n    ],\n  },\n};\n\n\u002F\u002F Search with semantic ranking\nconst results = await searchClient.search(\"best tool for the job\", {\n  queryType: \"semantic\",\n  semanticSearchOptions: {\n    configurationName: \"semantic-config\",\n    captions: { captionType: \"extractive\" },\n    answers: { answerType: \"extractive\", count: 3 },\n  },\n  select: [\"id\", \"title\", \"description\"],\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}`);\n  console.log(`  Caption: ${result.captions?.[0]?.text}`);\n  console.log(`  Reranker Score: ${result.rerankerScore}`);\n}\n```\n\n## Filtering and Facets\n\n```typescript\n\u002F\u002F Filter syntax\nconst results = await searchClient.search(\"*\", {\n  filter: \"category eq 'Electronics' and price lt 100\",\n  facets: [\"category,count:10\", \"brand\"],\n});\n\n\u002F\u002F Access facets\nfor (const [facetName, facetResults] of Object.entries(results.facets || {})) {\n  console.log(`${facetName}:`);\n  for (const facet of facetResults) {\n    console.log(`  ${facet.value}: ${facet.count}`);\n  }\n}\n```\n\n## Autocomplete and Suggestions\n\n```typescript\n\u002F\u002F Create suggester in index\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [...],\n  suggesters: [\n    { name: \"sg\", sourceFields: [\"title\", \"description\"] },\n  ],\n};\n\n\u002F\u002F Autocomplete\nconst autocomplete = await searchClient.autocomplete(\"wid\", \"sg\", {\n  mode: \"twoTerms\",\n  top: 5,\n});\n\n\u002F\u002F Suggestions\nconst suggestions = await searchClient.suggest(\"wid\", \"sg\", {\n  select: [\"title\"],\n  top: 5,\n});\n```\n\n## Batch Operations\n\n```typescript\n\u002F\u002F Batch upload, merge, delete\nconst batch = [\n  { upload: { id: \"1\", title: \"New Item\" } },\n  { merge: { id: \"2\", title: \"Updated Title\" } },\n  { delete: { id: \"3\" } },\n];\n\nconst result = await searchClient.indexDocuments({ actions: batch });\n```\n\n## Key Types\n\n```typescript\nimport {\n  SearchClient,\n  SearchIndexClient,\n  SearchIndexerClient,\n  SearchIndex,\n  SearchField,\n  SearchOptions,\n  VectorSearch,\n  SemanticSearch,\n  SearchIterator,\n} from \"@azure\u002Fsearch-documents\";\n```\n\n## Best Practices\n\n1. **Use hybrid search** - Combine vector + text for best results\n2. **Enable semantic ranking** - Improves relevance for natural language queries\n3. **Batch document uploads** - Use `uploadDocuments` with arrays, not single docs\n4. **Use filters for security** - Implement document-level security with filters\n5. **Index incrementally** - Use `mergeOrUploadDocuments` for updates\n6. **Monitor query performance** - Use `includeTotalCount: true` sparingly in production\n","# Azure AI Search SDK for TypeScript\n\nBuild search applications with vector, hybrid, and semantic search capabilities.\n\n## Installation\n\n```bash\nnpm install @azure\u002Fsearch-documents @azure\u002Fidentity\n```\n\n## Environment Variables\n\n```bash\nAZURE_SEARCH_ENDPOINT=https:\u002F\u002F\u003Cservice-name>.search.windows.net\nAZURE_SEARCH_INDEX_NAME=my-index\nAZURE_SEARCH_ADMIN_KEY=\u003Cadmin-key>  # Optional if using Entra ID\n```\n\n## Authentication\n\n```typescript\nimport { SearchClient, SearchIndexClient } from \"@azure\u002Fsearch-documents\";\nimport { DefaultAzureCredential } from \"@azure\u002Fidentity\";\n\nconst endpoint = process.env.AZURE_SEARCH_ENDPOINT!;\nconst indexName = process.env.AZURE_SEARCH_INDEX_NAME!;\nconst credential = new DefaultAzureCredential();\n\n\u002F\u002F For searching\nconst searchClient = new SearchClient(endpoint, indexName, credential);\n\n\u002F\u002F For index management\nconst indexClient = new SearchIndexClient(endpoint, credential);\n```\n\n## Core Workflow\n\n### Create Index with Vector Field\n\n```typescript\nimport { SearchIndex, SearchField, VectorSearch } from \"@azure\u002Fsearch-documents\";\n\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [\n    { name: \"id\", type: \"Edm.String\", key: true },\n    { name: \"title\", type: \"Edm.String\", searchable: true },\n    { name: \"description\", type: \"Edm.String\", searchable: true },\n    { name: \"category\", type: \"Edm.String\", filterable: true, facetable: true },\n    {\n      name: \"embedding\",\n      type: \"Collection(Edm.Single)\",\n      searchable: true,\n      vectorSearchDimensions: 1536,\n      vectorSearchProfileName: \"vector-profile\",\n    },\n  ],\n  vectorSearch: {\n    algorithms: [\n      { name: \"hnsw-algorithm\", kind: \"hnsw\" },\n    ],\n    profiles: [\n      { name: \"vector-profile\", algorithmConfigurationName: \"hnsw-algorithm\" },\n    ],\n  },\n};\n\nawait indexClient.createOrUpdateIndex(index);\n```\n\n### Index Documents\n\n```typescript\nconst documents = [\n  { id: \"1\", title: \"Widget\", description: \"A useful widget\", category: \"Tools\", embedding: [...] },\n  { id: \"2\", title: \"Gadget\", description: \"A cool gadget\", category: \"Electronics\", embedding: [...] },\n];\n\nconst result = await searchClient.uploadDocuments(documents);\nconsole.log(`Indexed ${result.results.length} documents`);\n```\n\n### Full-Text Search\n\n```typescript\nconst results = await searchClient.search(\"widget\", {\n  select: [\"id\", \"title\", \"description\"],\n  filter: \"category eq 'Tools'\",\n  orderBy: [\"title asc\"],\n  top: 10,\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}: ${result.score}`);\n}\n```\n\n### Vector Search\n\n```typescript\nconst queryVector = await getEmbedding(\"useful tool\"); \u002F\u002F Your embedding function\n\nconst results = await searchClient.search(\"*\", {\n  vectorSearchOptions: {\n    queries: [\n      {\n        kind: \"vector\",\n        vector: queryVector,\n        fields: [\"embedding\"],\n        kNearestNeighborsCount: 10,\n      },\n    ],\n  },\n  select: [\"id\", \"title\", \"description\"],\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}: ${result.score}`);\n}\n```\n\n### Hybrid Search (Text + Vector)\n\n```typescript\nconst queryVector = await getEmbedding(\"useful tool\");\n\nconst results = await searchClient.search(\"tool\", {\n  vectorSearchOptions: {\n    queries: [\n      {\n        kind: \"vector\",\n        vector: queryVector,\n        fields: [\"embedding\"],\n        kNearestNeighborsCount: 50,\n      },\n    ],\n  },\n  select: [\"id\", \"title\", \"description\"],\n  top: 10,\n});\n```\n\n### Semantic Search\n\n```typescript\n\u002F\u002F Index must have semantic configuration\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [...],\n  semanticSearch: {\n    configurations: [\n      {\n        name: \"semantic-config\",\n        prioritizedFields: {\n          titleField: { name: \"title\" },\n          contentFields: [{ name: \"description\" }],\n        },\n      },\n    ],\n  },\n};\n\n\u002F\u002F Search with semantic ranking\nconst results = await searchClient.search(\"best tool for the job\", {\n  queryType: \"semantic\",\n  semanticSearchOptions: {\n    configurationName: \"semantic-config\",\n    captions: { captionType: \"extractive\" },\n    answers: { answerType: \"extractive\", count: 3 },\n  },\n  select: [\"id\", \"title\", \"description\"],\n});\n\nfor await (const result of results.results) {\n  console.log(`${result.document.title}`);\n  console.log(`  Caption: ${result.captions?.[0]?.text}`);\n  console.log(`  Reranker Score: ${result.rerankerScore}`);\n}\n```\n\n## Filtering and Facets\n\n```typescript\n\u002F\u002F Filter syntax\nconst results = await searchClient.search(\"*\", {\n  filter: \"category eq 'Electronics' and price lt 100\",\n  facets: [\"category,count:10\", \"brand\"],\n});\n\n\u002F\u002F Access facets\nfor (const [facetName, facetResults] of Object.entries(results.facets || {})) {\n  console.log(`${facetName}:`);\n  for (const facet of facetResults) {\n    console.log(`  ${facet.value}: ${facet.count}`);\n  }\n}\n```\n\n## Autocomplete and Suggestions\n\n```typescript\n\u002F\u002F Create suggester in index\nconst index: SearchIndex = {\n  name: \"products\",\n  fields: [...],\n  suggesters: [\n    { name: \"sg\", sourceFields: [\"title\", \"description\"] },\n  ],\n};\n\n\u002F\u002F Autocomplete\nconst autocomplete = await searchClient.autocomplete(\"wid\", \"sg\", {\n  mode: \"twoTerms\",\n  top: 5,\n});\n\n\u002F\u002F Suggestions\nconst suggestions = await searchClient.suggest(\"wid\", \"sg\", {\n  select: [\"title\"],\n  top: 5,\n});\n```\n\n## Batch Operations\n\n```typescript\n\u002F\u002F Batch upload, merge, delete\nconst batch = [\n  { upload: { id: \"1\", title: \"New Item\" } },\n  { merge: { id: \"2\", title: \"Updated Title\" } },\n  { delete: { id: \"3\" } },\n];\n\nconst result = await searchClient.indexDocuments({ actions: batch });\n```\n\n## Key Types\n\n```typescript\nimport {\n  SearchClient,\n  SearchIndexClient,\n  SearchIndexerClient,\n  SearchIndex,\n  SearchField,\n  SearchOptions,\n  VectorSearch,\n  SemanticSearch,\n  SearchIterator,\n} from \"@azure\u002Fsearch-documents\";\n```\n\n## Best Practices\n\n1. **Use hybrid search** - Combine vector + text for best results\n2. **Enable semantic ranking** - Improves relevance for natural language queries\n3. **Batch document uploads** - Use `uploadDocuments` with arrays, not single docs\n4. **Use filters for security** - Implement document-level security with filters\n5. **Index incrementally** - Use `mergeOrUploadDocuments` for updates\n6. **Monitor query performance** - Use `includeTotalCount: true` sparingly in production\n",{"name":5,"package":44,"description":7},"@azure\u002Fsearch-documents","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-search-documents-ts",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill azure-search-documents-ts",{"tool":60,"command":61},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill azure-search-documents-ts",{"tool":63,"command":64},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill azure-search-documents-ts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-search-documents-ts\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"skill-report.json","REFERENCE","参考文档",8185,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsickn33\u002Fazure-search-documents-ts\u002Fskill-report.json",[75,84,93,101,107,113],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[81,82,83],"model","model hierarchy","model hierarchy skill",{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[90,91,92],"MCP","zoom","zoom mcp",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[38,99,100,91],"zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[109],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[115]]