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. 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 a 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.

Web search tool

from langchain_writer.tools import WebSearchTool
See details.

Translation tool

from langchain_writer.tools import TranslationTool
See details.