Skip to main content

3 docs tagged with "tokens"

View all tags

Caching and Cost

Two independent caches matter in a LangChain app, and they solve different problems.

Keywords and Tokens

Tokens are the smallest units of a C++ program. Keywords are reserved words with special meaning that cannot be used as identifiers.

Streaming

stream (sync) and astream (async) yield output incrementally instead of waiting for the whole result. For a chat model alone, that means tokens as they're generated: