feat: Ingest document embeddings for Retrieval augmented generation - #2903
Conversation
|
test coverage: |
cdoern
left a comment
There was a problem hiding this comment.
nothing jumps out at me, just one comment
f52da9b to
4601aeb
Compare
|
@anastasds I integrated changes for RAG CLI. |
cdoern
left a comment
There was a problem hiding this comment.
This looks good! I think we can always iterate on this over time, but I'd like to get this in so we can add e2e testing on top of all the new RAG features.
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
**Issue resolved by this Pull Request:** Resolves #2957 Changes related to `ingest` CLI will be added to #2903 **Checklist:** - [x] **Commit Message Formatting**: Commit titles and messages follow guidelines in the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). - [ ] [Changelog](https://github.com/instructlab/instructlab/blob/main/CHANGELOG.md) updated with breaking and/or notable changes for the next minor release. - [ ] Documentation has been updated, if necessary. - [ ] Unit tests have been added, if necessary. - [ ] Functional tests have been added, if necessary. - [ ] E2E Workflow tests have been added, if necessary. Approved-by: cdoern Approved-by: nathan-weinberg
alinaryan
left a comment
There was a problem hiding this comment.
LGTM! one non blocking nit
| @clickext.display_params | ||
| def convert( | ||
| ctx, | ||
| ctx, # pylint: disable=unused-argument |
There was a problem hiding this comment.
nit: unless it's required for some other reason, you should be able to remove ctx, the pylint comment and @click.pass_context
There was a problem hiding this comment.
Since I did not develop the command but just hit this linting issue (not sure why passed the CI), I preferred (for now) to just solve it this way.
There was a problem hiding this comment.
FWIW, I think removing the arg would be better. I accidentally left it in after getting rid of the code that used it.
There was a problem hiding this comment.
(But I am fine saying that should go into a future PR and not this one if you prefer)
Related ADR: instructlab/dev-docs#178 Depends on #2886 , #2903 Resolves #2888 * Adds feature gating following the pattern in the ADR linked above * Adds an `@dev_preview` decorator that mocks the feature scope environment variable for specific tests covering experimental functionality. * Adds unit tests verifying that RAG related functionality gives a useful and accurate error message when attempted to be used without being enabled. Approved-by: nathan-weinberg Approved-by: cdoern
Issue resolved by this Pull Request:
Resolves #2875
Addresses #2957
Depends on #2832
Dev Docs related to this Pull Request:
Link to Dev Doc or PR: instructlab/dev-docs#161
Checklist:
conventional commits.
Unit test code in the next commit