-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug in external dependency configuration (#16) * Add examples for common configurations (#17) * Update llamacloud deployment commands (#18)
- Loading branch information
Showing
21 changed files
with
478 additions
and
48 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
.idea/ | ||
|
||
.DS_STORE | ||
|
||
.debug/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
|
||
tests/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,5 @@ keywords: | |
- llamacloud | ||
- rag | ||
|
||
version: 0.1.15 | ||
appVersion: "0.1.15" | ||
version: 0.1.16 | ||
appVersion: "0.1.16" |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This example shows how to configure autoscaling for the LlamaCloud platform. | ||
# It is used in the `values.yaml` file for each component. | ||
|
||
# Autoscaling is enabled by default for llamaParse and llamaParseOcr given the nature of their workloads. | ||
# To disable autoscaling for a component, set `autoscaling.enabled` to `false`. | ||
|
||
global: | ||
config: | ||
licenseKey: "<REPLACE-WITH-LLAMACLOUD-LICENSE-KEY>" | ||
# existingLicenseKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
backend: | ||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 1 | ||
maxReplicas: 8 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
config: | ||
openAiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
oidc: | ||
discoveryUrl: "https://login.microsoftonline.com/your-tenant-id/oauth2/v2.0/token" | ||
clientId: "your-client-id" | ||
clientSecret: "your-client-secret" | ||
# existingSecretName: "oidc-secret" | ||
|
||
jobsService: | ||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 1 | ||
maxReplicas: 4 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
jobsWorker: | ||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 1 | ||
maxReplicas: 4 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
llamaParse: | ||
config: | ||
openaiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 2 | ||
maxReplicas: 10 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
llamaParseOcr: | ||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 2 | ||
maxReplicas: 10 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
usage: | ||
autoscaling: | ||
enabled: true | ||
# below are the default values if not specified | ||
# change them as needed :) | ||
minReplicas: 1 | ||
maxReplicas: 4 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
global: | ||
config: | ||
licenseKey: "<REPLACE-WITH-LLAMACLOUD-LICENSE-KEY>" | ||
# existingLicenseKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
backend: | ||
config: | ||
azureOpenAi: | ||
enabled: true | ||
key: "<REPLACE-WITH-AZURE-OPENAI-API-KEY>" | ||
endpoint: "<REPLACE-WITH-AZURE-OPENAI-ENDPOINT>" | ||
deploymentName: "<REPLACE-WITH-AZURE-OPENAI-DEPLOYMENT-NAME>" | ||
apiVersion: "<REPLACE-WITH-AZURE-OPENAI-API-VERSION>" | ||
# existingSecret: "<uncomment-if-using-existing-secret>" | ||
|
||
oidc: | ||
discoveryUrl: "https://login.microsoftonline.com/your-tenant-id/oauth2/v2.0/token" | ||
clientId: "your-client-id" | ||
clientSecret: "your-client-secret" | ||
# existingSecretName: "oidc-secret" | ||
|
||
llamaParse: | ||
config: | ||
azureOpenAi: | ||
enabled: true | ||
key: "<REPLACE-WITH-AZURE-OPENAI-API-KEY>" | ||
endpoint: "<REPLACE-WITH-AZURE-OPENAI-ENDPOINT>" | ||
deploymentName: "<REPLACE-WITH-AZURE-OPENAI-DEPLOYMENT-NAME>" | ||
apiVersion: "<REPLACE-WITH-AZURE-OPENAI-API-VERSION>" | ||
# existingSecret: "<uncomment-if-using-existing-secret>" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
global: | ||
config: | ||
licenseKey: "<REPLACE-WITH-LLAMACLOUD-LICENSE-KEY>" | ||
# existingLicenseKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
backend: | ||
config: | ||
openAiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
oidc: | ||
discoveryUrl: "https://login.microsoftonline.com/your-tenant-id/oauth2/v2.0/token" | ||
clientId: "your-client-id" | ||
clientSecret: "your-client-secret" | ||
# existingSecretName: "oidc-secret" | ||
|
||
llamaParse: | ||
config: | ||
openaiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" |
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
charts/llamacloud/examples/custom-filestore-buckets-config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
global: | ||
config: | ||
licenseKey: "<input-license-key-here>" | ||
# existingLicenseKeySecret: "" | ||
|
||
parsedDocumentsCloudBucketName: "<your-bucket-name>" | ||
parsedEtlCloudBucketName: "<your-bucket-name>" | ||
parsedExternalComponentsCloudBucketName: "<your-bucket-name>" | ||
parsedFileParsingCloudBucketName: "<your-bucket-name>" | ||
parsedRawFileCloudBucketName: "<your-bucket-name>" | ||
parsedLlamaCloudParseOutputCloudBucketName: "<your-bucket-name>" | ||
parsedFileScreenshotCloudBucketName: "<your-bucket-name>" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This example shows how to configure the LlamaCloud platform to use external dependencies. | ||
# If an external dependency is enabled, the platform will not deploy self-hosted dependency. | ||
# Instead, it will use the values below to connect to the external dependency. | ||
# You can find the env vars to set in the platform's Helm chart here: | ||
# https://github.com/run-llama/helm-charts/blob/main/charts/llamacloud/templates/_helpers.tpl | ||
|
||
global: | ||
config: | ||
licenseKey: "<input-license-key-here>" | ||
# existingLicenseKeySecret: "" | ||
|
||
postgresql: | ||
external: | ||
enabled: true | ||
host: "my-postgresql-host" | ||
port: "5432" | ||
database: "my-database" | ||
username: "my-user" | ||
password: "my-password" | ||
# existingSecretName: "my-existing-secret" | ||
|
||
mongodb: | ||
external: | ||
enabled: true | ||
host: "my-mongodb-host" | ||
port: "27017" | ||
username: "my-user" | ||
password: "my-password" | ||
# existingSecretName: "my-existing-secret" | ||
|
||
rabbitmq: | ||
external: | ||
enabled: true | ||
scheme: "amqp" | ||
host: "my-rabbitmq-host" | ||
port: "5672" | ||
username: "my-user" | ||
password: "my-password" | ||
# existingSecretName: "my-existing-secret" | ||
|
||
redis: | ||
external: | ||
enabled: true | ||
host: "my-redis-host" | ||
port: "6379" | ||
# existingSecretName: "my-existing-secret | ||
|
||
postgresql: | ||
enabled: false | ||
|
||
mongodb: | ||
enabled: false | ||
|
||
rabbitmq: | ||
enabled: false | ||
|
||
redis: | ||
enabled: false |
4 changes: 4 additions & 0 deletions
4
...llamacloud/examples/full-azure-setup.yaml → ...lamacloud/examples/full-azure-config.yaml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# This is an example of a medium-size configuration for the LlamaCloud platform. | ||
# It is designed to be a good starting point for a production environment. | ||
# Our platform was designed to be horizontally scalable, so you can adjust the number of replicas for each component to fit your needs. | ||
# For larger workloads (both large files and large number of files/jobs), you may need to increase the number of replicas and resources for each component. | ||
# We also recommend using managed services for PostgreSQL, MongoDB, RabbitMQ, and Redis for production workloads, instead of self-hosted deployments. | ||
|
||
global: | ||
config: | ||
licenseKey: "<REPLACE-WITH-LLAMACLOUD-LICENSE-KEY>" | ||
# existingLicenseKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
backend: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 4 | ||
maxReplicas: 8 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: 2Gi | ||
limits: | ||
cpu: 2 | ||
memory: 4Gi | ||
|
||
config: | ||
openAiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
oidc: | ||
discoveryUrl: "https://login.microsoftonline.com/your-tenant-id/oauth2/v2.0/token" | ||
clientId: "your-client-id" | ||
clientSecret: "your-client-secret" | ||
# existingSecretName: "oidc-secret" | ||
|
||
jobsService: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 4 | ||
maxReplicas: 8 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: 500Mi | ||
limits: | ||
cpu: 2 | ||
memory: 2Gi | ||
|
||
jobsWorker: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 4 | ||
maxReplicas: 8 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: 2Gi | ||
limits: | ||
cpu: 2 | ||
memory: 4Gi | ||
|
||
llamaParse: | ||
config: | ||
openaiApiKey: "<REPLACE-WITH-OPENAI-API-KEY>" | ||
# existingOpenAiApiKeySecret: "<uncomment-if-using-existing-secret>" | ||
|
||
autoscaling: | ||
enabled: true | ||
minReplicas: 5 | ||
maxReplicas: 20 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
llamaParseOcr: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 5 | ||
maxReplicas: 20 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
usage: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 2 | ||
maxReplicas: 8 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
# (recommended) Disable all dependencies to use external services for production workloads | ||
|
||
postgresql: | ||
enabled: false | ||
|
||
mongodb: | ||
enabled: false | ||
|
||
rabbitmq: | ||
enabled: false | ||
|
||
redis: | ||
enabled: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is an example of how to configure the LlamaCloud platform to use a private image registry. | ||
# Simply add a secret to the list of .Values.imagePullSecrets in the global section. | ||
|
||
global: | ||
config: | ||
licenseKey: "<contact-support-for-key>" | ||
# existingLicenseKeySecret: "<existing-secret-name>" | ||
|
||
imagePullSecrets: | ||
- name: "<your-pull-secret-name>" | ||
|
||
backend: | ||
# You can also attach your own IAM role annotations to the service account if needed. | ||
# serviceAccount: | ||
# annotations: | ||
# eks.amazonaws.com/role-arn: "<your-role-arn>" |
Oops, something went wrong.