-
Notifications
You must be signed in to change notification settings - Fork 17
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
base: main
Are you sure you want to change the base?
enhance: add file source and location metadata to knowledge results #428
Conversation
} | ||
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Waiting for @ibuildthecloud 's feedback as per https://acorn-io.slack.com/archives/C03FU91U4SX/p1739250347442839?thread_ts=1738968457.770299&cid=C03FU91U4SX |
Slack thread: https://acorn-io.slack.com/archives/C03FU91U4SX/p1738968457770299
Issue obot-platform/obot#1692