mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Add Azure AI Search as Vector DB #106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AllenHu2024 on GitHub (Mar 21, 2025).
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Azure AI Search is provided by Azure, and can be used as Vector DB & full text search index.
Most of our services are deployed in Azure Cloud, we need to use AI Search as vector DB.
2. Additional context or comments
https://learn.microsoft.com/zh-cn/azure/search/search-get-started-vector
And I am interested in this feature.
3. Can you help us with this feature?
@Mizokuiam commented on GitHub (Mar 24, 2025):
Integrating Azure AI Search is definitely doable. You'll essentially be treating it like any other vector database backend. That means you'll need to handle things like:
sentence-transformersorOpenAIlibraries, though Azure has its own offerings too). The key is consistency between indexing and querying.difyuses) will be your primary tool for interacting with the service. You'll need to configure it with your service endpoint and API keys.Collection(Edm.Single)), as well as any other relevant data.I've seen similar integrations before where folks abstract the vector DB interaction behind an interface. That allows you to easily swap between different vector DB backends (like FAISS, Pinecone, etc.) without changing core application logic. This could be a good approach for
difytoo, offering more flexibility down the line.For a rough idea, a snippet might look like this (Python example, assuming you've already handled client setup and schema definition):
Obviously, you'll need to adapt this to
dify's architecture, but it illustrates the general idea.Hit me up if you run into any snags or want to discuss the implementation in more detail. Happy to help!
@dosubot[bot] commented on GitHub (Apr 25, 2025):
Hi, @AllenHu2024. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!
@AllenHu2024 commented on GitHub (Apr 25, 2025):
@dosubot the feature does not exist in the latest version.
@dosubot[bot] commented on GitHub (Apr 25, 2025):
@crazywoola, the user @AllenHu2024 has indicated that the integration of Azure AI Search as a Vector Database is still relevant and does not exist in the latest version. Could you please assist them with this issue?
@kejoe-zhang commented on GitHub (Apr 27, 2025):
Hello, have you implemented this feature (dify support Azure AI Search?)
@dosubot[bot] commented on GitHub (Apr 27, 2025):
I found a similar unsolved discussion regarding Azure AI Search integration with Dify: Is supported Saas KnowledgeBase like Azure AI Search [1]. Additionally, there was a closed issue titled Hope to add Azure AI search function to Dify, but no solution was found in the comments [2].
To integrate Azure AI Search as a vector database backend in Dify, you would need to treat it like any other vector database backend. This involves:
You might consider abstracting the vector DB interaction behind an interface to allow easy swapping between different vector DB backends, offering more flexibility for Dify [1].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other