Issue Querying Elasticsearch Logs with Azure OpenAI

AMROUN Lysa 391 Reputation points
2025-02-17T10:53:12.3333333+00:00

Hello, I am using the Elasticsearch (Preview) module in Azure OpenAI with the "Bring Your Own Data" service. I have successfully connected my Azure OpenAI instance to my Elasticsearch Cloud index, and I would like to query the log content of my index. However, even though the connection is established and my index is detected, all chatbot responses are: "The requested information was not found in the retrieved data. Please try a different query or topic." It seems unable to find any information, despite multiple attempts with different indexes. I have tried both keyword search and vector search, but without success. I don't understand what the issue is. Could you help me? Thanks in advance.

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

1 answer

Sort by: Most helpful
  1. kothapally Snigdha 1,590 Reputation points Microsoft Vendor
    2025-02-19T01:04:10.7566667+00:00

    Hi AMROUN Lysa,

    I understand that you're experiencing issues with querying your Elasticsearch logs through Azure OpenAI. Here are some steps can you follow.

    • Ensure that the fields in your Elasticsearch index are correctly mapped. If the fields containing the log content are not properly defined, the model may not be able to retrieve the relevant information. You can customize the field mapping when adding your data source to ensure that the necessary fields are included.
    • Since you mentioned trying both keyword and vector searches, ensure that you are using the correct search type based on your data. For keyword searches, make sure the terms you are querying exist in the indexed data. For vector searches, ensure that you have an appropriate embedding model deployed and that the vector embeddings are correctly set up.
    • If the model responds with "The requested information isn't present in the retrieved documents," it may indicate that the queries are not matching any content in your index. You might want to try simpler queries or check if the data ingestion was successful and the logs are present in the index.
    • If you are hitting any quota limitations, it may affect the ability to retrieve data. Ensure that you have not exceeded the limits for your service.
    • Ensure that the storage account and Elasticsearch instance are accessible with the credentials you are using. If there are permissions issues, the model may not be able to access the data

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer 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.