{
  "slug": "guidance",
  "name": "Guidance",
  "company": "Guidance contributors",
  "website": "https://guidance.readthedocs.io/",
  "category": "platforms",
  "business_model": "open",
  "availability": "unknown",
  "launched": null,
  "tags": [
    "struct",
    "developer-tools"
  ],
  "updated": "2026-11-03",
  "sources": [
    {
      "title": "Guidance — official product",
      "url": "https://guidance.readthedocs.io/"
    },
    {
      "title": "Guidance — official documentation and terms",
      "url": "https://github.com/guidance-ai/guidance"
    }
  ],
  "selection": {
    "tasks": [
      "data-analysis"
    ],
    "form_factor": "library",
    "platforms": [
      "unknown"
    ],
    "deployment": [
      "unknown"
    ],
    "offline": "unknown",
    "regions": [
      "unknown"
    ],
    "api": "unknown",
    "license": "unknown",
    "commercial_use": "unknown",
    "languages": [
      "unknown"
    ],
    "billing": {
      "models": [
        "open-source"
      ],
      "free_allowance": "yes",
      "requires_subscription": "no"
    }
  },
  "selection_evidence": {
    "tasks": {
      "status": "editorial_inference",
      "note": "Editorial classification of the documented features; not a product-performance test."
    },
    "form_factor": {
      "status": "editorial_inference",
      "note": "Editorial classification of the documented features; not a product-performance test."
    },
    "platforms": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "deployment": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "offline": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "regions": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "api": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "license": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "commercial_use": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "languages": {
      "status": "unknown",
      "note": "This product-specific field was not established in this entry’s source review."
    },
    "billing": {
      "status": "editorial_inference",
      "note": "Editorial classification of the documented features; not a product-performance test."
    }
  },
  "facts": [
    {
      "id": "guidance.capability.primary",
      "field": "capability",
      "value": "Constrain generation with regex and context-free grammars",
      "status": "verified",
      "evidence_type": "official_page",
      "checked": "2026-11-03",
      "sources": [
        "https://github.com/guidance-ai/guidance"
      ]
    }
  ],
  "docs_url": "https://github.com/guidance-ai/guidance",
  "description": "Python library that interleaves generation and control flow while constraining language-model output.",
  "overview": "Typical uses include Schema-constrained data extraction; Validation of generated application data. Documented capabilities: Constrain generation with regex and context-free grammars; Mix loops, conditionals and model generation; Backends including Transformers, llama.cpp and OpenAI.",
  "features": [
    "Constrain generation with regex and context-free grammars",
    "Mix loops, conditionals and model generation",
    "Backends including Transformers, llama.cpp and OpenAI"
  ],
  "use_cases": [
    "Schema-constrained data extraction",
    "Validation of generated application data"
  ],
  "pricing_notes": "The open-source software can be run on your own infrastructure. Compute, storage and any external model API usage are separate costs; a managed service is not included.",
  "faq": [
    {
      "q": "Where does Guidance fit in a workflow?",
      "a": "Python library that interleaves generation and control flow while constraining language-model output. Constrain generation with regex and context-free grammars."
    },
    {
      "q": "What costs and limits should I compare before choosing Guidance?",
      "a": "The open-source software can be run on your own infrastructure. Compute, storage and any external model API usage are separate costs; a managed service is not included."
    }
  ],
  "i18n": {
    "zh": {
      "description": "交织生成和控制流、约束语言模型输出的Python库。",
      "overview": "典型用途包括模式约束数据提取、生成式应用数据校验。文档列明的能力包括：用正则表达式及上下文无关文法约束生成；混合循环、条件及模型生成；支持Transformers、llama.cpp和OpenAI等后端。",
      "features": [
        "用正则表达式及上下文无关文法约束生成",
        "混合循环、条件及模型生成",
        "支持Transformers、llama.cpp和OpenAI等后端"
      ],
      "use_cases": [
        "模式约束数据提取",
        "生成式应用数据校验"
      ],
      "pricing_notes": "开源软件可在自己的基础设施运行。计算、存储和外部模型API用量另计，不包含托管服务。",
      "faq": [
        {
          "q": "Guidance适合工作流中的哪个环节？",
          "a": "交织生成和控制流、约束语言模型输出的Python库。 用正则表达式及上下文无关文法约束生成."
        },
        {
          "q": "选择Guidance前应比较哪些费用和限制？",
          "a": "开源软件可在自己的基础设施运行。计算、存储和外部模型API用量另计，不包含托管服务。"
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "依据所记录功能作出的编辑归类，非产品性能实测。"
        },
        "form_factor": {
          "note": "依据所记录功能作出的编辑归类，非产品性能实测。"
        },
        "platforms": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "deployment": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "offline": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "regions": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "api": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "license": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "commercial_use": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "languages": {
          "note": "本条目的来源核查尚未确认这一产品字段。"
        },
        "billing": {
          "note": "依据所记录功能作出的编辑归类，非产品性能实测。"
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "用正则表达式及上下文无关文法约束生成"
        }
      }
    },
    "es": {
      "description": "Biblioteca Python que combina generación y control de flujo con salidas restringidas.",
      "overview": "Usos habituales: Extracción con esquemas; Validación de datos generados. Funciones documentadas: Restricción con regex y gramáticas libres de contexto; Bucles, condicionales y generación combinados; Backends Transformers, llama.cpp y OpenAI.",
      "features": [
        "Restricción con regex y gramáticas libres de contexto",
        "Bucles, condicionales y generación combinados",
        "Backends Transformers, llama.cpp y OpenAI"
      ],
      "use_cases": [
        "Extracción con esquemas",
        "Validación de datos generados"
      ],
      "pricing_notes": "El software abierto puede ejecutarse en infraestructura propia. El cómputo, almacenamiento y las API de modelos se pagan aparte; no incluye servicio gestionado.",
      "faq": [
        {
          "q": "¿En qué parte del flujo encaja Guidance?",
          "a": "Biblioteca Python que combina generación y control de flujo con salidas restringidas. Restricción con regex y gramáticas libres de contexto."
        },
        {
          "q": "¿Qué costes y límites debo comparar antes de elegir Guidance?",
          "a": "El software abierto puede ejecutarse en infraestructura propia. El cómputo, almacenamiento y las API de modelos se pagan aparte; no incluye servicio gestionado."
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "Clasificación editorial de las funciones documentadas; no es una prueba de rendimiento."
        },
        "form_factor": {
          "note": "Clasificación editorial de las funciones documentadas; no es una prueba de rendimiento."
        },
        "platforms": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "deployment": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "offline": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "regions": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "api": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "license": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "commercial_use": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "languages": {
          "note": "La revisión de fuentes de esta entrada no estableció este dato del producto."
        },
        "billing": {
          "note": "Clasificación editorial de las funciones documentadas; no es una prueba de rendimiento."
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "Restricción con regex y gramáticas libres de contexto"
        }
      }
    },
    "fr": {
      "description": "Bibliothèque Python mêlant génération et contrôle de flux sous contraintes.",
      "overview": "Usages courants : Extraction sous contrainte de schéma; Validation des données générées. Fonctions documentées : Contraintes par regex et grammaires hors contexte; Boucles, conditions et génération combinées; Backends Transformers, llama.cpp et OpenAI.",
      "features": [
        "Contraintes par regex et grammaires hors contexte",
        "Boucles, conditions et génération combinées",
        "Backends Transformers, llama.cpp et OpenAI"
      ],
      "use_cases": [
        "Extraction sous contrainte de schéma",
        "Validation des données générées"
      ],
      "pricing_notes": "Le logiciel open source s’exécute sur votre infrastructure. Calcul, stockage et API de modèles externes sont à financer séparément ; aucun service géré n’est inclus.",
      "faq": [
        {
          "q": "Quelle place occupe Guidance dans un parcours de travail ?",
          "a": "Bibliothèque Python mêlant génération et contrôle de flux sous contraintes. Contraintes par regex et grammaires hors contexte."
        },
        {
          "q": "Quels coûts et limites comparer avant de choisir Guidance ?",
          "a": "Le logiciel open source s’exécute sur votre infrastructure. Calcul, stockage et API de modèles externes sont à financer séparément ; aucun service géré n’est inclus."
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "Classement éditorial des fonctions documentées ; aucun test de performance."
        },
        "form_factor": {
          "note": "Classement éditorial des fonctions documentées ; aucun test de performance."
        },
        "platforms": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "deployment": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "offline": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "regions": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "api": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "license": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "commercial_use": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "languages": {
          "note": "L’examen des sources de cette fiche n’a pas établi ce point du produit."
        },
        "billing": {
          "note": "Classement éditorial des fonctions documentées ; aucun test de performance."
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "Contraintes par regex et grammaires hors contexte"
        }
      }
    },
    "ja": {
      "description": "生成と制御フローを組み合わせ、言語モデルの出力を制約するPythonライブラリ。",
      "overview": "主な用途はスキーマ制約によるデータ抽出、生成データの検証です。資料に記載された機能：正規表現と文脈自由文法による生成制約；ループ、条件、モデル生成の組合せ；Transformers、llama.cpp、OpenAIなどのバックエンド。",
      "features": [
        "正規表現と文脈自由文法による生成制約",
        "ループ、条件、モデル生成の組合せ",
        "Transformers、llama.cpp、OpenAIなどのバックエンド"
      ],
      "use_cases": [
        "スキーマ制約によるデータ抽出",
        "生成データの検証"
      ],
      "pricing_notes": "オープンソースソフトウェアは自前の基盤で実行できます。計算資源、ストレージ、外部モデルAPIは別費用で、マネージドサービスは含みません。",
      "faq": [
        {
          "q": "Guidanceはワークフローのどの部分に向いていますか？",
          "a": "生成と制御フローを組み合わせ、言語モデルの出力を制約するPythonライブラリ。 正規表現と文脈自由文法による生成制約."
        },
        {
          "q": "Guidanceを選ぶ前に比較すべき費用や制限は何ですか？",
          "a": "オープンソースソフトウェアは自前の基盤で実行できます。計算資源、ストレージ、外部モデルAPIは別費用で、マネージドサービスは含みません。"
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "記録された機能に基づく編集上の分類であり、性能の実測ではありません。"
        },
        "form_factor": {
          "note": "記録された機能に基づく編集上の分類であり、性能の実測ではありません。"
        },
        "platforms": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "deployment": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "offline": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "regions": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "api": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "license": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "commercial_use": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "languages": {
          "note": "この項目の資料確認では、この製品固有の情報は未確認です。"
        },
        "billing": {
          "note": "記録された機能に基づく編集上の分類であり、性能の実測ではありません。"
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "正規表現と文脈自由文法による生成制約"
        }
      }
    },
    "de": {
      "description": "Python-Bibliothek für kombinierte Generierung und Kontrollflüsse mit Ausgabevorgaben.",
      "overview": "Typische Anwendungen: Schemagesteuerte Datenextraktion; Validierung generierter Daten. Dokumentierte Funktionen: Generierung durch Regex und kontextfreie Grammatiken begrenzen; Schleifen, Bedingungen und Generierung verbinden; Backends wie Transformers, llama.cpp und OpenAI.",
      "features": [
        "Generierung durch Regex und kontextfreie Grammatiken begrenzen",
        "Schleifen, Bedingungen und Generierung verbinden",
        "Backends wie Transformers, llama.cpp und OpenAI"
      ],
      "use_cases": [
        "Schemagesteuerte Datenextraktion",
        "Validierung generierter Daten"
      ],
      "pricing_notes": "Die Open-Source-Software läuft auf eigener Infrastruktur. Rechenleistung, Speicher und externe Modell-APIs kosten separat; ein verwalteter Dienst ist nicht enthalten.",
      "faq": [
        {
          "q": "Wo passt Guidance in den Arbeitsablauf?",
          "a": "Python-Bibliothek für kombinierte Generierung und Kontrollflüsse mit Ausgabevorgaben. Generierung durch Regex und kontextfreie Grammatiken begrenzen."
        },
        {
          "q": "Welche Kosten und Limits sollte ich vor der Wahl von Guidance vergleichen?",
          "a": "Die Open-Source-Software läuft auf eigener Infrastruktur. Rechenleistung, Speicher und externe Modell-APIs kosten separat; ein verwalteter Dienst ist nicht enthalten."
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "Redaktionelle Einordnung dokumentierter Funktionen; kein Leistungstest."
        },
        "form_factor": {
          "note": "Redaktionelle Einordnung dokumentierter Funktionen; kein Leistungstest."
        },
        "platforms": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "deployment": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "offline": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "regions": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "api": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "license": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "commercial_use": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "languages": {
          "note": "Die Quellenprüfung dieses Eintrags hat dieses Produktfeld nicht belegt."
        },
        "billing": {
          "note": "Redaktionelle Einordnung dokumentierter Funktionen; kein Leistungstest."
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "Generierung durch Regex und kontextfreie Grammatiken begrenzen"
        }
      }
    },
    "pt": {
      "description": "Biblioteca Python que combina geração e controle de fluxo com saídas restritas.",
      "overview": "Usos comuns: Extração com restrições de esquema; Validação de dados gerados. Recursos documentados: Restrições com regex e gramáticas livres de contexto; Laços, condicionais e geração combinados; Backends Transformers, llama.cpp e OpenAI.",
      "features": [
        "Restrições com regex e gramáticas livres de contexto",
        "Laços, condicionais e geração combinados",
        "Backends Transformers, llama.cpp e OpenAI"
      ],
      "use_cases": [
        "Extração com restrições de esquema",
        "Validação de dados gerados"
      ],
      "pricing_notes": "O software aberto pode rodar em infraestrutura própria. Computação, armazenamento e APIs externas de modelos têm custos separados; serviço gerenciado não está incluído.",
      "faq": [
        {
          "q": "Em que parte do fluxo Guidance se encaixa?",
          "a": "Biblioteca Python que combina geração e controle de fluxo com saídas restritas. Restrições com regex e gramáticas livres de contexto."
        },
        {
          "q": "Quais custos e limites comparar antes de escolher Guidance?",
          "a": "O software aberto pode rodar em infraestrutura própria. Computação, armazenamento e APIs externas de modelos têm custos separados; serviço gerenciado não está incluído."
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "Classificação editorial dos recursos documentados; não é um teste de desempenho."
        },
        "form_factor": {
          "note": "Classificação editorial dos recursos documentados; não é um teste de desempenho."
        },
        "platforms": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "deployment": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "offline": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "regions": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "api": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "license": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "commercial_use": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "languages": {
          "note": "A revisão de fontes desta entrada não estabeleceu este dado do produto."
        },
        "billing": {
          "note": "Classificação editorial dos recursos documentados; não é um teste de desempenho."
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "Restrições com regex e gramáticas livres de contexto"
        }
      }
    },
    "ko": {
      "description": "생성과 제어 흐름을 결합해 언어 모델 출력을 제약하는 Python 라이브러리입니다.",
      "overview": "주요 용도는 스키마 제약 데이터 추출; 생성 데이터 검증입니다. 문서에 명시된 기능: 정규식과 문맥 자유 문법 생성 제약; 반복문, 조건문, 모델 생성 결합; Transformers, llama.cpp, OpenAI 등 백엔드.",
      "features": [
        "정규식과 문맥 자유 문법 생성 제약",
        "반복문, 조건문, 모델 생성 결합",
        "Transformers, llama.cpp, OpenAI 등 백엔드"
      ],
      "use_cases": [
        "스키마 제약 데이터 추출",
        "생성 데이터 검증"
      ],
      "pricing_notes": "오픈 소스 소프트웨어는 자체 인프라에서 실행할 수 있습니다. 컴퓨팅, 저장 공간, 외부 모델 API 비용은 별도이며 관리형 서비스는 포함되지 않습니다.",
      "faq": [
        {
          "q": "Guidance은(는) 워크플로의 어느 단계에 적합한가요?",
          "a": "생성과 제어 흐름을 결합해 언어 모델 출력을 제약하는 Python 라이브러리입니다. 정규식과 문맥 자유 문법 생성 제약."
        },
        {
          "q": "Guidance 선택 전에 어떤 비용과 제한을 비교해야 하나요?",
          "a": "오픈 소스 소프트웨어는 자체 인프라에서 실행할 수 있습니다. 컴퓨팅, 저장 공간, 외부 모델 API 비용은 별도이며 관리형 서비스는 포함되지 않습니다."
        }
      ],
      "selection_evidence": {
        "tasks": {
          "note": "문서화된 기능에 따른 편집상 분류이며 성능 실측이 아닙니다."
        },
        "form_factor": {
          "note": "문서화된 기능에 따른 편집상 분류이며 성능 실측이 아닙니다."
        },
        "platforms": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "deployment": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "offline": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "regions": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "api": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "license": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "commercial_use": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "languages": {
          "note": "이 항목의 출처 검토에서 해당 제품 정보를 확인하지 못했습니다."
        },
        "billing": {
          "note": "문서화된 기능에 따른 편집상 분류이며 성능 실측이 아닙니다."
        }
      },
      "facts": {
        "guidance.capability.primary": {
          "value": "정규식과 문맥 자유 문법 생성 제약"
        }
      }
    }
  },
  "verification": {
    "last_checked": "2026-11-03",
    "batch": "catalog-500-20261103",
    "source_review": "Official product pages read; no product-performance test.",
    "reviewed_sources": [
      "https://github.com/guidance-ai/guidance",
      "https://guidance.readthedocs.io/"
    ],
    "egress_region": "unknown",
    "owner": "technical",
    "gap_note": "Only documented product scope and supplied claims were reviewed. Fields left unknown were not established for this entry; no launch date, geographic guarantee or licence is inferred."
  },
  "url": "https://globalaiproductindex.com/products/guidance/"
}