forked from waggle-sensor/sage-vectordb-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix building locally and run the services #2
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9228a04
Avoid issues coming from psutils python install
iperezx 832cbee
Fix local
iperezx e05e68e
Fix negation
iperezx 1ee8cd8
Fix README
iperezx 7b5eef0
Add MONITOR_DATA_STREAM_INTERVAL
iperezx cb408d6
Add more celery logs for start times
iperezx a39b6b9
Add healthcheck for weaviate svc
iperezx 052d5e8
Add space so that the url is clickable in the logs
iperezx 1b2a76e
Fix SAGE_PASS
iperezx 2d7eff6
Add checks for both SAGE_USER and SAGE_PASS are set
iperezx affc148
Add weavmanage to init weaviate
iperezx 3019fbc
Fix README
iperezx f417553
Add MONITOR_DATA_STREAM_QUERY_DELAY_MINUTE
iperezx 38dfab7
Fix for case when its not ran via the container
iperezx 1be75c7
Merge branch 'main' into fix-local-builds
iperezx 26a701e
Revert back to UNALLOWED_NODES
iperezx a33d0a7
Update triton deployment to include the env vars for the models
iperezx 19a4b95
Revert back to torch with cuda add on
iperezx 32e06b9
Remove reservation match expression
iperezx 3e03701
Add flower endpoint to weavloader svc obj
iperezx ed210ba
Add kustomize pr overlay and update README
iperezx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| #Secrets | ||
| SAGE_USER= | ||
| SAGE_PASS= | ||
| HF_TOKEN= | ||
|
|
||
| #weaviate | ||
| #https://weaviate.io/developers/weaviate/config-refs/env-vars | ||
| BIND_INFERENCE_API=http://multi2vec-bind:8080 | ||
| RERANKER_INFERENCE_API=http://reranker-transformers:8080 | ||
| QUERY_DEFAULTS_LIMIT=25 | ||
| AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED='true' | ||
| PERSISTENCE_DATA_PATH='/var/lib/weaviate' | ||
| DEFAULT_VECTORIZER_MODULE='multi2vec-bind' | ||
| ENABLE_MODULES='multi2vec-bind,reranker-transformers,backup-filesystem' | ||
| BACKUP_FILESYSTEM_PATH='/tmp/backups' | ||
| CLUSTER_HOSTNAME=node1 | ||
| #https://weaviate.io/developers/weaviate/concepts/vector-index#asynchronous-indexing | ||
| ASYNC_INDEXING=true | ||
| #https://weaviate.io/blog/weaviate-1-18-release#improvements-to-bm25-and-hybrid-search | ||
| USE_BLOCKMAX_WAND=true | ||
| USE_INVERTED_SEARCHABLE=true | ||
| LIMIT_RESOURCES=true | ||
| #default is info | ||
| # LOG_LEVEL: 'debug' | ||
| #https://weaviate.io/developers/weaviate/configuration/monitoring | ||
| # PROMETHEUS_MONITORING_ENABLED: true | ||
| # PROMETHEUS_MONITORING_PORT: 2112 | ||
|
|
||
| #triton | ||
| # Ensure this path matches the model repository directory | ||
| MODEL_REPOSITORY=/app/models | ||
| CLIP_MODEL_PATH=/models/DFN5B-CLIP-ViT-H-14-378 | ||
| CLIP_MODEL_VERSION=419d1f8f6a96aabaf5913c526d059facda50c24b | ||
| GEMMA_MODEL_PATH=/models/gemma-3-4b-it | ||
| GEMMA_MODEL_VERSION=093f9f388b31de276ce2de164bdc2081324b9767 | ||
|
|
||
| #weavloader | ||
| TRITON_HOST=triton | ||
| TRITON_PORT=8001 | ||
| WEAVIATE_HOST=weaviate | ||
| WEAVIATE_PORT=8080 | ||
| CELERY_BROKER_URL=redis://localhost:6379/0 | ||
| CELERY_RESULT_BACKEND=redis://localhost:6379/0 | ||
| UNALLOWED_NODES="W042,N001,V012,W015,W01C,W01E,W024,W026,W02C,W02D,W02E,W02F,W031,W040,W046,W047,W048,W049,W04A,W051,W055,W059,W05A,W05B,W05C,W05D,W05E,W05F,W060,W061,W062,W063,W064,W065,W066,W06E,W072,W073,W074,W075,W076,W077,W078,W079,W07A,W07B,W07D,W07E,W07F,W080,W081,W086,W088,W089,W08A,W08B,W08D,W08E,W08F,W090,W091,W092,W094,W096,W099,W09B,W09E,W0A0,W0A1,W0BB,W0BC" | ||
| LOG_LEVEL='INFO' | ||
| MONITOR_DATA_STREAM_INTERVAL=60 | ||
| MONITOR_DATA_STREAM_QUERY_DELAY_MINUTE=5 | ||
|
|
||
| #gardio-ui | ||
| WEAVIATE_HOST=weaviate | ||
| WEAVIATE_PORT=8080 | ||
| WEAVIATE_GRPC_PORT=50051 | ||
| CLUSTER_FLAG=True |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| version: '3.4' | ||
| services: | ||
| weaviate: | ||
| command: | ||
| - --host | ||
| - 0.0.0.0 | ||
| - --port | ||
| - '8080' | ||
| - --scheme | ||
| - http | ||
| image: semitechnologies/weaviate:1.32.0 #https://weaviate.io/developers/weaviate/release-notes#weaviate-core-and-client-releases | ||
| ports: | ||
| - 8080:8080 | ||
| - 50051:50051 | ||
| restart: on-failure | ||
| environment: | ||
| - BIND_INFERENCE_API | ||
| - RERANKER_INFERENCE_API | ||
| - QUERY_DEFAULTS_LIMIT | ||
| - AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED | ||
| - PERSISTENCE_DATA_PATH | ||
| - DEFAULT_VECTORIZER_MODULE | ||
| - ENABLE_MODULES | ||
| - BACKUP_FILESYSTEM_PATH | ||
| - CLUSTER_HOSTNAME | ||
| - ASYNC_INDEXING | ||
| - USE_BLOCKMAX_WAND | ||
| - USE_INVERTED_SEARCHABLE | ||
| - LIMIT_RESOURCES | ||
| # - LOG_LEVEL | ||
| # - PROMETHEUS_MONITORING_ENABLED | ||
| # - PROMETHEUS_MONITORING_PORT | ||
| healthcheck: | ||
| test: ["CMD", "wget", "-qO-", "http://localhost:8080/v1/.well-known/ready"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 30s | ||
| volumes: | ||
| - weaviate:/var/lib/weaviate | ||
|
|
||
| multi2vec-bind: | ||
| image: semitechnologies/multi2vec-bind:imagebind | ||
|
|
||
| reranker-transformers: | ||
| image: semitechnologies/reranker-transformers:cross-encoder-ms-marco-MiniLM-L-6-v2 | ||
|
|
||
| triton: | ||
| build: | ||
| context: ./triton | ||
| platform: "linux/amd64" | ||
| ports: | ||
| - 8000:8000 | ||
| - 8001:8001 | ||
| - 8002:8002 | ||
| shm_size: '500MB' #shared memory size | ||
| restart: on-failure | ||
| environment: | ||
| - MODEL_REPOSITORY | ||
| - CLIP_MODEL_PATH | ||
| - CLIP_MODEL_VERSION | ||
| - GEMMA_MODEL_PATH | ||
| - GEMMA_MODEL_VERSION | ||
| - HF_TOKEN | ||
| volumes: | ||
| - triton:/models | ||
|
|
||
| weavmanage: | ||
| build: | ||
| context: ./weavmanage | ||
| environment: | ||
| - WEAVIATE_HOST | ||
| - WEAVIATE_PORT | ||
| - WEAVIATE_GRPC_PORT | ||
| depends_on: | ||
| - weaviate | ||
|
|
||
| weavloader: | ||
| build: | ||
| context: ./weavloader | ||
| ports: | ||
| - 8081:8080 | ||
| - 5555:5555 | ||
| restart: on-failure | ||
| environment: | ||
| - TRITON_HOST | ||
| - TRITON_PORT | ||
| - WEAVIATE_HOST | ||
| - WEAVIATE_PORT | ||
| - SAGE_USER | ||
| - SAGE_PASS | ||
| - CELERY_BROKER_URL | ||
| - CELERY_RESULT_BACKEND | ||
| - UNALLOWED_NODES | ||
| - LOG_LEVEL | ||
| - MONITOR_DATA_STREAM_INTERVAL | ||
| - MONITOR_DATA_STREAM_QUERY_DELAY_MINUTE | ||
| depends_on: | ||
| - weaviate | ||
| - weavmanage | ||
| - triton | ||
|
|
||
| gradio-ui: | ||
| build: | ||
| context: ./app | ||
| ports: | ||
| - 7860:7860 | ||
| restart: on-failure | ||
| environment: | ||
| - WEAVIATE_HOST | ||
| - WEAVIATE_PORT | ||
| - WEAVIATE_GRPC_PORT | ||
| - CLUSTER_FLAG | ||
| - UNALLOWED_NODES | ||
|
|
||
| volumes: | ||
| triton: | ||
| weaviate: |
iperezx marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
iperezx marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
iperezx marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.