Created
June 10, 2022 12:56
-
-
Save alexcg1/fed6b8c86688290894363b0677988405 to your computer and use it in GitHub Desktop.
Stack Overflow search: Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jtype: Flow | |
with: | |
protocol: grpc | |
executors: | |
- name: encoder | |
uses: jinahub+docker://SpacyTextEncoder/v0.4 | |
uses_with: | |
model_name: 'en_core_web_md' | |
resources: | |
memory: 8G # encoding is hungry. add more memory | |
- name: indexer | |
uses: jinahub+docker://AnnLiteIndexer/0.3.0 | |
uses_with: | |
dim: 300 # model uses this many dimensions | |
uses_metas: | |
workspace: workspace | |
jcloud: | |
capacity: on-demand | |
resources: | |
memory: 8G # you can never have too much memory! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment