qmatteoq / SemanticKernel-Demos

MIT License
66 stars 8 forks source link

web page documents doesnt show the correct reference links in a response. #2

Closed harishkm83 closed 9 months ago

harishkm83 commented 9 months ago

Let me first thank you for creating this sample, it was really helpful. After uploading content from a weburl using the UI created, the responses based on the url content doesn't display the right name of the reference links. Currently it always shows as "content.url" for any url uploaded. Ideally it would be better the show the real link which was uploaded as reference.

Any suggestions to get the correct link in the response?

image

harishkm83 commented 9 months ago

Slightly modifying the AskQuestion.razor file as below fixed the issue. @if (answer != null) { The answer is: @answer.Answer @foreach (var citation in answer.Citations) {

 }

}