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

enhance: add file source and location metadata to knowledge results #428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iwilltry42
Copy link
Contributor

@iwilltry42 iwilltry42 commented Feb 10, 2025

}
if location != "" && doc.Metadata.TotalPages > 0 {
location = fmt.Sprintf("%s of %d", location, doc.Metadata.TotalPages)
_, _ = fmt.Fprintf(os.Stderr, "result doc in file %q at %q\n", filename, location)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this done only for debugging or should it be left in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's debug logs here and below. I just left them in as they shouldn't do any harm going to stderr.
I can remove them if needed though (I hope I won't need them anymore 😬 )

} else {
url = doc.Metadata.URL
}
_, _ = fmt.Fprintf(os.Stderr, "result doc url %q\n", url)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@iwilltry42
Copy link
Contributor Author

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

Successfully merging this pull request may close these issues.

3 participants