All functionality related to 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.

Installation and Setup

Install the integration package with
pip install langchain-writer
Get an Writer API key and set it as an environment variable (WRITER_API_KEY)

Chat model

from langchain_writer import ChatWriter
See details.

PDF Parser

from langchain_writer.pdf_parser import PDFParser
See details.

Text splitter

from langchain_writer.text_splitter import WriterTextSplitter
See details.

Tools calling

Functions

Support of basic function calls defined via dicts, Pydantic, python functions etc.

Graphs

from langchain_writer.tools import GraphTool
See details. Writer-specific remotely invoking tool