Skip to content

Rewrite README as a learning path for beginners#63

Merged
raghubetina merged 1 commit into
mainfrom
readme-rewrite
Apr 13, 2026
Merged

Rewrite README as a learning path for beginners#63
raghubetina merged 1 commit into
mainfrom
readme-rewrite

Conversation

@raghubetina
Copy link
Copy Markdown
Contributor

Summary

  • Restructures the README from reference-manual ordering to a learning funnel: quick start (with .env setup) -> "it's just hashes" insight -> features -> advanced
  • Moves proxy/Prepend.me setup near the top since most students use it
  • Replaces single-letter variables (a, b, c...) with chat throughout
  • Simplifies structured output section (leads with simplest schema format, points to examples for others)
  • Adds context to code interpreter section (explains what it is and what it produces)
  • Consolidates advanced features (reasoning, verbosity, background mode, conversation management, response details, get_items, HTML output) into one section
  • Moves examples directory listing to the end as reference material

No code changes. Content is preserved; the change is sequencing and information density.

Test plan

  • Read the README top-to-bottom as a student would — does the quick start get you to a working chat?
  • Verify all code samples are accurate (variable names, method signatures, output shapes)
  • Confirm no features were dropped from the documentation

The README was organized like a reference manual: examples
directory listing, then installation, then usage, then config.
A student reading top-to-bottom would hit code samples before
knowing how to set up their API key.

Restructure as a learning funnel:

- Open with quick start (install, .env setup, first working code)
- Lead with the "it's just an array of hashes" insight early
- Move proxy/Prepend.me setup near the top since most students
  use it
- Replace single-letter variables (a, b, c...) with `chat`
- Simplify structured output (lead with simplest schema format)
- Add context to code interpreter section
- Consolidate advanced features into one section
- Move examples directory listing to the end as reference

Content is preserved; the change is sequencing and clarity.
@raghubetina raghubetina merged commit 92c7991 into main Apr 13, 2026
2 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0cbff8815

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
Comment on lines +29 to +31
require "ai-chat"

And then, at a command prompt:
chat = AI::Chat.new
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Load .env before constructing AI::Chat

The Quick Start now instructs users to put credentials in a .env file, but this example only does require "ai-chat"; in a plain Ruby script that does not already load Dotenv (unlike the examples), AI::Chat.new will raise a KeyError because ENV is still unset. This makes the first-run path fail for beginners unless they manually export vars, so the snippet should also load .env (for example via require "dotenv/load") or avoid .env guidance here.

Useful? React with 👍 / 👎.

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.

1 participant