Skip to content

Conversation

@amotl
Copy link
Member

@amotl amotl commented Jul 28, 2025

About

Iterate a bit on copy-editing after the first version added the other day.

@coderabbitai
Copy link

coderabbitai bot commented Jul 28, 2025

Walkthrough

The changes reorganize and refine the CrateDB prompt instructions for improved clarity, technical precision, and structure. Content from the "Things to remember" section was integrated into a new "Details about CrateDB" section, guidelines were expanded, and SQL query rules were clarified. The changelog was updated to reflect these documentation improvements.

Changes

Cohort / File(s) Change Summary
CHANGES.md Updated the "Unreleased" section to note the reorganization and improvement of CrateDB prompt instructions.
CrateDB prompt instructions
src/cratedb_about/prompt/instructions.md
Reorganized documentation by merging sections, refining phrasing, clarifying SQL rules, and enhancing guidelines for accuracy and technical depth.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested reviewers

  • WalBeh
  • surister
  • joncombe

Poem

In the warren where data hops free,
CrateDB’s wisdom now clearer to see.
Instructions refined, with structure anew,
For queries that sparkle and answers that do!
🐇✨
Hop on, dear coder, the docs are your guide—
With clarity and order, let’s optimize the ride!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f13f13f and 1bb8451.

📒 Files selected for processing (2)
  • CHANGES.md (1 hunks)
  • src/cratedb_about/prompt/instructions.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • CHANGES.md
  • src/cratedb_about/prompt/instructions.md
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch instructions-copy-editing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (6)
CHANGES.md (1)

4-4: Changelog entry could be more specific

Consider explicitly referencing the file path that was re-organized (src/cratedb_about/prompt/instructions.md) to make the entry self-explanatory when skimming the log months later.

- Prompt: Reorganized and improved instructions about working with CrateDB
+ Prompt (instructions.md): Reorganized and improved the CrateDB prompt instructions for clarity & structure
src/cratedb_about/prompt/instructions.md (5)

3-4: Italicised sentence looks like a leftover subtitle

The _Things to remember …_ sentence reads like a pre-restructure artefact and doesn’t add information beyond the heading. Removing it keeps the introduction crisp.

-_Things to remember when working with CrateDB._

19-28: Minor factual / wording tweaks for technical precision

  1. Line 19: “in the same way as Elasticsearch is doing it” → Grammarly awkward; drop the comparison clause.
  2. Line 21: “CrateDB brings together fundamental components to manage big data after the Hadoop and Spark batch-processing era” – subjective and time-bound; suggest focusing on current positioning.
  3. Line 26: Cloud bullet: “data ingest / ETL utilities” → Plural of “utility” not needed.
- CrateDB is a distributed database written in Java, where individual nodes form a database cluster, using a shared-nothing architecture, in the same way as Elasticsearch is doing it.
+ CrateDB is a distributed database written in Java; nodes form a shared-nothing cluster.

- CrateDB brings together fundamental components to manage big data after the Hadoop and Spark batch-processing era, more like Teradata, BigQuery and Snowflake are doing it.
+ CrateDB targets interactive analytics on large data sets, similar in spirit to systems such as Teradata, BigQuery, and Snowflake.

- CrateDB Cloud offers a managed option for running CrateDB and provides additional features like automated backups, data ingest / ETL utilities, or scheduling recurrent jobs.
+ CrateDB Cloud is the fully managed service and adds features such as automated backups, ingest/ETL utilities, and scheduled jobs.

32-39: “Remember” bullets partly duplicate & could merge

Lines 31–33 both contrast CrateDB with another product. Merging avoids repetition:

- Remember: CrateDB is NOT Elasticsearch - they are different systems
- Remember: CrateDB is PostgreSQL wire compatible but NOT PostgreSQL - important differences exist
+ Remember: CrateDB is NOT Elasticsearch, and while it speaks the PostgreSQL wire protocol it is not PostgreSQL; important differences exist in both cases.

38-38: Replace vague adjective “deep”

Static analysis flag is legitimate. “In-depth” conveys the intent more precisely.

- Examine the CrateDB source code when needed for deep technical insights
+ Examine the CrateDB source code when needed for in-depth technical insights

43-46: Add practical example to DATE_TRUNC guideline

Including an idiomatic snippet aids quick copy-paste:

- To filter for a particular date range, apply `DATE_TRUNC` on the timestamp column and use it in the query statement's `WHERE` clause. Do NOT use `DATE_SUB`, it does not exist in CrateDB.

  Example:

  ```sql
  SELECT *
  FROM my_table
  WHERE DATE_TRUNC('day', ts) BETWEEN '2025-07-01' AND '2025-07-31';

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 481111be7452b0d77fb8d3d0153bc3f27e4b43ed and e33d87588ba974b315a4485b49826a98587db985.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `CHANGES.md` (1 hunks)
* `src/cratedb_about/prompt/instructions.md` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🧠 Learnings (3)</summary>

<details>
<summary>📓 Common learnings</summary>

Learnt from: amotl
PR: #32
File: src/cratedb_about/outline/cratedb-outline.yaml:321-329
Timestamp: 2025-05-15T21:25:54.870Z
Learning: In the CrateDB outline YAML, content organization prioritizes thematic grouping (keeping related topics together) over content type grouping (separating tutorials from reference docs), as demonstrated by placing the multi-tenancy tutorial alongside user management and privileges documentation in the API section.


</details>
<details>
<summary>CHANGES.md (1)</summary>

Learnt from: amotl
PR: crate/about#32
File: src/cratedb_about/outline/cratedb-outline.yaml:321-329
Timestamp: 2025-05-15T21:25:54.870Z
Learning: In the CrateDB outline YAML, content organization prioritizes thematic grouping (keeping related topics together) over content type grouping (separating tutorials from reference docs), as demonstrated by placing the multi-tenancy tutorial alongside user management and privileges documentation in the API section.

</details>
<details>
<summary>src/cratedb_about/prompt/instructions.md (1)</summary>

Learnt from: amotl
PR: crate/about#32
File: src/cratedb_about/outline/cratedb-outline.yaml:321-329
Timestamp: 2025-05-15T21:25:54.870Z
Learning: In the CrateDB outline YAML, content organization prioritizes thematic grouping (keeping related topics together) over content type grouping (separating tutorials from reference docs), as demonstrated by placing the multi-tenancy tutorial alongside user management and privileges documentation in the API section.

</details>

</details><details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>src/cratedb_about/prompt/instructions.md</summary>

[style] ~38-~38: Consider a different adjective to strengthen your wording.
Context: ...the CrateDB source code when needed for deep technical insights  ## Rules for writin...

(DEEP_PROFOUND)

</details>

</details>

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@amotl amotl force-pushed the instructions-copy-editing branch from 401b9a3 to 1bb8451 Compare July 28, 2025 09:23
@amotl amotl merged commit 1051534 into main Jul 28, 2025
6 checks passed
@amotl amotl deleted the instructions-copy-editing branch July 28, 2025 09:37
Comment on lines 9 to +15
## Impersonation

- You are a friendly assistant who processes information from CrateDB and its documentation.
- Your task is to translate questions into SQL queries, run them on CrateDB, and return results.
- Try to generate SQL queries based on the known data model and don't ask questions back.
- You are a CrateDB database engineer, focused on technical level and optimization abilities.
- Your primary task is to translate questions into accurate CrateDB SQL queries and present the expected result format.
- Generate queries based on the known data model; if critical information is missing, ask concise follow-up questions rather than guessing.
- Another responsibility is to discover optimal information from the CrateDB knowledgebase.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are observing a few regressions on MCP use: It looks like the knowledge finding process goes less to the docs, and uses more of internal memory now, which is obviously low on first-class information.

Could this amendment be responsible for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants