Chuyển đến nội dung
Skillpedia
Prompt và LLM84k · #1426

omni-context-rtk

Skill này làm gì

Skill này chỉ cách điều chỉnh cách OmniRoute cắt bớt ngữ cảnh trước khi model nhận được. Skill dành cho lập trình viên muốn quản lý bộ lọc và kiểm tra tác dụng của chúng trên prompt thực tế.

Khi nào nên dùng

  • ✓Khi người dùng muốn thay đổi cài đặt nén RTK.
  • ✓Khi người dùng muốn thêm hoặc kiểm tra bộ lọc RTK.
  • ✓Khi người dùng muốn thử nén trên một mẫu prompt thực tế.

Liên kết skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-context-rtk/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-context-rtk/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thử xem các cài đặt bộ lọc RTK của tôi nén đoạn văn mẫu này như thế nào.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các lệnh gọi để đọc và cập nhật cài đặt RTK, liệt kê bộ lọc, kiểm tra hoặc cài đặt file bộ lọc, và chạy xem trước nén trên một đoạn văn bản.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Configure RTK filters, context engineering rules, and context relay settings. Test compression with real prompt samples and manage context transformation pipelines.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

GET /api/context/rtk/config

Get RTK compression settings

curl http://localhost:20128/api/context/rtk/config \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

PUT /api/context/rtk/config

Update RTK compression settings

curl -X PUT http://localhost:20128/api/context/rtk/config \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/context/rtk/filters

List RTK filters and load diagnostics

curl http://localhost:20128/api/context/rtk/filters \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/context/rtk/import

Validate or install an RTK TOML schema v1 filter file

curl -X POST http://localhost:20128/api/context/rtk/import \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/context/rtk/test

Run RTK compression preview for text

curl -X POST http://localhost:20128/api/context/rtk/test \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/context/rtk/raw-output/{id}

Read retained redacted RTK raw output

curl http://localhost:20128/api/context/rtk/raw-output/{id} \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/context/rtk/discover

GET context › rtk › discover

curl http://localhost:20128/api/context/rtk/discover \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/context/rtk/learn

GET context › rtk › learn

curl http://localhost:20128/api/context/rtk/learn \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

Câu hỏi thường gặp

File bộ lọc dùng định dạng nào?

Skill nhập các file bộ lọc RTK theo schema TOML phiên bản 1.

Tôi có thể kiểm tra bộ lọc trước khi cài không?

Có. Lệnh import có thể kiểm tra file bộ lọc, và lệnh test xem trước nén cho một đoạn văn bản.

Nó có quản lý cả pipeline ngữ cảnh không?

Có. Skill bao gồm các pipeline biến đổi ngữ cảnh cũng như bộ lọc.

Chi tiết

Mô tả gốc của tác giả

Configure RTK filters, context engineering rules, and context relay settings. Test compression with real prompt samples and manage context transformation pipelines.

repo: cheaper-inference/OmniRoute

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1426
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự