Skip to content

Instantly share code, notes, and snippets.

@alexcg1
Created June 10, 2022 12:56
Show Gist options
  • Save alexcg1/fed6b8c86688290894363b0677988405 to your computer and use it in GitHub Desktop.
Save alexcg1/fed6b8c86688290894363b0677988405 to your computer and use it in GitHub Desktop.
Stack Overflow search: Flow
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