-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Citations not being rendered #2352
Comments
If you are seeing it rendered in plain text in the answer, then something has gone wrong with the frontend answer parsing code, here:
You could either put a "debugger" statement in there or put console.log() statements to see where it goes wrong. It should first identify the citation as a fragment, then return true that it's a valid citation, then return it as a clickable anchor link. Please report back with what you find. |
Sorry for the redacted content! But I've looked into the isCitationValid function in AnswerParser and it seems to return false but looking at the console.log I don't understand why it is not returning true, see below:
EDIT: I have managed to solve the citation rendering now doing the following:
but now there is another issue where I'm not allowed to access the document the error is being thrown in AnalysisPanel.tsx in the following fetch request:
In the function below, I have ensured that the accesstoken is being retrieved correctly.
|
Hi!
Why is my citations not being rendered properly? I'm only getting the citationname in brackets showing in the answer instead of a clickable citation index number which triggers the documentviewer when clicked on.
Example:
bla bla bla .... [citationName1.docx] bla bla bla [citationName2.pdf] (see image
)
This is my deployment setup:
I have seen that the citationPath is fetched from the following path:
BACKENDUri/content/citationName
What am I missing or doing wrong here?
Note: I have tried with documents that I have uploaded through user uploads with and without group acls and I have tried documents uploaded to the content container in main storage account. Both are providing the citation name in brackets. This happens when I chat through the azure hosted appservice. I have also tried with a new deployment setup where I only run
azd env set DEPLOYMENT_TARGET appservice
thenazd up
and still i'm getting the same issue.The text was updated successfully, but these errors were encountered: