---
title: Work with AI Prompts
slug: work-with-ai-prompts
description: Draft high-quality prompts to help AI tools use the Ocient documentation and Ocient SQL accurately. This guide explains why models need explicit direction, how to anchor them on authoritative sources, and provides copy‑paste templates. Always start from t
docTags: 
createdAt: Mon Oct 20 2025 17:47:00 GMT+0000 (Coordinated Universal Time)
updatedAt: Mon Mar 30 2026 18:58:47 GMT+0000 (Coordinated Universal Time)
---

Use this guide to draft high-quality prompts to assist AI tools in using the Ocient® documentation and SQL dialect with greater accuracy.

The guide explains why drafting AI prompts for the Ocient documentation helps produce better results. These reasons include:&#x20;

- Large models often default to generic SQL or other vendor syntax.
- Additional guidance helps scrapers navigate documentation libraries.&#x20;
- The `llms.txt` index page provides the cleanest and AI-friendly entry point to the documentation.

## Key AI Prompt Recommendations

Follow these key recommendations for working with the Ocient documentation:&#x20;

::::WorkflowBlock
:::WorkflowBlockItem
**Include Ocient Documentation URLs**

Start prompts with one or more links to anchor the model on authoritative content. In prompts, specify the AI index page [https://docs.ocient.com/llms.txt ](https://docs.ocient.com/llms.txt)to provide full documentation reference for models.&#x20;

If relevant, include the exact topic URL (e.g., SQL reference, machine learning, data pipelines).
:::

:::WorkflowBlockItem
**Explicitly Require Ocient SQL**

In your prompt, specifically dictate to the AI model to use Ocient SQL, such as `Use Ocient SQL syntax` or `Do not use non‑Ocient SQL variants`. Such text is particularly helpful to avoid generic responses for prompts that involve complex data types or Ocient-specific syntax for TimeKey®, secondary indexes, or DDL statements.
:::
::::

## AI Prompt Templates

Use these templates and fill in your question and context-setting information in the `< ... >` sections, while keeping the rest of the text intact.

**General Questions&#x20;**

This template is suitable for general questions for Ocient System usage. Use this context-setting text prior to asking your question.

```text
You are answering using the official Ocient documentation.
Start from https://docs.ocient.com/llms.txt and reference the linked pages there.
Use only Ocient SQL syntax in examples and explanations.
Do not include SQL features or syntax from other databases.

Question: <your question here>
```

**Create an Ocient SQL Query**

This AI prompt helps ensure an AI tool adheres to Ocient SQL in the response. The performance of the generated SQL query depends on the specifics of your data. Edit the resulting SQL query to meet your needs.&#x20;

```text
You are answering using the official Ocient documentation.
Start at https://docs.ocient.com/llms.txt and reference the linked pages there.
Use Ocient SQL syntax only; do not use Postgres/MySQL/Spark SQL or other variants.
If uncertain about any detail, cite the exact Ocient page used.

Task:
Draft an Ocient SQL query to achieve 
<Describe the goal clearly, including relevant tables or columns and any filters or joins.>

Context (optional but helpful):
- Schema snippets, table snippets, or column types
- Performance or indexing considerations
- Any assumptions or edge cases

Output format:
1) A single Ocient SQL query
2) A brief explanation (2–3 sentences)
3) Citations to the specific Ocient documentation pages used

Reference pages (if applicable to the task):
<Point to any relevant reference pages.> 
```

## AI Prompts for Specific Use Cases

For more accurate responses, use your prompt to point to the relevant page URL in the documentation. Each page in this table provides high-level usage information for the specified topic.&#x20;

| **Topic**           | **URL**                                                                                                                                              |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Loading             | [https://docs.ocient.com/load-data](https://docs.ocient.com/load-data)                                                                               |
| Installation        | [https://docs.ocient.com/install-an-ocient-system](https://docs.ocient.com/install-an-ocient-system)                                                 |
| Machine Learning    | [https://docs.ocient.com/machine-learning-model-functions](https://docs.ocient.com/machine-learning-model-functions)                                 |
| Geospatial          | [https://docs.ocient.com/geospatial-functions](https://docs.ocient.com/geospatial-functions)                                                         |
| Data Types          | [https://docs.ocient.com/data-types](https://docs.ocient.com/data-types)                                                                             |
| DDL Statements      | [https://docs.ocient.com/data-definition-language-ddl-statement-reference](https://docs.ocient.com/data-definition-language-ddl-statement-reference) |
| Errors and Warnings | [https://docs.ocient.com/errors-and-warnings](https://docs.ocient.com/errors-and-warnings)                                                           |

## Troubleshooting Low‑Quality Responses

If the responses from your AI prompts are inaccurate, try modifying them with these suggestions:&#x20;

- For generic responses, add the `Use Ocient SQL only` text and also the SQL reminders in [Key AI Prompt Recommendations](./#key-ai-prompt-recommendations).
- For functions that appear incorrect, ask the AI tool to navigate to `https://docs.ocient.com/llms.txt` and cite the specific page it referenced.
- For incorrect structure, provide a minimal schema snippet and restate data types (such as complex types of arrays, tuples, or matrices).
- If navigation or footer text appears, restate `Start from llms.txt, ignore navigation and footer content`.
- If the AI tool continues to have issues accessing the documentation, download the PDF of the Ocient documentation and upload it into the AI prompt.

## Related Links

[ Prompt Engineering](https://platform.openai.com/docs/guides/prompt-engineering/six-strategies-for-getting-better-results)

[Key Concepts](<./Key Concepts.md>)&#x20;

[Query Ocient](<././Query Ocient.md>)&#x20;

