You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: copilot-studio/citations-topic/README.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,17 @@
1
1
# Citations (Topic)
2
2
3
-
This is a snippet that demonstrates how you can generate better looking citations in Copilot Studio.
3
+
This snippet demonstrates how you can generate better looking citations in Copilot Studio for [uploaded documents](https://learn.microsoft.com/microsoft-copilot-studio/nlu-documents).
4
+
5
+
This allows to both display a **title** for the document, but also to point to a **URL** when the citation link is clicked, for example to download or open the document.
6
+
7
+
> [!IMPORTANT]
8
+
> **This assumes that you're responsibe for storing the files in a location where they are accessible to your users, when clicked.**
9
+
10
+
The sample works both for uploaded files and other knowledge sources (e.g. public website, SharePoint / OneDrive).
11
+
12
+
With this sample, you have two options, that can be used indepently from each other:
13
+
1. Set a URL pointing to a folder where files are expected to be available to your users, when no URLs are available. For this, set the URL for your base folder in `Topic.UploadedFilesRootUrl`.
14
+
1. Set a mapping between each document and a URL location for the file. For this, udpdated the `Topic.FilesSources` table. Make sure that each file name is encoded in the same way as returned as citation when an answer is generated (e.g. use %20 instead of spaces, etc.)
0 commit comments