Share via

Error Code: Validation error at #/data_sources/0/azure_search/parameters/query_type: Input should be 'simple', 'semantic', 'vector', 'vector_simple_hybrid' or 'vector_semantic_hybrid'

Roxy Xu 20 Reputation points
2024-08-05T12:01:25.52+00:00

Yesterday, after adding data to the Index on the chat playground, when I sent the message to the chatbot, the chatbot failed to respond to any queries and returned the error message: “Validation error at #/data_sources/0/azure_search/parameters/query_type: Input should be ‘simple’, ‘semantic’, ‘vector’, ‘vector_simple_hybrid’ or ‘vector_semantic_hybrid’.” It still does not work now. I’ve reviewed the code using the provided button on the chat playground, and it appears to be correct. Could someone assist me in resolving this issue or explain the possible cause?Screenshot 2024-08-05 144309

Screenshot 2024-08-05 144324

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.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

Answer accepted by question author

Amira Bedhiafi 42,046 Reputation points MVP Volunteer Moderator
2024-08-05T16:42:56.41+00:00

Based on this old thread, here is a workaround by coming out of the project, out of the hub and back to the root of AI Studio. Here you can select 'Resources and Keys'.

Select the AI resource you've been working with:

AIStudioRoot

Once you select it, you will be taken to the 'Chat' section of AI Playground where you can select your deployment and add you data:

working chat

When adding the data source, I selected 'Azure AI Search', selected my 'AI Search Service', then the 'AI Search index', I selected 'Add vector', then selected the 'Embedding model' and clicked 'Next' In 'Data Management' Search Type = Hybrid + Semantic, selected my existing search config and clicked 'Next' In Data connection I selected 'API key' and clicked 'Next' In 'Review and finish' I verified all looked good, clicked 'Save and close'

This takes you back to the Chat Playground, I was able to enter my system message and then successfully test the chat with no error. Hoping this workaround helps other too.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.