Skip to main content

Notifications

Community site session details

Community site session details

Session Id : /bkrVnDQqEu6kevOveZGeC
Copilot Studio - Bot Administration
Unanswered

Copilot generative response inconsistencies

Like (2) ShareShare
ReportReport
Posted on 30 Jan 2024 17:07:14 by 4

I've got a copilot using generative AI on an internal SharePoint site. I've configured manual authentication and SSO per the online guides and all seems to be working ok having published the Copilot to Teams - we can ask the copilot questions and it is sometimes answering with content from the SharePoint site.  

 

What we are finding though is that sometimes the copilot responds with a "I'm sorry, I'm not sure how to help with that. Can you try rephrasing?" when there is definitely an answer on the SharePoint.  Sometimes asking the exact same question a second time will result in the copilot providing the correct answer from the SharePoint but, not always.  Sometimes issuing a "restart" and then asking the exact same question again also seems to result with the correct answer from the SharePoint.

 

I've enabled Application Insights and it is logging away but, the only thing I notice is that when I ask a question and get a "I'm sorry, I'm not sure how to help with that. Can you try rephrasing?" response, Application Insights seems to just show the copilot using the fallback topic with no real information as to why.  Are there any other logs that I can check which might highlight any reasons for the inconsistencies or is this expected behaviour when using generative AI?

  • CU01041453-0 Profile Picture
    2 on 01 Apr 2025 at 14:57:05
    Copilot generative response inconsistencies
    Did anybody able to resolve this issue. Even I am facing the same issue where agent id working in Copilot studio and agent embedded in SharePoint page. But SPFx chatbot component created with SSO enabled, is not consistent. Sometime it returns the "I'm sorry, I'm not sure how to help with that. Can you try rephrasing?" message.
     
  • ML-03030954-0 Profile Picture
    8 on 04 Dec 2024 at 08:29:23
    Copilot generative response inconsistencies
    Hello Teams,

    We have same issue, Any solution for this ?
  • RG-03070402-0 Profile Picture
    6 on 03 Jul 2024 at 04:04:16
    Copilot generative response inconsistencies
    Did you ever resolve this.  I’m having the exact same issue with almost the same setup you’ve described.
  • Freddie_B Profile Picture
    60 on 02 May 2024 at 10:54:37
    Re: Copilot generative response inconsistencies

    Hi @remidyon ,

     

    I'm attempting to send an HTTP request to OpenAI's service. It seems to function correctly overall. However, when I dynamically assign the content of the user field in the JSON payload to a variable where the question is stored, the response indicates that the information isn't found in the retrieved data. Strangely, if I manually input the same question into the content field, I receive the correct response.

     

    Would you know why this is hapenning?

     

    Thanks 

     

    This is the code:

     

     

     

     

     

     

     

    kind: AdaptiveDialog
    beginDialog:
     kind: OnUnknownIntent
     id: main
     priority: -1
     actions:
     - kind: SetVariable
     id: setVariable_J8onVi
     variable: Topic.UserQuestion
     value: =System.Activity.Text
    
     - kind: HttpRequestAction
     id: vdrcdy
     method: Post
     url: https://ai-XXXXXXXXXXXXXXXXX.openai.azure.com/openai/deployments/gpt-35-turbo-16k/extensions/chat/completions?api-version=2023-06-01-preview
     headers:
     api-key: XXXXX-XXX-XXXXX-XXXXX-XXXX
    
     body:
     kind: JsonRequestContent
     content:
     kind: ValueExpression
     literalValue:
     dataSources:
     - parameters:
     endpoint: https://xxxx-xx-xxx-xx.search.windows.net
     fieldsMapping:
     contentFields:
     - Value: content
    
     contentFieldsSeparator: |
     
     filepathField: metadata_spo_item_name
     titleField: Name
     urlField:
     vectorFields:
    
     filter:
     indexName: sharepoint-index
     inScope: true
     key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     queryType: simple
     roleInformation: You are an AI assistant and you are part of our organization. You need to be polite when you give the answers. The information you will be giving is from an internal SharePoint.
     semanticConfiguration: default
     strictness: 3
     topNDocuments: 5
    
     type: AzureCognitiveSearch
    
     deployment: gpt-35-turbo-16k
     max_tokens: 800
     messages:
     - content: You are an AI assistant and you are part of our organization. You need to be polite when you give the answers. The information you will be giving is from an internal SharePoint.
     role: system
    
     - content: ${Topic.UserQuestion}
     role: user
    
     stop:
     stream: false
     temperature: 0
     top_p: 1
    
     response: Topic.Response
     responseSchema:
     kind: Record
     properties:
     choices:
     type:
     kind: Table
     properties:
     index: Number
     messages:
     type:
     kind: Table
     properties:
     content: String
     end_turn: Boolean
     index: Number
     role: String
    
     created: Number
     id: String
     model: String
     object: String
     usage:
     type:
     kind: Record
     properties:
     completion_tokens: Number
     prompt_tokens: Number
     total_tokens: Number
    
     - kind: SendActivity
     id: sendActivity_CUSi4i
     activity: "{Last(Last(Topic.Response.choices).messages).content}"
    
     - kind: EndDialog
     id: a1Vse4

     

     

     

     

  • Freddie_B Profile Picture
    60 on 26 Apr 2024 at 15:07:01
    Re: Copilot generative response inconsistencies

    Many thanks @remidyon for you reply and clarification. I'll be waiting for more updates.

     

    Freddie

  • remidyon Profile Picture
    on 26 Apr 2024 at 12:47:20
    Re: Copilot generative response inconsistencies

    Hi @Freddie_B 

    Currently the generative answer node in Copilot Studio will rewrite / summarize / moderate the answers generated by Azure OpenAI (basically the answer is going through a second layer of LLM with a different set of system prompts) - our product group is looking at allowing users to avoid that rewrite process, stay tune for more information on this.

    RĂ©mi

  • Freddie_B Profile Picture
    60 on 24 Apr 2024 at 08:53:56
    Re: Copilot generative response inconsistencies

     

    Hi, @remidyon ,

     

    I'm encountering a similar issue. I have created a model through Azure Open AI Studio, which accesses my SharePoint via an index. When using the model in the playground or the webchat app I created (Contoso), the responses are elaborate and correct.

     

    However, when I add the model to Copilot Studio, the behavior is completely different. The responses seem more limited, and sometimes the information provided is very basic. Instead of generating an answer, as it does in the playground, it often responds with preset phrases from one of the default topics.

     

    Is there any explanation to this?

     

    I would appreciate very much your help on this đź™‚

  • Brajesh_Jha Profile Picture
    2 on 01 Mar 2024 at 06:58:17
    Re: Copilot generative response inconsistencies

    I also faced same issue even today. Even after putting lower the moderation level same issue is persisting. Can you reply with any other alternative solution. I have uploaded data in excel, one of the column has name. I am searching for all the rows which contains a particular keyword. With Same question it says "i don't know", other time it fetches the answer.

    Brajesh_Jha_0-1709276146492.pngBrajesh_Jha_1-1709276209500.png

    The second screenshot is in tabular format, as given in instructions. So, it's correct to get that data. But behavior remains inconsistent. Please help

  • remidyon Profile Picture
    on 22 Feb 2024 at 14:55:41
    Re: Copilot generative response inconsistencies

    Hi @MarkB_UK 

    By definition there could be a little variance between each response due to the LLM internal mechanism, and sometimes asking the same questions will produce "I don't know" or the actual answer.

     

    Our product group is working on limiting this kind of behavior and they just released a fix this week regarding this issue, could you try again?

     

    Another thing that could help is to lower the moderation level.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,749 Most Valuable Professional

Leaderboard

Featured topics

Loading started