Skip to content

Commit cca677c

Browse files
feat(helm): Create Opensearch E2E tutorial for cogstack CE (#65)
1 parent 297274f commit cca677c

8 files changed

Lines changed: 986 additions & 30 deletions

File tree

docs/docs/cogstack-ce/tutorial/end-to-end-jupyterhub.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ By the end, you will have completed an end-to-end user flow:
1313
!!! tip
1414
The following tutorial will use your CogStack CE installation and let you run real code against your environment.
1515

16-
To see a non-interactive version of the tutorial notebook, refer to [the MedCAT Service Tutorial notebook](../../platform/cogstack-ai/medcat-service-tutorial.ipynb).
16+
To see a non-interactive version of the tutorial notebook, refer to:
17+
18+
- [the MedCAT Service Tutorial notebook](../../platform/cogstack-ai/medcat-service-tutorial.ipynb).
19+
- [the OpenSearch E2E notebook](./medcat-opensearch-e2e.ipynb).
1720

1821
## Before you start
1922

@@ -46,11 +49,12 @@ Log in with:
4649

4750
After login, JupyterLab opens for your user.
4851

49-
## Step 3: Open the bundled notebook
52+
## Step 3: Open the bundled notebooks
5053

51-
The chart includes an example notebook:
54+
The chart includes example notebooks to interact with CogStack CE:
5255

5356
- `medcat-service-tutorial.ipynb`
57+
- `medcat-opensearch-e2e.ipynb`
5458

5559
You can open it directly:
5660

@@ -62,10 +66,11 @@ Or navigate to it in JupyterLab and click to open it.
6266

6367
Run each cell in order from top to bottom.
6468

65-
The notebook demonstrates service calls to:
69+
The notebooks demonstrates service calls to:
6670

6771
- `medcat-service` at `/api/process` for named entity extraction
6872
- `anoncat-service` at `/api/process` for de-identification
73+
- `OpenSearch` for indexing and searching data.
6974

7075
It uses environment variables for service URLs where available, so the default CogStack CE setup should work without edits.
7176

@@ -83,13 +88,12 @@ If those outputs appear, you have validated the full end-to-end flow from Jupyte
8388

8489
- If JupyterHub does not load, ensure port-forwarding is running.
8590
- If notebook requests fail, verify the cluster services are up and re-run:
86-
8791
- `helm get notes <release> | bash`
88-
- For production deployments, replace dummy authentication with secure auth configuration.
8992

93+
- For production deployments, replace dummy authentication with secure auth configuration.
9094

9195
## Next Steps
9296

9397
- See the [full deployment documentation](../../platform/deployment/_index.md) for more details on scaling, production security, and advanced configuration options.
9498
- See full install instructions of the cogstack CE chart[CogStack CE Helm chart (install + customization)](../../platform/deployment/helm/charts/cogstack-ce-helm.md)
95-
- See further tutorials on medcat on [GitHub](https://github.com/CogStack/cogstack-nlp/tree/79f00cfc204f4ae559b56c8e397bbcaf82d44274/medcat-v2-tutorials)
99+
- See further tutorials on medcat on [GitHub](https://github.com/CogStack/cogstack-nlp/tree/79f00cfc204f4ae559b56c8e397bbcaf82d44274/medcat-v2-tutorials)

docs/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ nav:
3939
- Overview: cogstack-ce/_index.md
4040
- Quickstart: cogstack-ce/tutorial/quickstart-installation.md
4141
- Tutorials:
42-
- End To End Tutorial: cogstack-ce/tutorial/end-to-end-jupyterhub.md
42+
- Using JupyterHub: cogstack-ce/tutorial/end-to-end-jupyterhub.md
43+
- End To End Tutorial: cogstack-ce/tutorial/medcat-opensearch-e2e.ipynb
4344
- CogStack AI:
4445
- CogStack AI: cogstack-ai/index.md
4546
- Natural Language Processing: overview/Natural Language Processing.md

docs/scripts/copy_files_from_repo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
{
2525
"sourceFilePath": "helm-charts/cogstack-helm-ce/charts/jupyterhub/examples/medcat-service-tutorial.ipynb",
2626
"outputFilePath": "platform/cogstack-ai/medcat-service-tutorial.ipynb",
27-
}
27+
},
28+
{
29+
"sourceFilePath": "helm-charts/cogstack-helm-ce/charts/jupyterhub/examples/medcat-opensearch-e2e.ipynb",
30+
"outputFilePath": "cogstack-ce/tutorial/medcat-opensearch-e2e.ipynb",
31+
},
2832
]
2933

3034

@@ -46,4 +50,3 @@ def main() -> None:
4650

4751

4852
main()
49-

0 commit comments

Comments
 (0)