Skip to content

AzureAISearchTool - Object has no attribute 'semantic_config_name' #6430

@StellaSource-Carlisle

Description

@StellaSource-Carlisle

What happened?

Bug Description
When attempting to run the AzureAISearchTool.create_hybrid_search(), we are receiving the error message ValueError: Error from Azure AI Search: 'AzureAISearchConfig' object has no attribute 'semantic_config_name'

To Reproduce

_cog_search_tool = AzureAISearchTool.create_hybrid_search(
    name="call_cog_search",
    endpoint=_settings.COG_SEARCH_ENDPOINT,
    index_name=_settings.COG_SEARCH_INDEX,
    credential=AzureKeyCredential(_settings.COG_SEARCH_KEY),
    vector_fields=["description_vector"],
    search_fields=["v_description", "description"],
    select_fields=[
        "product_id",
        "product_description",
        "dims"
    ],
    top=7
)

We have attempted to set the semantic_config_name explicitly to None to no avail.

Expected behavior
The AzureAISearchTool is able to hit the CogSearch endpoint and aggregate the results.

Additional context
Attempted versions 0.5.2 - 0.5.5. Issues remains across all versions.

Which packages was the bug in?

Python Extensions (autogen-ext)

AutoGen library version.

Python 0.5.5

Other library version.

No response

Model used

No response

Model provider

Azure OpenAI

Other model provider

No response

Python version

3.13

.NET version

None

Operating system

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions