Skip to content

Commit

Permalink
Clean docs (#16)
Browse files Browse the repository at this point in the history
* Remove theme

* Add README to documentation folder
  • Loading branch information
gotsysdba authored Sep 20, 2024
1 parent 6f57920 commit 706bf7a
Show file tree
Hide file tree
Showing 279 changed files with 165 additions and 3,375 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
- name: Download Geekdocs Theme
run: |
mkdir -p docs/themes/hugo-geekdoc \
&& curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
Expand Down
7 changes: 4 additions & 3 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Generated files by hugo
##############################################################################
# Documentation Specific
##############################################################################
/themes/
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json

# Temporary lock file while building
Expand Down
22 changes: 22 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Oracle AI Microservices Sandbox - Documentation

## Description

This directory contains the documentation for the the [**Oracle AI Microservices Sandbox**](https://github.com/oracle-samples/oaim-sandbox).

## Getting Started - Documentation

The **Oracle AI Microservices Sandbox** documentation is powered by [Hugo](https://gohugo.io/) using the [GeekDocs](https://geekdocs.de/) theme.

To contribute to the documentation, install [Hugo](https://gohugo.io/installation/). Installation instructions vary per Operating System.

From the `docs` directory:

1. Download the [GeekDocs](https://geekdocs.de/) theme
```bash
mkdir -p themes/hugo-geekdoc/
curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1
```
1. Start Hugo: `hugo serve`

This will serve the documentation on `http://localhost:1313/oaim-sandbox/` for review.
5 changes: 5 additions & 0 deletions docs/archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->
5 changes: 5 additions & 0 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ draft = false
geekdocBreadcrumb = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}

Expand Down
8 changes: 7 additions & 1 deletion docs/content/chatbot/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'Chatbot'
date = 2024-09-11T07:35:03Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
8 changes: 7 additions & 1 deletion docs/content/configuration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ draft = false
src = "images/db_config.png"
title = "Database Configuration"
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}

Expand Down Expand Up @@ -38,6 +44,6 @@ For more information on configuring OCI, please read about [OCI Configuration](o

## Import Settings 💾

Once you have configured the **Oracle AI Microservices Sandbox**, you can export the settings and import them after a restart or new deployment.
Once you have configured the **Oracle AI Microservices Sandbox**, you can export the settings and import them after a restart or new deployment.

For more information on importing (and exporting) settings, please read about [Import Settings](import_settings/).
23 changes: 14 additions & 9 deletions docs/content/configuration/db_config.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
title: "Database Configuration"
date: 2024-09-10T13:57:37Z
draft: false
---
+++
title = "Database Configuration"
date = 2024-09-10T13:57:37Z
draft = false
+++

To use the Retrieval-Augmented Generation (RAG) functionality of the Sandbox, you will need to setup/enable an [embedding model](model_config) and have access to an **Oracle Database 23ai**. Both the [Always Free Oracle Autonomous Database Serverless (ADB-S)](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-always-free.html) and the [Oracle Database 23ai Free](https://www.oracle.com/uk/database/free/get-started/) are supported. They are a great, no-cost, way to get up and running quickly.
<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

To use the Retrieval-Augmented Generation (RAG) functionality of the Sandbox, you will need to setup/enable an [embedding model](../model_config) and have access to an **Oracle Database 23ai**. Both the [Always Free Oracle Autonomous Database Serverless (ADB-S)](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-always-free.html) and the [Oracle Database 23ai Free](https://www.oracle.com/uk/database/free/get-started/) are supported. They are a great, no-cost, way to get up and running quickly.

## Configuration

Expand Down Expand Up @@ -47,8 +52,8 @@ export DB_WALLET_PASSWORD=MYCOMPLEXWALLETSECRET

For mTLS database connectivity or to specify a TNS alias instead of a full connect string, you can use the contents of a `TNS_ADMIN` directory.

{{< hint type=[info] icon=gdoc_info_outline title="Same... but Different" >}}
If using and ADB-S wallet, unzip the contents into the `TNS_ADMIN` directory.
{{< hint type=[info] icon=gdoc_info_outline title="Unzip Wallet" >}}
If using and ADB-S wallet, unzip the contents into the `TNS_ADMIN` directory. The `.zip` file will not be recognized.
{{< /hint >}}

### Bare-Metal Installation
Expand All @@ -59,7 +64,7 @@ For bare-metal installations, set the `TNS_ADMIN` environment variable, or copy

For container installations, there are a couple of ways to include the contents of your `TNS_ADMIN` in the image:

- Before building the image, copy the contents of your `TNS_ADMIN` to `app/src/tns_admin`. This will include your `TNS_ADMIN` as part of the image.
- Before building the image, copy the contents of your `TNS_ADMIN` to `app/src/tns_admin`. This will include your `TNS_ADMIN` as part of the image.
- Mount your `TNS_ADMIN` directory into the container on startup, for example: `podman run -p 8501:8501 -v $TNS_ADMIN:/app/tns_admin -it --rm oaim-sandbox`
- Copy the `TNS_ADMIN` directory into an existing running container, for example: `podman cp $TNS_ADMIN /app/tns_admin oaim-sandbox`

Expand Down
8 changes: 7 additions & 1 deletion docs/content/configuration/import_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'Import Settings'
date = 2024-09-11T07:30:48Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
5 changes: 5 additions & 0 deletions docs/content/configuration/model_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ date = 2024-09-11T07:30:34Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

## Supported Models

At a minimum, a Large _Language Model_ (LLM) must be configured in **Oracle AI Microservices Sandbox** for basic functionality. For Retrieval-Augmented Generation (**RAG**), an _Embedding Model_ will also need to be configured.
Expand Down
8 changes: 7 additions & 1 deletion docs/content/configuration/oci_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'OCI Configuration'
date = 2024-09-11T07:30:42Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
8 changes: 7 additions & 1 deletion docs/content/help/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'Get Help'
date = 2024-09-11T07:36:44Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
8 changes: 7 additions & 1 deletion docs/content/help/troubleshooting/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'Troubleshooting'
date = 2024-09-11T07:36:55Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
7 changes: 6 additions & 1 deletion docs/content/infrastructure/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ date = 2024-09-10T10:48:24Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
8 changes: 7 additions & 1 deletion docs/content/test_framework/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ title = 'Test Framework'
date = 2024-09-11T07:34:45Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
7 changes: 6 additions & 1 deletion docs/content/tools/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ date = 2024-09-11T07:31:52Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
7 changes: 6 additions & 1 deletion docs/content/tools/prompt_eng.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ date = 2024-09-11T07:31:52Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
7 changes: 6 additions & 1 deletion docs/content/tools/split_embed.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ date = 2024-09-11T07:31:26Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

{{< hint type=[warning] icon=gdoc_fire title="10-Sept-2024: Documentation In-Progress..." >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
Thank you for your patience as we work on updating the documentation. Please check back soon for the latest updates.{{< /hint >}}
5 changes: 5 additions & 0 deletions docs/content/walkthrough/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ date = 2024-09-11T14:33:30Z
draft = false
+++

<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->

This walkthrough will guide you through a basic installation of the **Oracle AI Microservices Sandbox** (the **Sandbox**). It will allow you to experiment with GenAI, using Retrieval-Augmented Generation (**RAG**) with Oracle Database 23ai at the core.

By the end of the walkthrough you will be familiar with:
Expand Down
4 changes: 3 additions & 1 deletion docs/data/menu/extra.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Copyright (c) 2023, 2024, Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
---
header:
- name: GitHub
ref: https://github.com/oracle-samples/oaim-sandbox
icon: gdoc_github
external: true
external: true
4 changes: 3 additions & 1 deletion docs/data/menu/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Copyright (c) 2023, 2024, Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
main:
- name: Getting Started
ref: "/"
Expand All @@ -17,7 +19,7 @@ main:
- name: "Prompts 🎤"
ref: "/tools/prompt_eng.md"
- name: "Split/Embed 📚"
ref: "/tools/split_embed.md"
ref: "/tools/split_embed.md"
- name: "Configuration"
ref: "/configuration"
sub:
Expand Down
3 changes: 3 additions & 0 deletions docs/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Copyright (c) 2023, 2024, Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.

baseURL = 'https://oracle-samples.github.io/oaim-sandbox'
languageCode = 'en-us'
title = 'AI Microservices Sandbox'
Expand Down
2 changes: 2 additions & 0 deletions docs/i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Copyright (c) 2023, 2024, Oracle and/or its affiliates.
## Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
---
edit_page: Edit page

Expand Down
19 changes: 17 additions & 2 deletions docs/layouts/shortcodes/q_icon.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<!--
Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
-->
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon"
>
<circle cx="12" cy="12" r="10"></circle>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
</svg>
1 change: 0 additions & 1 deletion docs/themes/hugo-geekdoc/.nvmrc

This file was deleted.

21 changes: 0 additions & 21 deletions docs/themes/hugo-geekdoc/LICENSE

This file was deleted.

Loading

0 comments on commit 706bf7a

Please sign in to comment.