Skip to main content

Notifications

Community site session details

Community site session details

Session Id : eN0+/WQhJ41Y3VZDIt13s+
Copilot Studio - General
Unanswered

Intelligent Copilot with Generative Answers, knowledge and LLM Orchestration

Like (5) ShareShare
ReportReport
Posted on 25 Jul 2024 13:17:39 by 25
Hello everyone.
 
I am trying to build a Copilot that would be able to:
  • Understand the user's question or query in a way a LLM can (such as ChatGPT)
  • Decide on which topic to select, based on the user's query and natural language understanding
  • Answer with the Generative Answers feature, based on a certain restricted set of documents
  • AND it should be able to understand one or more follow-up questions, remaining in the current topic, until it understands that the user is not talking about the current topic anymore
For this, I have been using both Generative Answers on uploaded knowledge (SharePoint and uploaded files), and LLM Orcherstration, where a trigger is not defined by phrases, but by a description of when a certain topic should be triggered.
 
For example:
I have 2 documents: one that has information about a company's work-from-home policy, and another that has information about expenses and reimbursements for specific clients (X and Y)
Therefore I create a topic for work-from-home (containing the first document), and another topic for expenses and reimbursements (containing the second document). I write a good description for when each topic should be triggered. Each one uses generative answers to answer, but based on a different document.
Here's how it should work:
  • The user asks a question: "How do I get reimbursed for my 3 day trip to see client X?"
  • The Copilot understand the question is related to topic expenses and reimbursements, goes inside there, scans the knowledge, and answers the question.
  • The user then asks "What about client Y for the same duration?"
  • The Copilot, following the flow of the conversation, also understands that this question is related to topic expenses and reimbursements. Following the previous question, it scans the same knowledge and answers the question.
  • The user now asks "I need to work from home 5 days this month, is that ok?"
  • The Copilot now understand the question is related to topic work-from-home, therefore goes in that topic and answers accordingly
However, for the second question "What about client Y for the same duration?", the Copilot will not be able to classify this into either topic because it doesn't explicitly mention either topic, but acts as a follow up question to another. The best way would be to pass the whole chat into the copilot so it has context and understanding of the discussion, much like ChatGPT does, for example. 
 
Please keep in mind that this is a simple example and the Copilot I'm trying to build is much more complex than that.
 
The classic way I've seen people use Generative Answers with knowledge, is by using the "On unknown Intent" trigger, and just gather all the knowledge together in that one node. In this case, the second question would also go into the "on unknown intent topic".
The main problem with this is that the Copilot will frequently hallucinate and answer differently, often pulling knowledge from the bad document on an answer that was quite straightforward. For example, in this example, there was a document called "work-from-home policy" in which it was specified that employees can work from home 50% of the time, but instead it pulled knowledge from another unrelated document about unpaid leave, and this was even with high content moderation !!
 


In short: is it possible to build this type of intelligent Copilot, that retains context, understands queries, and answers based on existing knowledge, today with Microsoft Copilot Studio? Or should I be looking at other options?
Categories:
  • nikitas_novatix Profile Picture
    25 on 05 Aug 2024 at 07:10:33
    Intelligent Copilot with Generative Answers, knowledge and LLM Orchestration
    @adilei Actually, I already have ... I started with a simple SharePoint site as knowledge source, with about 10 short (1-2 pages) pdf files inside. Even with just that one knowledge source, and a simple question, as shown in my original post screenshot, the answer is not correct. 

    It seems to pull the information a bit randomly from one of the documents and then generate a response based on that random information that was pulled. For example, I ask a question about work-from-home policy, and it answers based on leave policy.

    @Volker_Leitzgen what do you mean only internal and no external? I haven't though about Azure AI for now, how would I use that to solve this problem ?
  • Volker Leitzgen Profile Picture
    Microsoft Employee on 27 Jul 2024 at 09:29:53
    Intelligent Copilot with Generative Answers, knowledge and LLM Orchestration
    My first thought about this is to use only the internal graph and no external....Have you also thought about using Azure AI, if it is getting more complex?
  • adilei Profile Picture
    on 27 Jul 2024 at 07:00:12
    Intelligent Copilot with Generative Answers, knowledge and LLM Orchestration
    I think you need to break this down into smaller questions first. Starting with the question of the quality of generated responses - which knowledge sources have you connected to?

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,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard