Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
862 changes: 862 additions & 0 deletions .data/c360-fashion-retail/generate_complete_dataset.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/brands.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/campaign_responses.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/campaigns.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/categories.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/customer_addresses.csv
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/customers.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/email_engagement.csv
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/loyalty_activities.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/loyalty_profiles.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/order_items.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/orders.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/product_embeddings.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/product_variants.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/products.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/return_items.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/returns.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/reviews.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/session_summary.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/social_mentions.csv
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions .data/c360-fashion-retail/postgres/website_sessions.csv
Git LFS file not shown
2 changes: 1 addition & 1 deletion demos/c360-fashion-retail/.env
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want the original one here right as this is the local env file we deploy as part of all builds and links up to the env.template in .data

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_POSTGRES_RETAIL_HASURA_CONNECTOR_PORT=7358
APP_POSTGRES_RETAIL_HASURA_LOG_LEVEL="trace"
APP_POSTGRES_RETAIL_HASURA_SERVICE_TOKEN_SECRET="xoLyXuxTAz-BPza1WamCdg=="
APP_POSTGRES_RETAIL_JDBC_SCHEMAS="public"
APP_POSTGRES_RETAIL_JDBC_URL="jdbc:postgresql://host.docker.internal:5433/retail_fashion?user=postgres&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX"
APP_POSTGRES_RETAIL_JDBC_URL="jdbc:postgresql://host.docker.internal:5433/retail_fashion?user=postgres&password=hasura123"
APP_POSTGRES_RETAIL_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317"
APP_POSTGRES_RETAIL_OTEL_SERVICE_NAME="app_postgres_retail"
APP_POSTGRES_RETAIL_READ_URL="http://local.hasura.dev:7358"
Expand Down
104 changes: 104 additions & 0 deletions demos/c360-fashion-retail/app/metadata/postgres_retail-types.hml
Original file line number Diff line number Diff line change
Expand Up @@ -1438,3 +1438,107 @@ definition:
graphql:
expressionTypeName: timestamptz_order_by_exp

---
kind: BooleanExpressionType
version: v1
definition:
name: string_bool_exp
operand:
scalar:
type: string
comparisonOperators:
- name: _eq
argumentType: string!
- name: _gt
argumentType: string!
- name: _gte
argumentType: string!
- name: _ilike
argumentType: string!
- name: _in
argumentType: "[string!]!"
- name: _iregex
argumentType: string!
- name: _like
argumentType: string!
- name: _lt
argumentType: string!
- name: _lte
argumentType: string!
- name: _neq
argumentType: string!
- name: _nilike
argumentType: string!
- name: _niregex
argumentType: string!
- name: _nlike
argumentType: string!
- name: _nregex
argumentType: string!
- name: _regex
argumentType: string!
dataConnectorOperatorMapping:
- dataConnectorName: postgres_retail
dataConnectorScalarType: string
operatorMapping: {}
logicalOperators:
enable: true
isNull:
enable: true
graphql:
typeName: string_bool_exp

---
kind: DataConnectorScalarRepresentation
version: v1
definition:
dataConnectorName: postgres_retail
dataConnectorScalarType: string
representation: string
graphql:
comparisonExpressionTypeName: string_comparison_exp_8

---
kind: BooleanExpressionType
version: v1
definition:
name: int_bool_exp
operand:
scalar:
type: int_32
comparisonOperators:
- name: _eq
argumentType: int_32!
- name: _gt
argumentType: int_32!
- name: _gte
argumentType: int_32!
- name: _in
argumentType: "[int_32!]!"
- name: _lt
argumentType: int_32!
- name: _lte
argumentType: int_32!
- name: _neq
argumentType: int_32!
dataConnectorOperatorMapping:
- dataConnectorName: postgres_retail
dataConnectorScalarType: int
operatorMapping: {}
logicalOperators:
enable: true
isNull:
enable: true
graphql:
typeName: int_bool_exp

---
kind: DataConnectorScalarRepresentation
version: v1
definition:
dataConnectorName: postgres_retail
dataConnectorScalarType: int
representation: int_32
graphql:
comparisonExpressionTypeName: int_32_comparison_exp_1

52 changes: 51 additions & 1 deletion demos/c360-fashion-retail/compose.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be here or in .data/c360-fashion-retail?

Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
include:
- path: app/connector/postgres_retail/compose.yaml
services:
# PostgreSQL Database with automatic data generation and import
postgres_retail:
image: postgres:17-alpine
environment:
POSTGRES_DB: retail_fashion
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-hasura123}
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
ports:
- "5433:5433"
volumes:
- postgres_data:/var/lib/postgresql/data
- ../../.data/c360-fashion-retail/postgres:/docker-entrypoint-initdb.d
command: >
postgres
-c port=5433
-c shared_preload_libraries=pg_stat_statements
-c pg_stat_statements.track=all
-c max_connections=200
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d retail_fashion -p 5433"]
interval: 10s
timeout: 5s
retries: 5
networks:
- c360-network

engine:
build:
context: engine
Expand All @@ -19,17 +46,25 @@ services:
io.hasura.ddn.service-name: engine
ports:
- 3280:3000
depends_on:
postgres_retail:
condition: service_healthy
networks:
- c360-network
otel-collector:
command:
- --config=/etc/otel-collector-config.yaml
environment:
HASURA_DDN_PAT: ${HASURA_DDN_PAT}
image: otel/opentelemetry-collector:0.104.0
ports:
- 4317:4317
- 14317:4317
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

- 4318:4318
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
networks:
- c360-network

promptql-playground:
environment:
CONFIG_PATH: /app/promptql_config.json
Expand All @@ -47,3 +82,18 @@ services:
volumes:
- ./engine/build/promptql_config.json:/app/promptql_config.json
- ./.promptql_playground.db:/app/promptql_playground/promptql_playground.db
depends_on:
postgres_retail:
condition: service_healthy
engine:
condition: service_started
networks:
- c360-network

volumes:
postgres_data:
driver: local

networks:
c360-network:
driver: bridge
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ definition:
featureFlags:
enable_visualizations_v3: true
enable_automations: true
enable_confidence_scores: true
llm:
provider: hasura
specificLlm:
Expand Down