This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query = "What are the conclusions in this document?" | |
| doc_id = "your doc id" # This is the doc_id for the same document in step-01.py. You can also use your own doc_id here. | |
| tree = pi_client.get_tree(doc_id, node_summary=True)['result'] | |
| print('Simplified Tree Structure of the Document:') | |
| utils.print_tree(tree) | |
| # ตัวอย่างข้อมูล index tree | |
| Simplified Tree Structure of the Document: | |
| [{'title': 'Abstract', 'node_id': '0000', 'summary': 'This text discusses the challenge of gen...'}, | |
| {'title': '1 Introduction', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $curl https://blog.cloudflare.com/markdown-for-agents/ \ | |
| -H "Accept: text/markdown" | |
| --- | |
| description: The way content is discovered online is shifting, from traditional search engines to AI agents that need structured data from a Web built for humans. It’s time to consider not just human visitors, but start to treat agents as first-class citizens. Markdown for Agents automatically converts any HTML page requested from our network to markdown. | |
| title: Introducing Markdown for Agents | |
| image: https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6Df02zjRb4inGPazW51EyD/278afaa16719f1080f12936c35a6c0ef/BLOG-3162_OG.png | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ค้นหา word1 และ word 2 | |
| ZINCRBY search:freq:2026-02-17 1 "word1" | |
| ZINCRBY search:freq:2026-02-17 1 "word1" | |
| ZINCRBY search:freq:2026-02-17 1 "word2" | |
| // ดูผลการค้นหา | |
| ZREVRANGE search:freq:2026-02-17 0 4 WITHSCORES | |
| // ผล | |
| 1) "word1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ติดตั้ง ต้องใช้งานผ่าน NodeJS | |
| $npm install -g agent-browser | |
| // เปิด web | |
| $agent-browser open https://seleniumbase.io/coffee/ | |
| ✓ Coffee Cart | |
| https://seleniumbase.io/coffee/ | |
| // ทำการดูว่าทั้ง page มี element อะไรบ้าง | |
| $agent-browser snapshot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $curl -L code.kimi.com/install.sh | bash | |
| $kimi | |
| ╭────────────────────────────────────────────────────────────────────────╮ | |
| │ │ | |
| │ ▐█▛█▛█▌ Welcome to Kimi Code CLI! │ | |
| │ ▐█████▌ Send /help for help information. │ | |
| │ │ │ | |
| │ Session: c23cbb12-a6da-402a-a4c5-0c346d77efd3 │ | |
| │ Model: not set, send /login to login │ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ollama --version | |
| ollama version is 0.14.3 | |
| $ollama list | |
| NAME ID SIZE MODIFIED | |
| functiongemma:latest 7c19b650567a 300 MB 4 weeks ago | |
| gemma3:270m b16d6d39dfbd 241 MB 5 months ago | |
| gemma3:1b 8648f39daa8f 815 MB 8 months ago | |
| deepseek-r1:7b 0a8c26691023 4.7 GB 12 months ago | |
| llama3.1:latest 91ab477bec9d 4.7 GB 17 months ago |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $npx add-skill vercel-labs/agent-skills | |
| Need to install the following packages: | |
| add-skill@1.0.21 | |
| ┌ skills | |
| │ | |
| ◇ Source: https://github.com/vercel-labs/agent-skills.git | |
| │ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH cte AS ( | |
| SELECT id FROM tasks WHERE status = 'pending' ORDER BY created_at ASC LIMIT 1 FOR UPDATE SKIP LOCKED | |
| ) | |
| UPDATE tasks SET status = 'in_progress' | |
| FROM cte | |
| WHERE tasks.id = cte.id | |
| RETURNING tasks.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "PostToolUse": [ | |
| { | |
| "matcher":"Write|Edit", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "bun run format || true" | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ollama list | |
| NAME ID SIZE MODIFIED | |
| functiongemma:latest 7c19b650567a 300 MB 15 minutes ago | |
| $ollama run functiongemma | |
| pulling manifest | |
| pulling 415f8f959d80: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 300 MB | |
| pulling 64c834d5c134: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 10 KB | |
| pulling b536e845ddda: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 26 B | |
| pulling d087699a8829: 100% ▕██████████████████████████████████████████████████████████████████████████▏ 468 B |
NewerOlder