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

Azure AI Agent Service AI Search/Cognitive search Issue #39015

Open
apvarana opened this issue Jan 2, 2025 · 4 comments
Open

Azure AI Agent Service AI Search/Cognitive search Issue #39015

apvarana opened this issue Jan 2, 2025 · 4 comments
Labels
AI customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@apvarana
Copy link

apvarana commented Jan 2, 2025

conn_list = project_client.connections.list()
conn_id = ""
for conn in conn_list:
if conn.connection_type == "CognitiveSearch":
conn_id = conn.id
break

print(conn_id)

Connection Type looks like it is changed to ConnectionType.AZURE_AI_SEARCH

Actually this sample is throwing error "Message: Invalid tool value(s): azure_ai_search"

Can the sample be updated with right data
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_ai_search.py

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 2, 2025
@xiangyan99 xiangyan99 added Docs Service Attention Workflow: This issue is responsible by Azure service team. AI and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jan 2, 2025
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @achauhan-scc @kingernupur @luigiw @needuv @paulshealy1 @singankit.

@jhakulin
Copy link
Member

jhakulin commented Jan 2, 2025

@apvarana Thanks for the report, the problem is probably due to incorrect capability hosts in your settings, please check the following document and follow the instructions for the standard agent setup, that should configure capability hosts correctly.

https://learn.microsoft.com/en-us/azure/ai-services/agents/how-to/tools/azure-ai-search?tabs=azurecli%2Cpython&pivots=overview-azure-ai-search

@apvarana
Copy link
Author

apvarana commented Jan 3, 2025

I already looked into the link that you suggested, The documentation suggests the below but for Azure AI Search Connection type changed to ConnectionType.AZURE_AI_SEARCH, Also as I mentioned it is throwing error in connection even after giving/setting connection and passing the index. I feel some part of the implementation is changed.

AI Search resource connection ID This code prints out the connection ID of all the Azure AI Search connections in the project If you have more than one AI search connection, make sure to select the correct one that contains the index you want to use.
conn_list = project_client.connections.list()
conn_id = ""
for conn in conn_list:
if conn.connection_type == "CognitiveSearch":
print(f"Connection ID: {conn.id}")

@jhakulin
Copy link
Member

jhakulin commented Jan 3, 2025

@apvarana We will update the sample to use ConnectionType.AZURE_AI_SEARCH instead of "CognitiveSearch". That will not impact to your issue though because the enum has the same value.

The error "Message: Invalid tool value(s): azure_ai_search" is most likely caused by missing capability hosts for ai search and related assets; that can be configured through the template deployment, see following document

https://learn.microsoft.com/en-us/azure/ai-services/agents/quickstart?pivots=programming-language-python-azure#choose-basic-or-standard-agent-setup,

and choose standard agent setup

Image

Did you do that already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants