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

Merged

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

@iwilltry42 iwilltry42 force-pushed the feat/result-formatter-file-source branch 2 times, most recently from 9842661 to 4e92c33 Compare February 25, 2025 13:36
@iwilltry42 iwilltry42 force-pushed the feat/result-formatter-file-source branch from 4e92c33 to db356ed Compare February 25, 2025 13:36
@iwilltry42 iwilltry42 merged commit d1a503d into obot-platform:main Feb 25, 2025
2 checks passed
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