langchain/templates/extraction-anthropic-functions
David Duong d39b4b61b6
Batch apply poetry lock --no-update for all templates (#12531)
Ran the following bash script for all templates

```bash
#!/bin/bash

set -e
current_dir="$(pwd)"
for directory in */; do
    if [ -d "$directory" ]; then
        (cd "$directory" && poetry lock --no-update)
    fi
done

cd "$current_dir"
```

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-10-30 15:18:53 -07:00
..
extraction_anthropic_functions notebook fmt (#12498) 2023-10-29 15:50:09 -07:00
tests various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
extraction_anthropic_functions.ipynb notebook fmt (#12498) 2023-10-29 15:50:09 -07:00
LICENSE various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
poetry.lock Batch apply poetry lock --no-update for all templates (#12531) 2023-10-30 15:18:53 -07:00
pyproject.toml various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
README.md various templates improvements (#12500) 2023-10-28 22:13:22 -07:00

Extraction with Anthropic Function Calling

This template enables Anthropic function calling. This is a wrapper around Anthropic's API that uses prompting and output parsing to replicate the OpenAI functions experience.

Specify the information you want to extract in chain.py

By default, it will extract the title and author of papers.

LLM

This template will use Claude2 by default.

Be sure that ANTHROPIC_API_KEY is set in your enviorment.