Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatOutlines | langchain-community | ✅ | ❌ | ❌ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
Setup
Outlines 모델에 액세스하려면 huggingface에서 모델 가중치를 다운로드하기 위한 인터넷 연결이 필요합니다. 사용하는 backend에 따라 필요한 종속성을 설치해야 합니다(Outlines docs 참조).Credentials
Outlines에는 내장된 인증 메커니즘이 없습니다.Installation
LangChain Outlines integration은langchain-community 패키지에 포함되어 있으며 outlines 라이브러리가 필요합니다:
Instantiation
이제 model 객체를 인스턴스화하고 chat completion을 생성할 수 있습니다:Invocation
Streaming
ChatOutlines는 token streaming을 지원합니다:Chaining
Constrained Generation
ChatOutlines를 사용하면 생성된 출력에 다양한 제약 조건을 적용할 수 있습니다:Regex Constraint
Type Constraints
Pydantic and JSON Schemas
Context Free Grammars
LangChain’s Structured Output
LangChain의 Structured Output을 ChatOutlines와 함께 사용할 수도 있습니다:API reference
모든 ChatOutlines 기능과 구성에 대한 자세한 문서는 API reference를 참조하세요: python.langchain.com/api_reference/community/chat_models/langchain_community.chat_models.outlines.ChatOutlines.htmlFull Outlines Documentation
dottxt-ai.github.io/outlines/latest/Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.