Search API not working

Vishav Singh | CHECKER 0 Reputation points
2024-09-26T11:16:31.2966667+00:00

API URL:

https://**/openai/deployments//chat/completions?api-version=2024-02-15-preview

Azure Search Details:

 Azure Search Endpoint: https://**********.search.windows.net

Azure Search Key: ***********

Azure Search Index Name: 'mamta-test-index-7'

The data source is configured as follows:

"data_sources": [

        {

            "type": "azure_search",

            "parameters": {

            "endpoint": "https://**********.search.windows.net",

            "index_name": "mamta-test-index-7",

            "semantic_configuration": "default",

            "query_type": "vector_semantic_hybrid",

            "in_scope": true,

            "role_information": "You are an AI assistant that helps people find information.",

            "filter": null,

            "strictness": 4,

            "top_n_documents": 5,

            "authentication": {

                "type": "api_key",

                "key": "*************"

            },

            "embedding_dependency": {

                "type": "deployment_name",

                "deployment_name": "text-embedding-3-large"

            },

            "key": "***********",

            "indexName": "mamta-test-index-7"

            }

        }

    ]

I am passing this data with the API call. Here is an example of a response from the API, shown in the screenshot below:

screenshot URL : https://prnt.sc/GnSxr8efFFh8

I am currently encountering an issue when attempting to fetch data using the Azure Search API. I am able to check the content available in the uploaded file using the index_name, and the results are accurate. However, when I try to retrieve data using the search API, I do not receive a response.

 API URL:

https://*******.search.windows.net/indexes/$indexName/docs?api-version=$apiVersion

 I have included a screenshot of the response received for your reference:

response screen short: https://prnt.sc/pKc5xs7sLHr7

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,015 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,082 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,726 Reputation points
    2024-09-26T16:15:43.62+00:00

    Hello Vishav Singh | CHECKER,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your API is not working and not returning result.

    Regarding your explanations, many things can cause this and there are couple of things you would need to troubleshoot.

    Among many are the followings:

    • You will need to verify that your authentication is correct and has the necessary permissions.
    • The API endpoint and version are correctly specified in your request URL.
    • The query parameters are correctly formatted.

    Try the to view the documentation below for more steps and ways to resolve the issues:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

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.