개요
Outlines는 Python 라이브러리로, 대규모 언어 모델이 지정된 구조(예: JSON, 정규 표현식 또는 Pydantic 모델)에 맞는 출력을 생성하도록 보장합니다. 다양한 모델 백엔드를 지원하며, 기존 워크플로우와 원활하게 통합됩니다.
README 미리보기
\n\n\n\n\n\n 🗒️ *Structured outputs for LLMs* 🗒️\n\nMade with ❤👷️ by the team at [.txt](https://dottxt.co)\nTrusted by NVIDIA, Cohere, HuggingFace, vLLM, etc.\n\n\n[![PyPI Version][pypi-version-badge]][pypi]\n[![Downloads][downloads-badge]][pypistats]\n[![Stars][stars-badge]][stars]\n\n\n[![Discord][discord-badge]][discord]\n[![Blog][dottxt-blog-badge]][dottxt-blog]\n[![Twitter][twitter-badge]][twitter]\n\nThe .txt API is currently in early access. **[Request access here →](https://h1xbpbfsf0w.typeform.com/to/fwQNWmS8?utm_source=github&utm_medium=organic&utm_campaign=outlines)**\n\n\n\n\n## 🚀 Building the future of structured generation\n\nWe're working with select partners to develop new interfaces to structured generation.\n\nNeed XML, FHIR, custom schemas or grammars? Let's talk.\n\nAudit your schema: share one schema, we show you what breaks under generation, the constraints that fix it, and compliance rates before and after. Sign up [here](https://h1xbpbfsf0w.typeform.com/to/rtFUraA2?typeform).\n\n## Table of Contents\n\n- [Why Outlines?](#why-outlines)\n- [Quickstart](#quickstart)\n- [Real-World Examples](#real-world-examples)\n - [🙋♂️ Customer Support Triage](#customer-support-triage)\n - [📦 E-commerce Product Categorization](#e-commerce-product-categorization)\n - [📊 Parse Event Details with Incomplete Data](#parse-event-details-with-incomplete-data)\n - [🗂️ Categorize Documents into Predefined Types](#categorize-documents-into-predefined-types)\n - [📅 Schedule a Meeting with Function Calling](#schedule-a-meeting-with-function-calling)\n - [📝 Dynamically Generate Prompts with Re-usable Templates](#dynamically-generate-prompts-with-re-usable-templates)\n- [They Use Outlines](#they-use-outlines)\n- [Model Integrations](#model-integrations)\n- [Core Features](#core-features)\n- [Other Features](#other-features)\n- [About .txt](#about-txt)\n- [Community](#community)\n\n\n\n## Why Outlines?\n\nLLMs are powerful but their outputs are unpredictable