-
Notifications
You must be signed in to change notification settings - Fork 870
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
Determining which code snippet to show, if any #362
Comments
Hello, can you elaborate on this? I would like to work on this. It seems to me pretty difficult to determine which coded blocks to show with rule-based approach. If you have new ideas about this topic, I would gladly hear about it. |
Thanks for the help @ykskks. I'll explain the current logic and what we might do to improve it. Today, we take the first answer and try to pull out any I was thinking we could try and develop some heuristic of when to show the entire answer vs one (or more) of these For what it's worth, I don't think showing the whole answer is that bad. It's probably better than extracting some A list was started with some problem queries and some thoughts on how we might build the answer selection logic. This list is a little old, so some of the answers are not the same as what they used to be, but feel free to edit that or use it for inspiration. |
Thank you for detailed answer! I will collect more data from current version of howdoi and see how I can improve it. Should I first share ideas with you on Issues or submit PR directly? |
Thanks! We can use this thread to post ideas - others can see it and help out too |
But when you're ready to submit a PR that's great too because I haven't really thought through how the "rules" should be applied in a clear and extensible way. So even if we don't have the perfect set of rules we can at least have the scaffolding to apply them as they grow and change. |
I tried some queries myself and found that only showing the first Rule-based approaches that you described might work, however it is hard to come up with them or actually evaluating them. However, it needs labeling work, which most people don't want to do.
This way, we can cut out unnecessary parts and still return meaningful contents. |
Consider the following:
I think that it is
true
because the variable was setvs.
We would want to return the larger code block
<code>
and only go with pre?The text was updated successfully, but these errors were encountered: