redis / redis-vl-python

Redis Vector Library (RedisVL) interfaces with Redis' vector database for realtime semantic search, RAG, and recommendation systems.
https://www.redisvl.com/
MIT License
210 stars 32 forks source link

Add support for AzureOpenAI #131

Closed ajac-zero closed 5 months ago

ajac-zero commented 6 months ago

Objetive

Added a new TextVectorizer for the AzureOpenAI API, which is based on the AzureOpenAI and AsyncAzureOpenAI classes from openai>=1.0.0.

Reason

Compatibility with Azure OpenAI is an important feature for developers that are building enterprise AI applications with Azure Cloud. Particularly for use cases where privacy is a concern, and data must stay within their cloud tenant.

My team particularly wants to integrate Semantic Cache (with Azure Cache for Redis Enterprise). Since we rely on the Azure OpenAI API, I created this new vectorizer to add that functionality.

tylerhutcherson commented 6 months ago

@ajac-zero thanks for opening this -- will take a look and we will definitely get this in soon.

ajac-zero commented 5 months ago

Sure thing, @tylerhutcherson. I've added the Azure vectorizer to the vectorizer test loop and a new section for Azure OpenAI in the vectorizers notebook.

All vectorizer tests pass with the Azure OpenAI vectorizer. image