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.
1,339 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,599 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 33,071 Reputation points 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.


0 additional answers

Sort by: Most helpful

Your answer

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