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

Add functionality to use Generator only without retrieved context #77

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

shreyash2106
Copy link
Collaborator

Description

This PR gives the user the option to use the generator model only without any retrieved-context from their pre-processed documents.

Related Issue

#76

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Other (please specify)

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the project's coding style
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly
  • I have added appropriate comments to my code, particularly in hard-to-understand areas

Additional Information

[Any additional information, configuration, or data that might be necessary to reproduce the issue or test the PR]

Screenshots (if appropriate)

[Add screenshots to help explain your changes]

Performance Impact

[Describe any performance impact this change may have]

Backwards Compatibility

[Describe any backwards incompatible changes and how you've addressed them]

Dependency Changes

[List any new dependencies introduced or removed]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tonyhoo tonyhoo closed this Oct 14, 2024
@tonyhoo tonyhoo reopened this Oct 14, 2024
@cheungdaven cheungdaven reopened this Oct 14, 2024

```python
retriever:
retriever_top_k: 20
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we set retriever_top_k in the config to 0 without setting agrag.retriever_module.top_k = 0, will it work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah you can do either one.

Copy link

Job PR-77-b07078c is done.
Docs are uploaded to https://d1at46xkvcde0c.cloudfront.net/PR-77/b07078c/index.html

Copy link

Job PR-77-430b8f9 is done.
Docs are uploaded to https://d1at46xkvcde0c.cloudfront.net/PR-77/430b8f9/index.html

Copy link
Collaborator

@cheungdaven cheungdaven left a comment

Choose a reason for hiding this comment

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

LGTM

@cheungdaven cheungdaven merged commit 117fe59 into autogluon:main Oct 15, 2024
3 checks passed
@shreyash2106 shreyash2106 deleted the no_retriever branch October 15, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants