Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: supported multi-modal embeddings from Azure AI Vision service #162

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

adubovik
Copy link
Collaborator

@adubovik adubovik commented Oct 28, 2024

Introduced a new env var: AZURE_AI_VISION_DEPLOYMENTS that contains a comma-separated list of Azure AI Vision embedding deployments.

The upstreams of such deployments configured in the DIAL Core config are expected to point to Azure AI Vision service: https://<azure-ai-vision-service-name>.cognitiveservices.azure.com/

Under the hood the adapter calls /retrieval:vectorizeImage and /retrieval:vectorizeText endpoints of the Azure AI Vision service to compute embeddings for images and texts.

Example configuration

Replace {adapter-openai-hostname} and {azure-ai-vision-service-name} with values relevant for our setup.

DIAL Core config

{
    "models": {
        "my-azure-ai-vision-embeddings": {
            "type": "embedding",
            "endpoint": "http://{adapter-openai-hostname}/openai/deployments/my-azure-ai-vision-embeddings/embeddings",
            "pricing": {
                "unit": "token",
                "prompt": "0.0009"
            },
            "upstreams": [
                {
                    "endpoint": "https://{azure-ai-vision-service-name}.cognitiveservices.azure.com"
                }
            ]
        }
    }
}

OpenAI adapter configuration

AZURE_AI_VISION_DEPLOYMENTS=my-azure-ai-vision-embeddings

@adubovik adubovik self-assigned this Oct 28, 2024
@adubovik
Copy link
Collaborator Author

adubovik commented Oct 28, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-162.nightly-test.deltixhub.io
E2E tests status: failed

@adubovik
Copy link
Collaborator Author

adubovik commented Oct 28, 2024

/deploy-review

@adubovik
Copy link
Collaborator Author

adubovik commented Oct 29, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-162.nightly-test.deltixhub.io
E2E tests status: success

@adubovik adubovik merged commit 8f55a6e into development Oct 31, 2024
6 checks passed
@adubovik adubovik deleted the feat/support-multi-modal-embeddings branch October 31, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants