Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The {{< full_app_ref >}} provides a streamlined environment where developers and
- **RAG**: Enhances **LLM**s by retrieving relevant, real-time information allowing models to provide up-to-date and accurate responses.
- **Vector Database**: A database, including Oracle Database 23ai, that can natively store and manage vector embeddings and handle the unstructured data they describe, such as documents, images, video, or audio.

## {{< short_app_ref >}} Features
## Features

- [Configuring Embedding and Chat Models](client/configuration/model_config)
- [Splitting and Embedding Documentation](client/tools/split_embed)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/client/configuration/db_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The database can either be configured through the [{{< short_app_ref >}} interfa

---

### {{< short_app_ref >}} Interface
### Interface

To configure the Database from the {{< short_app_ref >}}, navigate to `Configuration -> Database`:

Expand Down
2 changes: 1 addition & 1 deletion docs/content/client/configuration/oci_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You will need to [generate an API Key](https://docs.oracle.com/en-us/iaas/Conten

---

### {{< short_app_ref >}} Interface
### Interface

To configure the Database from the {{< short_app_ref >}}, navigate to `Configuration -> OCI`:

Expand Down
2 changes: 1 addition & 1 deletion docs/content/walkthrough/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ To enable the **RAG** functionality, access to an embedding model is required. T
podman exec -it ollama ollama pull mxbai-embed-large
```

### The {{< short_app_ref >}}
### The AI Optimizer

The {{< short_app_ref >}} provides an easy to use front-end for experimenting with **LLM** parameters and **RAG**.

Expand Down
76 changes: 36 additions & 40 deletions docs/layouts/partials/menu-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,39 @@

spell-checker: ignore Luma, assetbusting, SMPTE, octicon
-->
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
<span class="github-buttons"></span>
<p>Built with <a href="https://github.com/oracle-samples/ai-optimizer" title="love"><i class="fas fa-heart"></i></a> by <a href="https://www.oracle.com/"><span style="color:#C74634;">ORACLE</span></a></p>
<script>
function githubButtonsScheme(){
var scheme = 'light';
var colorPropertyValue = window.getComputedStyle( document.querySelector( '#R-sidebar' ) ).getPropertyValue( 'background-color' );
var colorValues = colorPropertyValue.match( /\d+/g ).map( function( e ){ return parseInt(e,10); });
if( colorValues.length === 3 && ((0.2126 * colorValues[0]) + (0.7152 * colorValues[1]) + (0.0722 * colorValues[2]) < 165) ){
scheme = 'dark';
}
return scheme;
}
function githubButtonsInit(){
if( !window.githubButtons ){
setTimeout( githubButtonsInit, 50 );
return;
}
var scheme = githubButtonsScheme();
var githubButtonsHTML = `
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer/archive/main.zip" data-color-scheme="${scheme}" data-icon="octicon-cloud-download" aria-label="Download the AI Optimizer on GitHub">Download</a>
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer" data-color-scheme="${scheme}" data-icon="octicon-star" data-show-count="true" aria-label="Star the AI Optimizer on GitHub">Star</a>
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer/fork" data-color-scheme="${scheme}" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork the AI Optimizer on GitHub">Fork</a>
`;
document.querySelector( '.github-buttons' ).innerHTML = githubButtonsHTML;
document.querySelectorAll( '.github-button' ).forEach( function( anchor ){
anchor.dataset.colorScheme = scheme;
window.githubButtons.render( anchor, function( el ){
anchor.parentNode.replaceChild( el, anchor );
});
});
}
document.addEventListener( 'themeVariantLoaded', function( e ){
setTimeout( githubButtonsInit, 400 );
});
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
setTimeout( githubButtonsInit, 400 );
});
</script>
<script async src="{{"js/github-buttons.js" | relURL}}{{ $assetBusting }}"></script>
<p>Built with <a href="https://github.com/oracle-samples/ai-optimizer" title="love"><i class="fas fa-heart"></i></a> by <a href="https://www.oracle.com/"><span style="color:#C74634;">ORACLE</span></a></p>
<span class="github-buttons">
<!-- Buttons will be injected here -->
</span>

<script>
function getColorScheme() {
const bg = getComputedStyle(document.querySelector('#R-sidebar')).getPropertyValue('background-color');
const [r, g, b] = bg.match(/\d+/g).map(Number);
const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;
return luminance < 165 ? 'dark' : 'light';
}

function injectGithubButtons() {
const scheme = getColorScheme();
const container = document.querySelector('.github-buttons');
if (!container) return;

container.innerHTML = `
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer/archive/main.zip" data-icon="octicon-cloud-download" data-color-scheme="${scheme}" aria-label="Download the AI Optimizer on GitHub">Download</a>
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer" data-icon="octicon-star" data-show-count="true" data-color-scheme="${scheme}" aria-label="Star the AI Optimizer on GitHub">Star</a>
<a class="github-button" href="https://github.com/oracle-samples/ai-optimizer/fork" data-icon="octicon-repo-forked" data-show-count="true" data-color-scheme="${scheme}" aria-label="Fork the AI Optimizer on GitHub">Fork</a>
`;

// Load GitHub Buttons script
const script = document.createElement('script');
script.src = "https://buttons.github.io/buttons.js";
script.async = true;
document.body.appendChild(script);
}

document.addEventListener('DOMContentLoaded', injectGithubButtons);
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
setTimeout(injectGithubButtons, 300);
});
</script>