360 Secure SkillHub
360 安全技能中心

AIML Embeddings Generator

该 Skill 提供 Python 脚本,调用 AIMLAPI 的文本嵌入模型,把输入文本转换为高维向量,可指定模型与维度,并可将结果写入输出目录。需要配置 AIMLAPI_API_KEY,适用于语义搜索、聚类等下游用途。

分类:数据
aimlapihello
aimlapihello
热度 44.53
最近更新 2026-05-17 12:50:59

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aimlapihello/aiml-embeddings
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
aimlapi-embeddings
description
Generate text embeddings via AIMLAPI. Use for semantic search, clustering, or high-dimensional text representations with text-embedding-3-large and other models.
env
["AIMLAPI_API_KEY"]
primaryEnv
AIMLAPI_API_KEY

AIMLAPI Embeddings

Overview

Converts text into high-dimensional numerical representations (vectors) using AIMLAPI's embedding models like text-embedding-3-large.

Quick start

export AIMLAPI_API_KEY="sk-aimlapi-..."
python3 {baseDir}/scripts/gen_embeddings.py --input "Laura is a DJ."

Tasks

Generate embeddings

Use scripts/gen_embeddings.py to get vector representations of text.

python3 {baseDir}/scripts/gen_embeddings.py \
  --input "Knowledge is power." \
  --model text-embedding-3-large \
  --dimensions 1024 \
  --out-dir ./out/embeddings

References

  • references/endpoints.md: API schema and parameter details.