Welcome! After launching and configuring your environment, ensure you're logged in to begin.
lessons/.โ Lesson 0 was the environment setup. Lesson 1 is the first real lesson of the course.
The hello package includes small examples demonstrating system services:
| Service | Description |
|---|---|
| Redis | Cache operations (info, keys, etc.) |
| Milvus | Vector DB search using embedding |
| Streamer | ASCII-based output streaming |
| LLM (Alma) | Query small language model |
| S3 Storage | Store, list, upload & delete files |
| Tests | 2 failing tests to practice debugging |
These examples are useful for testing, debugging, and learning the system APIs.
TODO in the broken test."Hi" to "Hello" and save.# Deploy the fixed code obs deploy # Or just redeploy the specific action obs ide deploy hello-llm
Enable Dev Mode (Devil) for automatic deploy on save.
After deployment, youโll get a custom URL. Login with your user credentials.
What is the capital of Italy?RomeHi, how are you? โ streamed char-by-charinfo keys *
+ key = value), search, deleteThis is a test Another testThen search:
*test โ shows ranked results by similarityUse obs or oops for CLI actions. Common subcommands:
obs ai lesson # download lessons obs ai user # manage users obs ai chat <svc> # chat with an LLM from CLI obs ide deploy <action> # deploy a single action obs action delete <svc> # delete an action obs clean # cleanup temp files
obs ai chatis a terminal version of the web chat.
obs ai new reverse -p messiah
This creates:
packages/
messiah/
reverse/ # your new action
__tests__/
reverse.unit.test.py
reverse.int.test.py
obs deploy
packages/mastrogpt/index/index.pyreverse("messiah/reverse")
obs ide deploy mastrogpt-index
Reverse โ Input: hello โ Output: ollehFile: packages/messiah/reverse/main.py
def main(args): inp = args.get("input", "") if inp == "": return {"output": "Please provide an input"} else: out = inp[::-1] return {"output": f"**{out}**"} # bold markdown
Use Dev Mode to auto-deploy as you edit.
You now:
Next lessons will:
Happy hacking! ๐งช๐ค