azure-search-vector-samples

AzureMIT活跃维护

Azure AI Search 向量检索功能的官方代码示例集,涵盖嵌入生成、索引构建与查询,帮开发者快速接入向量搜索。

A repository of code samples for Vector search capabilities in Azure AI Search.

暂无版本909star +1 / 7 天375fork同步于 2026-11-10 11:52 UTC

怎么上手

由 README 提炼,执行前请确认
README 未说明
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Azure AI Search 向量检索的官方多语言代码示例集,帮你快速跑通向量索引与查询

Azure AI Search 向量检索功能的官方代码示例集,涵盖嵌入生成、索引构建与查询,帮开发者快速接入向量搜索。

核心能力

  • 提供 Python、C#、Java、JavaScript、REST 多语言示例
  • 演示文本与图像内容的分块和向量化流程
  • 展示索引、索引器、数据源与技能组的集成向量化
  • 演示窄数据类型与内置标量量化压缩向量索引体积
  • 可关闭查询响应中的向量返回以节省存储

容易踩的坑

示例依赖 Azure AI Search 与 Azure OpenAI 云服务,需自备订阅和资源;从 2023-07-01-Preview 到新 API 版本存在破坏性变更,需按迁移指南升级;多数示例需额外配置 Azure Storage 账号提供数据

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Vector samples - Azure AI Search

    This repository provides Python, C#, REST, and JavaScript code samples for vector support in Azure AI Search.

    There are breaking changes from REST API version 2023-07-01-Preview to newer API versions. These breaking changes also apply to the Azure SDK beta packages targeting that REST API version. See Upgrade REST APIs for migration guidance.

    Preview features are available under Supplemental Terms of Use.

    demo-python samples

    SampleDescription
    demo-python readmeA growing collection of notebooks that demonstrate aspects of vector search support, including data chunking and embedding of both text and image content and queries, using a variety of frameworks and techniques.

    demo-dotnet samples

    SampleDescription
    DotNetVectorDemoA .NET console app that calls Azure OpenAI to vectorize data. It then calls Azure AI Search to create, load, and query vector data.
    DotNetIntegratedVectorizationDemoA .NET console app that calls Azure AI Search to create an index, indexer, data source, and skillset. An Azure Storage account provides the data. Azure OpenAI is called by the skillset during indexing, and again during query execution to vectorize text queries.
    QuantizationAndStorageOptionsA .NET console app that demonstrates narrow data types and built-in scalar quantization, reducing vector index size in memory and on disk. It also disables storage of vectors returned in query response, which you don't need if you're not returning vectors in a query.

    demo-java samples

    SampleDescription
    demo-vectorsA Java console app that calls Azure OpenAI to vectorize data. It then calls Azure AI Search to create, load, and query vector data.
    demo-integrated-vectorizationA Java console app that calls Azure AI Search to create an index, indexer, data source, and skillset. An Azure Storage account provides the data. Azure OpenAI is called by the skillset during indexing, and again during query execution to vectorize text queries.

    demo-javascript samples

    SampleDescription
    JavaScriptVectorDemoA single folder contains three code samples. The azure-search-vector-sample.js script calls just Azure OpenAI and is used to generate embeddings for fields in an index. The docs-text-openai-embeddings.js program is an end-to-end code sample that calls Azure OpenAI for embeddings and Azure AI Seach to create, load, and query an index that contains vectors. The query-text-openai-embeddings.js script generates an embedding for a vector query.

    Other vector samples and tools

    • azure-ai-search-lab A learning and experimentation lab for trying out various AI-enabled search scenarios in Azure. It includes web application front-end which uses Azure AI Search and Azure OpenAI to execute searches with a variety of options - ranging from simple keyword search, to semantic ranking, vector and hybrid search, and using generative AI to answer search queries in various ways. This allows you to quickly understand what each option does, how it affects the search results, and how various approaches compare against each other.
    • chat-with-your-data-solution-accelerator A template that deploys multiple Azure resources for a custom chat-with-your-data solution. Use this accelerator to create a production-ready solution that implements coding best practices.
    • Azure Search OpenAI Demo A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. Use the "vectors" branch to leverage Vector retrieval.
    • Azure Search OpenAI Demo - C# A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences using C#.
    • Azure OpenAI Embeddings QnA with Azure Search as a Vector Store (github.com) A simple web application for a OpenAI-enabled document search. This repo uses Azure OpenAI Service for creating embeddings vectors from documents. For answering the question of a user, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
    • ChatGPT Retreival Plugin Azure Search Vector Database The ChatGPT Retrieval Plugin lets you easily find personal or work documents by asking questions in natural language. Azure AI Search now supported as an official vector database.
    • Azure Search Vector Search Demo Web App Template A Vector Search Demo React Web App Template using Azure OpenAI for Text Search and Cognitive Services Florence Vision API for Image Search.
    • Azure Cognitive Search Comparison Tool

    Documentation