<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>LegalOn_Technologies</author_name>
  <author_url>https://blog.hatena.ne.jp/LegalOn_Technologies/</author_url>
  <blog_title>LegalOn Technologies Engineering Blog</blog_title>
  <blog_url>https://tech.legalforce.co.jp/</blog_url>
  <categories>
    <anon>Data Engineering</anon>
    <anon>検索推薦</anon>
  </categories>
  <description>はじめに こんにちは、株式会社LegalOn Technologies で検索・推薦チームに所属している福田と申します。 わたしたちのチームでは、LLM (大規模言語モデル) を用いて文書をラベリングし、そのラベルを検索や推薦のサービスで役立てています。 この記事では、LLMを使って文書をラベリングする際、付与されるラベル同士の制約がある場合に、どうやってLLMに制約を満たすような出力を強制させるかについて説明します。特にラベルの組み合わせ数が多い場合、Structured Outputs (Geminiで言うところのControlled generation) を利用した際にAPIで定められ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.legalforce.co.jp%2Fentry%2Fconditional-document-labeling-structured-output&quot; title=&quot;条件付き文書ラベリングをスマートに解く - Structured Outputsでラベルの組み合わせ爆発を回避する方法 - LegalOn Technologies Engineering Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-04 11:50:00</published>
  <title>条件付き文書ラベリングをスマートに解く - Structured Outputsでラベルの組み合わせ爆発を回避する方法</title>
  <type>rich</type>
  <url>https://tech.legalforce.co.jp/entry/conditional-document-labeling-structured-output</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
