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

Citation url is wrong- source: prefix attached to citation url #2305

Open
poonkuzhali opened this issue Jan 24, 2025 · 2 comments
Open

Citation url is wrong- source: prefix attached to citation url #2305

poonkuzhali opened this issue Jan 24, 2025 · 2 comments
Labels
more info needed rag Related to RAG flow/logic/approaches

Comments

@poonkuzhali
Copy link

In some cases, the citation URL has a source: prefix added to it.

For instance, instead of the usual filename.pdf, it appears as source:filename.pdf.

This causes a "file not found" error when attempting to open the citation.

Has anyone encountered a similar issue?

I believe that this particular line in the system message has something to do with it - Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brackets to reference the source, for example [info1.txt]. Don't combine sources, list each source separately, for example [info1.txt][info2.pdf].

@pamelafox
Copy link
Collaborator

So you're saying that in the answer itself, it has [source:info1.txt]?
Which model are you seeing this with, gpt-3.5-turbo?

@pamelafox pamelafox added rag Related to RAG flow/logic/approaches more info needed labels Jan 29, 2025
@poonkuzhali
Copy link
Author

Yes. the answer has the citation in the format - source: filename.extension rather than filename.extension.
I am using gpt-4o model.

This issue does not occur often. It just pops up at random. I wonder if its that specific line in the system message that is interfering with the citation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed rag Related to RAG flow/logic/approaches
Projects
None yet
Development

No branches or pull requests

2 participants