๐ฌ Chatbot
The Oracle AI Optimizer and Toolkit (the AI Optimizer) provides a Chatbot to experiment with Language Model settings and AI tools. It allows you to manually find an appropriate configuration for your AI project before launching it into production.
There are a number of configurations you can experiment with to explore AI, RAG, and NL2SQL capabilities to understand their behavior without requiring deep technical knowledge.
History and Contextโ
Interactions with the AI models are stored as conversation history in the model's context window. When History and Context is enabled, previous interactions from enabled turns are provided to the model so that it can use them to guide the next response. When History and Context is disabled, only the current user input is provided.

Use the "Clear" button to reset the "context window" and start a fresh interaction with a model.
Language Model Parametersโ

You can select from enabled models to experiment with. To enable, disable, or add models, use the Configuration - Models page. Choose a Language Model based on your requirements, which may include:
Privacy Concerns - Locally run, open-source models offer more control over your data.
Accuracy & Knowledge - Some models excel in factual correctness. When using Retrieval-Augmented Generation, grounding responses in retrieved sources can reduce the importance of a model's built-in knowledge.
Speed & Efficiency - Smaller models run faster and require fewer resources. When using Retrieval-Augmented Generation, a smaller model with good natural-language capabilities can be more useful than a larger model with extensive built-in knowledge.
Cost & Accessibility - Some models are free, cheaper, or available for local use.
Once you've selected a model, you can change its parameters to control behavior such as response length, creativity, and repetition. Hover over the help icon next to a parameter for more information. Here are some general guidelines:
Response Length & Repetition - Maximum Output Tokens controls the maximum response length, while Frequency Penalty discourages repeated words and phrases.
Creativity - Temperature and Top P influence how unpredictable or original the model's output is. Higher values make responses more varied; lower values make them more focused.
Novelty - Presence Penalty encourages the model to introduce new topics or ideas rather than repeat those already mentioned.
For more details on the parameters, ask the Chatbot or review Concepts for Generative AI.
Toolkitโ

The AI Optimizer provides tools to augment Large Language Models with your proprietary data, including:
- Vector Search for unstructured data
- NL2SQL for interacting with structured data using natural language
Vector Searchโ

Once you've created embeddings using Split/Embed, the Vector Search tool is available. After selecting Vector Search, you can configure the following options:
- Store Discovery: Dynamically discover vector stores for Retrieval-Augmented Generation.
- Prompt Rephrase: Rephrase the user prompt, based on context and history, for a more meaningful vector search.
- Document Grading: Grade vector search results to determine their relevance. Results judged irrelevant are not used to generate the response.
Vector Storeโ
When Store Discovery is enabled, the AI Optimizer identifies vector stores to use for each search. To use a specific Vector Store instead, disable Store Discovery and select the Vector Store options manually. To choose a different Vector Store, click the "Reset" button to clear the current selections and display the available options.

Choose the type of search to perform and its additional parameters.
NL2SQL (Natural Language to SQL)โ
The Natural Language to SQL (NL2SQL) tool enables users to query structured data stored in Oracle AI Database by using natural language instead of SQL statements.
The AI Optimizer uses a local SQLcl MCP proxy for NL2SQL. Container installations include SQLcl and register the proxy automatically at startup. For bare-metal installations, install SQLcl so that the sql command is available on PATH.
โญ๏ธ For more information about SQLcl and its MCP capabilities, see the Oracle SQLcl MCP server documentation.
To enable NL2SQL, configure and select a database with valid credentials in Configuration โ Databases. The NL2SQL tool becomes available when both the database connection and SQLcl proxy are available. You can then issue natural language queries against structured data, such as the dataset shown in the example below:

To interact with the tool, navigate to Chatbot, select NL2SQL from the tool dropdown menu, and enter a query such as:
Can you give me the list of customers?
The response returned by the tool will be equivalent to the result of an actual SQL query executed against the database:

By using this tool, the AI Optimizer allows users to query structured data without writing any SQL code, simplifying data access and exploration.
You can experiment freely with your own structured datasets and progressively issue more complex natural language queries to explore the full capabilities of the NL2SQL tool.