# Source: https://dev.writer.com/home/cookbooks.md

> ## Documentation Index
> Fetch the complete documentation index at: https://dev.writer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbooks

[Writer Cookbooks](https://github.com/writer/cookbooks) are step-by-step guides to help you implement tasks and solve common problems using Writer. Each recipe includes code snippets, explanations, and best practices to enhance your understanding of the Writer platform.

## Featured

<CardGroup cols={3}>
  <Card title="Translation tool calling" icon="square-1" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_translation_chat.ipynb">
    Translate conversations between different languages during chat sessions.
  </Card>

  <Card title="Web search tool calling" icon="square-2" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_web_search.ipynb">
    Answer real-time questions by retrieving up-to-date information from the internet during a chat.
  </Card>

  <Card title="Multimodal chat completions" icon="square-3" href="https://github.com/writer/cookbooks/blob/main/completion/multimodal_chat_x5.ipynb">
    Send both text and images in the same message to enable rich, visual conversations with Palmyra X5.
  </Card>
</CardGroup>

## All cookbooks

### Applications

<CardGroup cols={3}>
  <Card title="Working with no-code agents" href="https://github.com/writer/cookbooks/blob/main/applications/application_basic_usage.ipynb">
    Retrieve no-code agent metadata and generate output from them using the Writer SDK.
  </Card>

  <Card title="Knowledge Graph management" href="https://github.com/writer/cookbooks/blob/main/applications/application_graph_management.ipynb">
    Attach a Knowledge Graph to a no-code agent programmatically.
  </Card>

  <Card title="Run no-code agents asynchronously" href="https://github.com/writer/cookbooks/blob/main/applications/application_jobs_utilization.ipynb">
    Run no-code agents asynchronously and manage asynchronous jobs.
  </Card>
</CardGroup>

### Completions

<CardGroup cols={3}>
  <Card title="Text completion" href="https://github.com/writer/cookbooks/blob/main/completion/text_completion.ipynb">
    Use the Writer Python SDK for text completion tasks.
  </Card>

  <Card title="Chat completion" href="https://github.com/writer/cookbooks/blob/main/completion/chat_completion.ipynb">
    Build single-turn and multi-turn chat completions to support conversational AI applications.
  </Card>

  <Card title="Multimodal chat completion" href="https://github.com/writer/cookbooks/blob/main/completion/multimodal_chat_x5.ipynb">
    Send both text and images in the same message to enable rich, visual conversations with Palmyra X5.
  </Card>

  <Card title="Structured completions" href="https://github.com/writer/cookbooks/blob/main/completion/structured_output_cookbook.ipynb">
    Get predictable, machine-readable responses from Palmyra LLMs using JSON Schema or Pydantic objects.
  </Card>
</CardGroup>

### Knowledge Graph

<CardGroup cols={3}>
  <Card title="Knowledge Graph" href="https://github.com/writer/cookbooks/blob/main/knowledge_graph/knowledge_graph.ipynb">
    Use our RAG implementation to create, manage, and use structured data to enhance AI capabilities.
  </Card>

  <Card title="Knowledge Graph tool calling" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_kg.ipynb">
    Access a Knowledge Graph in a chat.
  </Card>
</CardGroup>

### Palmyra models

<CardGroup cols={3}>
  <Card title="List all models" href="https://github.com/writer/cookbooks/blob/main/models/model_retrieval.ipynb">
    List all of the Palmyra models available in the Writer API.
  </Card>

  <Card title="Palmyra Creative" href="https://github.com/writer/cookbooks/blob/main/models/palmyra_creative.ipynb">
    Use the Palmyra Creative model to generate creative content.
  </Card>

  <Card title="Palmyra Fin" href="https://github.com/writer/cookbooks/blob/main/models/palmyra_fin.ipynb">
    Use the Palmyra Fin model for financial analysis and forecasting.
  </Card>

  <Card title="Palmyra Med" href="https://github.com/writer/cookbooks/blob/main/models/palmyra_med.ipynb">
    Use the Palmyra Med model to answer medical questions and analyze medical records.
  </Card>
</CardGroup>

### Tool calling

<CardGroup cols={3}>
  <Card title="Tool calling fundamentals" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_api.ipynb">
    Learn how to use tool calling to enhance the functionality of your LLM.
  </Card>

  <Card title="LLM tool calling" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_llm.ipynb">
    Use model delegation to refer medical questions to the Palmyra Med model during a chat.
  </Card>

  <Card title="Knowledge Graph tool calling" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_kg.ipynb">
    Access a Knowledge Graph in a chat.
  </Card>

  <Card title="Streaming tool calls" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_streaming.ipynb">
    Use tool calling with streaming responses.
  </Card>

  <Card title="Math tool calling example" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_calling_math.ipynb">
    Extend the capabilities of your LLM with predefined mathematical functions.
  </Card>

  <Card title="Translation tool calling" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_translation_chat.ipynb">
    Translate text between different languages in chat completions.
  </Card>

  <Card title="Web search tool calling" href="https://github.com/writer/cookbooks/blob/main/tool_calling/tool_web_search.ipynb">
    Answer real-time questions by retrieving up-to-date information from the internet during a chat.
  </Card>
</CardGroup>

### Tools

<CardGroup cols={3}>
  <Card title="PDF parser" href="https://github.com/writer/cookbooks/blob/main/tools/pdf_parser.ipynb">
    Parse a PDF file and extract the text as text or markdown.
  </Card>
</CardGroup>