USE 351 - create embeddings for source current records #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose and background context
This PR allows us to create embeddings for all, or a subset of, current records for a given source. Formerly the CLI command
create-embeddingsonly supported creating embeddings for a particular ETLrun_id.While this likely won't get used much in the day-to-day ETL runs, it'll be quite helpful for out-of-band runs. For example, this functionality is getting used right now to generate embeddings for all sources in Dev1.
Additional updates in this PR:
transformers<5.xafter a major 5.0 release which had breaking changes for our modelHow can a reviewer manually see the effects of these changes?
1- Set Dev1 credentials in terminal
2- Ensure that a model is downloaded (wipe
/tmp/te-modelif desired):3- Create embeddins for current
libguidessource records:--record-limitflag is optional to keep the job smallerThe use of
--sourcetells thecreate-embeddingscommand to retrieve current records for the source versus a single ETL run.Includes new or updated dependencies?
YES
transformers<=5.0Changes expectations for external applications?
NO
What are the relevant tickets?
Code review