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

Make sure stampy answers are given priority in responses #64

Open
Mishaall opened this issue Jul 14, 2023 · 5 comments
Open

Make sure stampy answers are given priority in responses #64

Mishaall opened this issue Jul 14, 2023 · 5 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@Mishaall
Copy link

No description provided.

@FraserLee
Copy link
Collaborator

FraserLee commented Jul 14, 2023

Good issue, I agree. Does "given priority" mean we're boosting their ranking in semantic search results, or just re-shaping the prompt when they're present?

@ccstan99
Copy link
Collaborator

The semantic search shouldn't be changed. But if a stampy question is among the results and similarity score is above a certain threshold (0.5?) the prompt should be to either very closely summarize or directly present the human-written stampy answer.

@ccstan99
Copy link
Collaborator

This is actually a duplicate of issue #11 so I'll copy some comments below for reference and close that issue since this will have more complete information:

Up to date Stampy answers should be prioritized in responses with as little modification as possible.

From McGill Team's plan

Privilege curated sources in search:
add biases to good/bad sources to make them more/less easily found by semantic search. Random personal blogs on lesswrong---, stampy+++, highly upvoted stuff ++, etc. Extending the length of good vectors by 0.1, and decreasing the length of bad vectors by 0.1, might work for this while still permitting search for ‘bad’ sources.

@markovial
Copy link

The semantic search shouldn't be changed. But if a stampy question is among the results and similarity score is above a certain threshold (0.5?) the prompt should be to either very closely summarize or directly present the human-written stampy answer.

I think we should just directly present the stampy answer, as it saves us a whole bunch of tokens. I'm not creating a new issue for prioritizing and directly displaying existing semantically similar answers because this issue seems to pretty much cover it.

@ccstan99
Copy link
Collaborator

You can reference the code from followups.py that calls nlp.stampy.ai to find the nearest Stampy answer. Couple issues to be mindful:

  • If it's displayed as is, make sure the coloring or something clearly indicates it's a human-authored answer not generated including the original question title. Something prefix with "Here's a curated article that might answer your question..."
  • The actual score threshold to use might need some experimentation. 0.5 will likely find an FAQ that's highly relevant for the answer but might not be an "exact match"
  • Use the related questions as suggested followups afterwards

@ccstan99 ccstan99 added the help wanted Extra attention is needed label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Development

No branches or pull requests

4 participants