-
Notifications
You must be signed in to change notification settings - Fork 26
Creating augmented suggester #54
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Grace Sng <[email protected]>
…sponding utils. Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
Signed-off-by: Grace Sng <[email protected]>
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.
thanks for the PR @grace-sng7 I've shared a few inline comments.
I also notice that the build is failing. I'm working on a fix and will update this PR.
{ | ||
"cell_type": "code", | ||
"source": [ | ||
"from pywhyllm.suggesters.augmented_model_suggester import AugmentedModelSuggester\n", |
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.
The notebook makes sense.
Can you add some description/text to the notebook so that readers can understand:
- Motivation: we are introducing this retrieval augmented suggester. It currently works on a specific cause pairs dataset.
- How it works: we fetch the pairs from that dataset.
- some documentation on the actual function call: can say users can give any two variable names, and also tell them what would happen if the pair was not found in the database.
|
||
|
||
class AugmentedModelSuggester(SimpleModelSuggester): | ||
def __init__(self, llm, file_path: str = 'data/causenet-precision.jsonl.bz2'): |
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.
needs docstrings for each method, so that future editors would be able to understand the code easily.
… dependencies. Signed-off-by: Grace Sng <[email protected]>
Hi Dr. Sharma, thanks for the comments. I've added a few updates to the PR. |
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.
thanks @grace-sng7 I just have one comment for the notebook.
Signed-off-by: Grace Sng <[email protected]>
No description provided.