Unable to create ai search index using integrated vectorization while my open ai service is behind proxy endpoint

Sumit Sontakke 5 Reputation points
2024-06-19T13:44:01.1766667+00:00

Hi,

I'm trying to create a ai search index with integrated vectorization and configuring vectorization as:

vector_search = VectorSearch(  
    algorithms=[  
        HnswAlgorithmConfiguration(  
            name="myHnsw",  
            parameters=HnswParameters(  
                m=4,  
                ef_construction=400,  
                ef_search=500,  
                metric=VectorSearchAlgorithmMetric.COSINE,  
            ),  
        ),  
        ExhaustiveKnnAlgorithmConfiguration(  
            name="myExhaustiveKnn",  
            parameters=ExhaustiveKnnParameters(  
                metric=VectorSearchAlgorithmMetric.COSINE,  
            ),  
        ),  
    ],  
    profiles=[  
        VectorSearchProfile(  
            name="myHnswProfile",  
            algorithm_configuration_name="myHnsw",  
            vectorizer="myOpenAI",  
        ),  
        VectorSearchProfile(  
            name="myExhaustiveKnnProfile",  
            algorithm_configuration_name="myExhaustiveKnn",  
            vectorizer="myOpenAI",  
        ),  
    ],  
    vectorizers=[  
        AzureOpenAIVectorizer(  
            name="myOpenAIbehindProxy",  
            kind="azureOpenAI",  
            azure_open_ai_parameters=AzureOpenAIParameters(  
                resource_uri = CONFIG.OPEN_AI_PROXY_URL
                # resource_uri = CONFIG.OPEN_AI_URL,
                deployment_id="text-embedding-ada-002-dep",  
                api_key=open_ai_auth_token,  
            ),  
        ),
    ],  
)  
Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
859 questions
{count} vote