360 Secure SkillHub
360 安全技能中心

AIML Embeddings Generator

核心功能是借助AIMLAPI的text-embedding-3-large等模型,将文本转换为高维数值向量。典型场景包括语义搜索、聚类及文本高维表示需求。使用前需配置AIMLAPI_API_KEY,通过Python脚本输入文本,可指定模型、向量维度,结果可保存至指定目录。

aimlapihello
aimlapihello
热度 61.94
最近更新 2026-05-17 12:50:59
分类:开发依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.