メインコンテンツへ移動
Nowledge MemNowledge Mem

埋め込みの作成

POST
/v1/embeddings

Generate embeddings with the active search model on this local or self-hosted server. Supports OpenAI-compatible float and base64 responses plus the optional Nowledge input_type extension. The endpoint is not available on Nowledge Cloud. If a remote embedding provider is active, calls are forwarded by this server and count toward that provider's usage.

リクエストボディ

application/json

TypeScript定義

TypeScriptでrequest body型を使用します。

レスポンスボディ

application/json

application/json

curl -X POST "https://example.com/v1/embeddings" \  -H "Content-Type: application/json" \  -d '{    "input": "string",    "model": "string"  }'
{  "data": [    {      "embedding": [        0.1      ],      "index": 0,      "object": "string"    }  ],  "model": "string",  "object": "string",  "usage": {    "prompt_tokens": 0,    "total_tokens": 0  }}