Skip to main content
Open on GitHub

Writer, Inc.

与 Writer 相关的所有功能

This page covers how to use the Writer ecosystem within LangChain. For further information see Writer docs. Palmyra is a Large Language Model (LLM) developed by Writer, Inc.

The Writer API is powered by a diverse set of Palmyra sub-models with different capabilities and price points.

安装与设置

使用以下命令安装集成包:

pip install langchain-writer

获取一个Writer API密钥并将其设置为环境变量 (WRITER_API_KEY)

聊天模型

from langchain_writer import ChatWriter

查看详细信息

PDF解析器

from langchain_writer.pdf_parser import PDFParser

查看详细信息

文本拆分器

from langchain_writer.text_splitter import WriterTextSplitter

查看详细信息

工具调用

功能

支持通过字典、Pydantic、Python 函数等定义的基本函数调用。

图表

from langchain_writer.tools import GraphTool

查看详细信息

特定作者的远程调用工具