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

メモリのKG抽出をプレビュー

POST
/memories/{memory_id}/extract-kg/preview

メモリのナレッジグラフ抽出をプレビューします。

このエンドポイントは、ローカルLLMを使用してメモリのコンテンツからエンティティと 関連を抽出し、データベースに保存することなくプレビューを提供します。

パスパラメータ

memory_id*メモリID

リクエストボディ

application/json

TypeScript定義

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

メモリからのナレッジグラフ抽出のリクエスト。

注: memory_idはリクエストボディではなくURLパスで提供されます。

レスポンスボディ

application/json

application/json

curl -X POST "https://example.com/memories/string/extract-kg/preview" \  -H "Content-Type: application/json" \  -d '{}'
{  "memory_id": "string",  "memory_title": "string",  "memory_content": "string",  "entities": [    {}  ],  "relationships": [    {}  ],  "extraction_confidence": 0,  "entities_count": 0,  "relationships_count": 0,  "kg_already_extracted": true,  "can_extract": true,  "write_plan": {}}