🦜️🔗 LangChain.dart Core
Core package for LangChain.dart.
What is LangChain.dart Core?
LangChain.dart Core contains the core abstractions that power the rest of the LangChain.dart ecosystem as well as LangChain Expression Language (LCEL) as a way to compose them together.
These abstractions are designed to be as modular and simple as possible. Examples of these abstractions include those for language models, document loaders, embedding models, vector stores, retrievers, etc.
LangChain Expression Language (LCEL) is a declarative language for composing components (Runnables) into sequences (or DAGs), covering the most common patterns when building with LLMs.
Depend on this package to build frameworks on top of LangChain.dart or to interoperate with it.
For full documentation see the API reference.
Why build on top of LangChain Core?
The whole LangChain.dart ecosystem is built on top of LangChain Core, so you're in good company when building on top of it. Some of the benefits:
- Modularity: LangChain Core is designed around abstractions that are independent of each other, and not tied to any specific model provider.
- Stability: We are committed to a stable versioning scheme, and will communicate any breaking changes with advance notice and version bumps.
- Battle-tested: LangChain Core components have the largest install base in the LLM ecosystem, and are used in production by many companies.
- Community: LangChain Core is developed in the open, and we welcome contributions from the community.
License
LangChain.dart is licensed under the MIT License.
Libraries
- agents
- Contains core abstractions related to agents.
- chains
- Contains core abstractions related to chains.
- chat_history
- Contains core abstractions related to chat history.
- chat_models
- Contains core abstractions related to chat models.
- document_loaders
- Contains core abstractions related to document loaders.
- documents
- Contains core abstractions related to documents.
- embeddings
- Contains core abstractions related to embeddings.
- exceptions
- Contains core abstractions related to exceptions.
- langchain
- Contains core abstractions related to LangChain.
- language_models
- Contains core abstractions related to language models.
- llms
- Contains core abstractions related to LLMs.
- memory
- Contains core abstractions related to memory.
- output_parsers
- Contains core abstractions related to output parsers.
- prompts
- Contains core abstractions related to prompts.
- retrievers
- Contains core abstractions related to retrievers.
- runnables
- Contains core abstractions related to runnables.
- stores
- Contains core abstractions related to stores.
- tools
- Contains core abstractions related to tools.
- utils
- Contains core utilities.
- vector_stores
- Contains core abstractions related to vector stores.