Skip to content

Commit 1049732

Browse files
committed
Sync from private
1 parent 8d00fbc commit 1049732

963 files changed

Lines changed: 104257 additions & 33036 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 55 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,65 @@
11
# External API keys
2-
OPENAI_API_KEY=
3-
ANTHROPIC_API_KEY=
4-
COHERE_API_KEY=
5-
TOGETHER_API_KEY=
6-
HYPERBOLIC_API_KEY=
7-
CEREBRAS_API_KEY=
8-
SAMBANOVA_API_KEY=
9-
DEEPSEEK_API_KEY=
10-
CUSTOM_API_KEY=
2+
OWL_ANTHROPIC_API_KEY=
3+
OWL_AZURE_API_KEY=
4+
OWL_AZURE_AI_API_KEY=
5+
OWL_BEDROCK_API_KEY=
6+
OWL_CEREBRAS_API_KEY=
7+
OWL_COHERE_API_KEY=
8+
OWL_DEEPSEEK_API_KEY=
9+
OWL_ELLM_API_KEY=
10+
OWL_GEMINI_API_KEY=
11+
OWL_GROQ_API_KEY=
12+
OWL_HYPERBOLIC_API_KEY=
13+
OWL_JINA_AI_API_KEY=
14+
OWL_OPENAI_API_KEY=
15+
OWL_OPENROUTER_API_KEY=
16+
OWL_SAGEMAKER_API_KEY=
17+
OWL_SAMBANOVA_API_KEY=
18+
OWL_TOGETHER_AI_API_KEY=
19+
OWL_VERTEX_AI_API_KEY=
20+
OWL_VOYAGE_API_KEY=
21+
OWL_STRIPE_API_KEY=
22+
OWL_STRIPE_PUBLISHABLE_KEY_LIVE=
23+
OWL_STRIPE_PUBLISHABLE_KEY_TEST=
24+
OWL_STRIPE_WEBHOOK_SECRET_LIVE=
25+
OWL_STRIPE_WEBHOOK_SECRET_TEST=
26+
OWL_AUTH0_API_KEY=
1127

12-
# Service URLs
13-
DOCIO_URL=http://docio:6979/api/docio
14-
UNSTRUCTUREDIO_URL=http://unstructuredio:6989
15-
JAMAI_API_BASE=http://owl:6969/api
28+
# CI
29+
JAMAI_TOKEN=
30+
JAMAI_API_BASE=http://localhost:6969/api
1631

17-
# Frontend config
18-
JAMAI_URL=http://owl:6969
19-
PUBLIC_JAMAI_URL=
20-
PUBLIC_IS_SPA=false
21-
CHECK_ORIGIN=false
32+
# Service connection (dev)
33+
# OWL_DB_PATH=postgresql+psycopg://owlpguser:owlpgpassword@localhost:5432/jamaibase_owl
34+
# OWL_CLICKHOUSE_HOST=localhost
35+
# OWL_CLICKHOUSE_PORT=8123
36+
# OWL_OPENTELEMETRY_HOST=localhost
37+
# OWL_OPENTELEMETRY_PORT=4317
38+
# OWL_REDIS_HOST=localhost
39+
# OWL_REDIS_PORT=6379
40+
# OWL_VICTORIA_METRICS_HOST=localhost
41+
# OWL_VICTORIA_LOGS_HOST=localhost
42+
# OWL_CODE_EXECUTOR_ENDPOINT=http://localhost:5569
43+
# OWL_DOCLING_URL=http://localhost:5001
44+
# OWL_TEST_LLM_API_BASE=http://localhost:6970/v1
45+
# OWL_S3_ENDPOINT=http://localhost:9000
46+
# OWL_FILE_PROXY_URL=website-url
2247

2348
# Configuration
2449
OWL_PORT=6969
2550
OWL_WORKERS=3
26-
DOCIO_WORKERS=1
27-
DOCIO_DEVICE=cpu
28-
EMBEDDING_MODEL=BAAI/bge-small-en-v1.5
29-
RERANKER_MODEL=mixedbread-ai/mxbai-rerank-xsmall-v1
3051
OWL_CONCURRENT_ROWS_BATCH_SIZE=5
3152
OWL_CONCURRENT_COLS_BATCH_SIZE=5
3253
OWL_MAX_WRITE_BATCH_SIZE=1000
54+
PB_MAX_CLIENT_CONN=500
55+
PB_MAX_CLIENT_CONN=80
56+
PG_MAX_CONNECTIONS=100
57+
58+
# Frontend config
59+
HOST=localhost
60+
ORIGIN=http://localhost:4000
61+
AUTH_SECRET="changeme"
62+
OWL_URL=http://owl:6969
63+
PUBLIC_JAMAI_URL=
64+
PUBLIC_IS_SPA=false
65+
CHECK_ORIGIN=false

.gitattributes

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,18 @@
3333
*.db binary
3434
*.doc binary
3535
*.docx binary
36+
*.gif binary
3637
*.gz binary
38+
*.heic* binary
39+
*.heif* binary
3740
*.jar binary
3841
*.jpeg binary
3942
*.jpg binary
43+
*.mov binary
44+
*.mp* binary
4045
*.npy binary
4146
*.npz binary
47+
*.parquet binary
4248
*.pcd binary
4349
*.pdf binary
4450
*.pkl binary
@@ -47,13 +53,16 @@
4753
*.pptx binary
4854
*.pth binary
4955
*.so binary
56+
*.ttf binary
57+
*.webp binary
5058
*.xls binary
5159
*.xlsx binary
5260
*.zip binary
5361

62+
# Track with LFS
63+
# *.pth filter=lfs diff=lfs merge=lfs -text
64+
# *.parquet filter=lfs diff=lfs merge=lfs -text
65+
5466
# These files should not be processed by Linguist for language detection on GitHub.com
5567
*.p linguist-detectable=false
5668
*.gz linguist-detectable=false
57-
58-
# Track with Git LFS
59-
*.parquet filter=lfs diff=lfs merge=lfs -text

.github/workflows/cd.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CD - Build and Push Docker Images
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
packages: write
11+
12+
jobs:
13+
build_and_push:
14+
name: Build and Push Docker Images
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
lfs: true
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Login to GitHub Container Registry
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Prepare HCL file
33+
run: |
34+
# Convert repository owner to lowercase
35+
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
36+
37+
# Get short SHA
38+
SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
39+
40+
# Replace variables in HCL file
41+
sed -i "s|AZURE_STORAGE_ACCOUNT_URL|${{ secrets.AZURE_STORAGE_ACCOUNT_URL }}|g" docker/compose.bake.hcl
42+
sed -i "s|AZURE_STORAGE_ACCESS_KEY|${{ secrets.AZURE_STORAGE_ACCESS_KEY }}|g" docker/compose.bake.hcl
43+
44+
# Add tags to HCL file
45+
sed -i "/target \"owl\"/a \ tags = [\"ghcr.io/${REPO_OWNER}/jamaibase-owl:latest\", \"ghcr.io/${REPO_OWNER}/jamaibase-owl:${SHORT_SHA}\"]" docker/compose.bake.hcl
46+
sed -i "/target \"jambu\"/a \ tags = [\"ghcr.io/${REPO_OWNER}/jamaibase-jambu:latest\", \"ghcr.io/${REPO_OWNER}/jamaibase-jambu:${SHORT_SHA}\"]" docker/compose.bake.hcl
47+
48+
- name: Build and Push Images
49+
run: |
50+
# Build and push JamaiBase image with both latest and commit hash
51+
docker buildx bake --file docker/compose.bake.hcl --push

0 commit comments

Comments
 (0)