ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้ว
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Semantic Frame

โดย Anarkitty1รุ่น 0.2.1i★ 1iรันบนเครื่อง
ชื่อใน registryio.github.Anarkitty1/semantic-frame

วิธีติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Token-efficient semantic compression for numerical data. 95%+ token reduction.

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 2/3 · ทำงานบนเครื่องคุณ

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน

ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. เปิดไฟล์ตั้งค่าของแอป Claude บนคอม

    SettingsDeveloperEdit Config

  3. วางค่าตั้งนี้แล้วบันทึกไฟล์

    {
      "mcpServers": {
        "semantic-frame": {
          "command": "uvx",
          "args": [
            "semantic-frame"
          ]
        }
      }
    }
  4. ปิดแอป Claude แล้วเปิดใหม่

  5. ลองเลย

    ใช้ Semantic Frame บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ Semantic Frame หรือมีชื่อเครื่องมือของ Semantic Frame ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ Semantic Frame ไม่ได้

Semantic Frame ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ Semantic Frame ได้

  • ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
  • ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

ข · ตัวอื่นในหมวด อื่น ๆ ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน

ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  3. วางคำสั่งนี้แล้วกด Enter

    claude mcp add semantic-frame -- uvx semantic-frame
  4. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น Semantic Frame ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  5. ลองเลย

    ใช้ Semantic Frame บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ Semantic Frame หรือมีชื่อเครื่องมือของ Semantic Frame ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน

ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  3. เปิดแชตของ AI ใน Cursor โหมด Agent

  4. ลองเลย

    ใช้ Semantic Frame บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ Semantic Frame หรือมีชื่อเครื่องมือของ Semantic Frame ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน

ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  3. เปิดแชตของ AI ใน VS Code โหมด Agent

  4. ลองเลย

    ใช้ Semantic Frame บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ Semantic Frame หรือมีชื่อเครื่องมือของ Semantic Frame ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ Semantic Frame อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ติดตั้งในเครื่อง

Claude Code

claude mcp add semantic-frame -- uvx semantic-frame

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "semantic-frame": {
      "command": "uvx",
      "args": [
        "semantic-frame"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "semantic-frame": {
      "command": "uvx",
      "args": [
        "semantic-frame"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "semantic-frame": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "semantic-frame"
      ]
    }
  }
}

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
49/สัปดาห์
การเชื่อมต่อ
รันบนเครื่อง
รุ่นล่าสุดi
0.2.1
หมวดi
อื่น ๆ
ส่งเข้า registryi
12 ธ.ค. 2568
แก้โค้ดล่าสุดi
13 ธ.ค. 2568
ผู้ทำ
Anarkitty1
แพ็กเกจ
pypi: semantic-frame
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 11 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub Anarkitty1 ซึ่งเป็นเจ้าของ repo

  • ! ควรระวัง

    ยังมีคนดูแล

    แก้โค้ดล่าสุด 11 เดือนที่ผ่านมา นานกว่า 6 เดือน

  • ✓ ผ่าน

    มีสัญญาอนุญาต (license)

    ใช้ MIT

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 86% ของอีก 19235 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 1% ของอีก 19235 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 42% ของอีก 19235 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Semantic Frame ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 2 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 11 เดือนที่ผ่านมา และส่งรุ่นล่าสุด (0.2.1) เข้า registry 11 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี World Monitor, Claude Flow, Tldraw

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

World Monitor

ข่าวกรองโลกแบบเรียลไทม์: ความขัดแย้ง ตลาด พลังงาน การค้า การขนส่ง และไซเบอร์

โดย koala73ใช้กันมาก★ 90.5Kอัปเดต 6 วันที่ผ่านมา

รันบนคลาวด์✓ worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

โดย ruvnetใช้กันมาก↓ 13.5K/สัปดาห์★ 81.5Kอัปเดต 14 เดือนที่ผ่านมา

รันบนเครื่อง

Tldraw

วาดภาพและระดมไอเดียร่วมกับ AI บนกระดาน tldraw

โดย tldrawใช้กันมาก★ 51.4Kอัปเดต 8 เดือนที่ผ่านมา

รันบนคลาวด์

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Semantic Frame

Token-efficient semantic compression for numerical data.

Semantic Frame converts raw numerical data (NumPy, Pandas, Polars) into natural language descriptions optimized for LLM consumption. Instead of sending thousands of data points to an AI agent, send a 50-word semantic summary.

The Problem

LLMs are terrible at arithmetic. When you send raw data like [100, 102, 99, 101, 500, 100, 98] to GPT-4 or Claude:

  • Token waste: 1000 data points = ~2000 tokens
  • Hallucination risk: LLMs guess trends instead of calculating them
  • Context overflow: Large datasets fill the context window

The Solution

Semantic Frame provides deterministic analysis using NumPy, then translates results into token-efficient narratives:

from semantic_frame import describe_series

import pandas as pd

data = pd.Series([100, 102, 99, 101, 500, 100, 98]) print(describe_series(data, context="Server Latency (ms)"))

Output:

The Server Latency (ms) data shows a flat/stationary pattern with stable

variability. 1 anomaly detected at index 4 (value: 500.00). Baseline: 100.00 (range: 98.00-500.00).

Result: 95%+ token reduction, zero hallucination risk.

Installation

pip install semantic-frame

Or with uv:

uv add semantic-frame

🤖 Claude Integration (MCP)

Semantic Frame is available on the official MCP Registry, enabling direct integration with Claude.

Claude Code CLI:

claude mcp add semantic-frame

Claude Desktop - Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{

"mcpServers": { "semantic-frame": { "command": "uvx", "args": ["--from", "semantic-frame[mcp]", "semantic-frame-mcp"] } } }

Once configured, Claude can use these tools:

  • describe_data - Analyze a single data series
  • describe_batch - Analyze multiple series at once
  • describe_json - Get structured JSON output

Quick Start

Analyze a Series
from semantic_frame import describe_series

import numpy as np

Works with NumPy arrays

data = np.array([10, 20, 30, 40, 50, 60, 70, 80, 90, 100]) result = describe_series(data, context="Daily Sales") print(result)

"The Daily Sales data shows a rapidly rising pattern with moderate variability..."

Analyze a DataFrame
from semantic_frame import describe_dataframe

import pandas as pd

df = pd.DataFrame({ 'cpu': [40, 42, 41, 95, 40, 41], 'memory': [60, 61, 60, 60, 61, 60], })

results = describe_dataframe(df, context="Server Metrics") print(results['cpu'].narrative)

"The Server Metrics - cpu data shows a flat/stationary pattern..."

Get Structured Output
result = describe_series(data, output="full")

print(result.trend) # TrendState.RISING_SHARP print(result.volatility) # VolatilityState.MODERATE print(result.anomalies) # [AnomalyInfo(index=4, value=500.0, z_score=4.2)] print(result.compression_ratio) # 0.95

JSON Output for APIs
result = describe_series(data, output="json")

Returns dict ready for JSON serialization

Supported Data Types

  • NumPy: np.ndarray
  • Pandas: pd.Series, pd.DataFrame
  • Polars: pl.Series, pl.DataFrame
  • Python: list

Analysis Features

FeatureMethodOutput
TrendLinear regression slopeRISING_SHARP, RISING_STEADY, FLAT, FALLING_STEADY, FALLING_SHARP
VolatilityCoefficient of variationCOMPRESSED, STABLE, MODERATE, EXPANDING, EXTREME
AnomaliesZ-score / IQR adaptiveIndex, value, z-score for each outlier
SeasonalityAutocorrelationNONE, WEAK, MODERATE, STRONG
DistributionSkewness + KurtosisNORMAL, LEFT_SKEWED, RIGHT_SKEWED, BIMODAL, UNIFORM
Step ChangeBaseline shift detectionNONE, STEP_UP, STEP_DOWN
Data QualityMissing value %PRISTINE, GOOD, SPARSE, FRAGMENTED

LLM Integration

System Prompt Injection
from semantic_frame.interfaces import format_for_system_prompt

result = describe_series(data, output="full") prompt = format_for_system_prompt(result)

Returns formatted context block for system prompts

LangChain Tool Output
from semantic_frame.interfaces import format_for_langchain

output = format_for_langchain(result)

{"output": "narrative...", "metadata": {...}}

Multi-Column Agent Context
from semantic_frame.interfaces import create_agent_context

results = describe_dataframe(df) context = create_agent_context(results)

Combined narrative for all columns with attention flags

Framework Integrations

Anthropic Claude (Native Tool Use)
pip install semantic-frame[anthropic]
import anthropic

from semantic_frame.integrations.anthropic import get_anthropic_tool, handle_tool_call

client = anthropic.Anthropic() tool = get_anthropic_tool()

response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, tools=[tool], messages=[{"role": "user", "content": "Analyze this sales data: [100, 120, 115, 500, 118]"}] )

Handle tool use in response

for block in response.content: if block.type == "tool_use" and block.name == "semantic_analysis": result = handle_tool_call(block.input) print(result)

LangChain
pip install semantic-frame[langchain]
from semantic_frame.integrations.langchain import get_semantic_tool

tool = get_semantic_tool()

Use as a LangChain BaseTool in your agent

CrewAI
pip install semantic-frame[crewai]
from semantic_frame.integrations.crewai import get_crewai_tool

tool = get_crewai_tool()

Use with CrewAI agents

MCP (Model Context Protocol)
pip install semantic-frame[mcp]

Run the MCP server:

mcp run semantic_frame.integrations.mcp:mcp

Exposes describe_data tool for MCP clients like:

  • ElizaOS: TypeScript-based agent framework
  • Claude Desktop: Anthropic's desktop app
  • Claude Code: Anthropic's CLI for Claude
  • Any MCP-compatible client
Claude Code

Add Semantic Frame as a native tool in Claude Code:

# Install MCP dependencies

pip install semantic-frame[mcp]

Add MCP server to Claude Code

claude mcp add semantic-frame -- uv run --project /path/to/semantic-frame mcp run /path/to/semantic-frame/semantic_frame/integrations/mcp.py

Restart Claude Code, then verify connection

claude mcp list

semantic-frame: ... - ✓ Connected

Once configured, ask Claude to analyze data and it will use the describe_data tool automatically.

Advanced Tool Use (Beta)

Semantic Frame supports Anthropic's Advanced Tool Use features for efficient tool orchestration in complex agent workflows.

Features
FeatureBenefitAPI
Input Examples+18% parameter accuracyIncluded by default
Tool Search1000+ tools without context bloatdefer_loading=True
Programmatic CallingBatch analysis via code executionallowed_callers=["code_execution"]
Quick Start (Advanced)
import anthropic

from semantic_frame.integrations.anthropic import get_advanced_tool, handle_tool_call

client = anthropic.Anthropic() tool = get_advanced_tool() # All advanced features enabled

response = client.beta.messages.create( betas=["advanced-tool-use-2025-11-20"], model="claude-sonnet-4-5-20250929", max_tokens=4096, tools=[ {"type": "tool_search_tool_regex_20251119", "name": "tool_search"}, {"type": "code_execution_20250825", "name": "code_execution"}, tool, ], messages=[{"role": "user", "content": "Analyze all columns in this dataset..."}] )

Configuration Options
from semantic_frame.integrations.anthropic import (

get_anthropic_tool, # Standard (includes examples) get_tool_for_discovery, # For Tool Search get_tool_for_batch_processing, # For code execution get_advanced_tool, # All features enabled )

MCP Batch Analysis
from semantic_frame.integrations.mcp import describe_batch

Analyze multiple series in one call

result = describe_batch( datasets='{"cpu": [45, 47, 95, 44], "memory": [60, 61, 60, 61]}', )

See docs/advanced-tool-use.md for complete documentation.

Use Cases

Crypto Trading
btc_prices = pd.Series(hourly_btc_prices)

insight = describe_series(btc_prices, context="BTC/USD Hourly")

"The BTC/USD Hourly data shows a rapidly rising pattern with extreme variability.

Step up detected at index 142. 2 anomalies detected at indices 89, 203."

DevOps Monitoring
cpu_data = pd.Series(cpu_readings)

insight = describe_series(cpu_data, context="CPU Usage %")

"The CPU Usage % data shows a flat/stationary pattern with stable variability

until index 850, where a critical anomaly was detected..."

Sales Analytics
sales = pd.Series(daily_sales)

insight = describe_series(sales, context="Daily Revenue")

"The Daily Revenue data shows a steadily rising pattern with weak cyclic pattern

detected. Baseline: $12,450 (range: $8,200-$18,900)."

IoT Sensor Data
temps = pl.Series("temperature", sensor_readings)

insight = describe_series(temps, context="Machine Temperature (C)")

"The Machine Temperature (C) data is expanding with extreme outliers.

3 anomalies detected at indices 142, 156, 161."

📈 Trading Module (v0.4.0)

Specialized semantic analysis for trading agents, portfolio managers, and financial applications.

Trading Tools
ToolDescription
describe_drawdownEquity curve drawdown analysis with severity
describe_trading_performanceWin rate, Sharpe, profit factor metrics
describe_rankingsMulti-agent/strategy comparison
describe_anomaliesEnhanced anomaly detection with PnL context
describe_windowsMulti-timeframe trend alignment
describe_regimeMarket regime detection (bull/bear/sideways)
describe_allocationPortfolio allocation suggestions ⚠️
Quick Examples
from semantic_frame.trading import (

describe_trading_performance, describe_drawdown, describe_regime, describe_allocation, )

Trading Performance

pnl = [100, -50, 75, -25, 150, -30, 80] result = describe_trading_performance(pnl, context="My Bot") print(result.narrative)

"My Bot shows good performance with 57.1% win rate. Profit factor: 2.53..."

Drawdown Analysis

equity = [10000, 10500, 10200, 9800, 9500, 10100] result = describe_drawdown(equity, context="Strategy") print(result.narrative)

"Strategy max drawdown: 9.5% (moderate). Currently recovering..."

Market Regime

returns = [0.01, 0.015, 0.02, -0.01, 0.025, 0.018] # Daily returns result = describe_regime(returns, context="BTC") print(result.narrative)

"BTC is in a strong bullish regime. Conditions favor trend-following..."

Portfolio Allocation (⚠️ Educational only, not financial advice)

assets = {"BTC": [40000, 42000, 44000], "ETH": [2500, 2650, 2800]} result = describe_allocation(assets, method="risk_parity") print(result.narrative) #

ตัดมาแค่ช่วงต้น อ่านต่อใน repo