Skip to content

Conversation

jamesbraza
Copy link
Collaborator

Resolving my own PR comments

@jamesbraza jamesbraza requested a review from whitead September 25, 2025 23:35
@jamesbraza jamesbraza self-assigned this Sep 25, 2025
@jamesbraza jamesbraza added the enhancement New feature or request label Sep 25, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation labels Sep 25, 2025
Copy link

dosubot bot commented Sep 25, 2025

Related Documentation

Checked 1 published document(s). No updates required.

How did I do? Any feedback?  Join Discord

Comment on lines 531 to 540
settings.prompts.summary_json_system = (
"Provide a summary of the excerpt that could help answer the question based on"
" the excerpt. The excerpt may be irrelevant. Do not directly answer the"
" question - only summarize relevant information. Respond with the following"
' JSON format:\n\n {{\n"summary": "...",\n"author_name":'
' "...",\n"relevance_score": "..."}}\n\n where `summary` is relevant'
" information from text - about 100 words words, `author_name` specifies the"
" author , and `relevance_score` is the relevance of `summary` to answer the"
" question (integer out of 10)."
"Provide a summary of the excerpt that could help answer the question"
" based on the excerpt. The excerpt may be irrelevant."
" Do not directly answer the question - only summarize relevant information."
" Respond with the following JSON format:"
'\n\n{{\n "summary": "...",\n "author_name": "...",\n "relevance_score": 1-10\n}}'
"\n\nwhere `summary` is relevant information from text - about 100 words words,"
" `author_name` specifies the author,"
" and `relevance_score` is an integer 1-10 for the relevance of `summary`"
" to the question."
Copy link
Collaborator

Choose a reason for hiding this comment

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

This conflicts with prior - should be 0-10

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This prompt clobbers the prior and it doesn't mention the 0 score case. What I can do is just propagate the 0 score case here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Alright it's done, agreed it's nice just to standardize

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 25, 2025
@jamesbraza jamesbraza merged commit bdec53e into json-change Sep 26, 2025
3 of 5 checks passed
@jamesbraza jamesbraza deleted the comments-json-change branch September 26, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants