Skip to content

Commit

Permalink
Merge pull request #15 from NVIDIA/solu/helm-readme-usage
Browse files Browse the repository at this point in the history
Add Usage Instructions to Helm Chart
  • Loading branch information
randerzander authored Aug 29, 2024
2 parents 3297454 + 1fb511c commit 3a4aeac
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,38 @@ kubectl create -n ${NAMESPACE} secret generic ngc-api --from-literal=NGC_API_KEY

You can also use an External Secret Store like Vault, the name of the secret name expected for the NGC API is `ngc-api` and the secret name expected for NVCR is `nvcrimagepullsecret`.

## Usage

Jobs are submitted via the `nv-ingest-cli` command. See installation [here](https://github.com/NVIDIA/nv-ingest/tree/main/client)

### Access To Redis

It is recommended that the end user provide a mechanism for [`Ingress`](https://kubernetes.io/docs/concepts/services-networking/ingress/) for the Redis pod.
You can test outside of your Kuberenetes cluster by [port-forwarding](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_port-forward/) the Redis pod to your local environment.

Example:

```bash
kubectl port-forward -n ${NAMESPACE} nv-ingest-redis-master-0 6379:6379
```

### Executing jobs

Here is a sample invocation of a PDF extraction task using the port forward above:

```bash
mkdir -p ./processed_docs

nv-ingest-cli \
--doc /path/to/your/unique.pdf \
--output_directory ./processed_docs \
--task='extract:{"document_type": "pdf", "extract_text": true, "extract_images": true, "extract_tables": true}' \
--client_host=localhost \
--client_port=6379
```

Enjoy!

## Parameters

### Deployment parameters
Expand Down

0 comments on commit 3a4aeac

Please sign in to comment.