5-1. Embedding API接続テスト

curl <http://localhost:8000/api/v1/search/health>

想定結果:

{
  "status": "ok",
  "model": "text-embedding-004",
  "dimensions": 768
}

実行ログ

5-2. 議事録のembedding生成

# 既存の議事録(ID=1)のembeddingを生成
curl -X POST <http://localhost:8000/api/v1/search/minutes/2/embedding>

想定結果:

{
  "status": "success",
  "message": "議事録 ID=1 のembeddingを生成しました",
  "minute_id": 2
}

実行ログ

5-3. 全議事録の一括embedding生成

curl -X POST <http://localhost:8000/api/v1/search/embeddings/batch>

想定結果:

{
  "status": "success",
  "updated": 3,
  "failed": 0,
  "errors": null
}

実行ログ

5-4. セマンティック検索

curl -X POST <http://localhost:8000/api/v1/search> \\
  -H "Content-Type: application/json" \\
  -d '{"query": "プロジェクトの進捗確認について", "limit": 5}'

想定結果:

{
  "query": "プロジェクトの進捗確認について",
  "results": [
    {
      "id": 1,
      "title": "2025年1月プロジェクト定例会",
      "meeting_date": "2025-01-15T14:00:00",
      "similarity": 0.8542,
      "summary": "## 議題\\n- 今週の進捗確認...",
      "content_preview": "【出席者】田中、佐藤、鈴木..."
    }
  ],
  "total": 1
}

実行ログ