Skip to content
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

References are not shown properly in UI #57

Open
mohdamir opened this issue Apr 23, 2024 · 2 comments
Open

References are not shown properly in UI #57

mohdamir opened this issue Apr 23, 2024 · 2 comments

Comments

@mohdamir
Copy link
Contributor

Have run the package from main branch and created a bot with PDF documents. There are three nodes shown as references for the answers but they are empty and not showing the part of PDF as source/reference (Screenshot attached)
Screenshot 2024-04-23 at 1 48 55 PM

@marcusschiesser
Copy link
Collaborator

Thanks @mohdamir. This should only happen if you're using a Typescript backend, but not with Python. The reason is that Typescript is not adding any file metadata; I added a patch for this (run-llama/LlamaIndexTS#758), which will be released with the next LlamaIndexTS version.

Meanwhile, if you're using a Typescript backend, I filter out source nodes without metadata, see 8b81b17

@mohdamir
Copy link
Contributor Author

Thanks @marcusschiesser. Looking forward for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants