Skip to main content

Welcome to Langtree!

What is Langtree

Langtree is a micro framework for building natively parallel LLM chains. Our goal is to keep the core of this repo under 100 LOC (not including test cases).

Why use Langtree?

Langtree is dead simple. It's under 100 LOC for the core of the project. Seriously. Theres only 3 constructs: Operators, Buffers, and Prompts.

This means the following capabilities are trivial:

  1. Debuggability: Langtree is insanely debuggable. It's so minimal that the underlying api's are almost identical to those exposed by our integrations. For example, the messages field on the OpenAIChat object is the exact field that is passed to the underlying api.
  2. Natively Parallel: A common issue with LLM tools is parallelism. With Langtree, doing this is a piece of cake. This means Agents, retrieval, etc. are far quicker to iterate upon. Make sure to read the docs before using the parallel tools
  3. Langchain Interoperable: Langtree can be used with Langchain. Although we are opinionated about Langtree, Langchain offers a LOT of value.
  4. Back Compatibility: Expect Langtree to be extremely stable. Its so flexible that it actually adjusts when integrations change. It's only this capable because it is minimal. This is why we are commited to keeping the core library under 200 LOC. Forever.

Features

Chain recording

We offer a simple abstraction to record analytics on any chain (Including Langchain code)

We currently only have recording to JSON but expect to see more by 08/11/23

Providers

Models: We currently support OpenAI.

Roadmap

Function Calling: We plan to support function calls in the VERY near future.

Models: To support Azure, Huggingface (local and remote), Anthropic and Cohere

VectorDBs: Currently in development. Again we promise to maintain minimal levels of abstraction.

Recording: We are in the process of implementing S3, Planetscale, and more!

Metadata

Release files for langtree 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langtree 0.1.1
File Size Uploaded
langtree-0.1.1.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langtree 0.1.1
File Interpreter ABI Platform
langtree-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / langtree-0.1.1.tar.gz

Download URL langtree-0.1.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
790853d34cbc4bfd1aaf25b53dc2d3f0b9ce660bf15137fd1516587f3fc22712
BLAKE2b-256 checksum
How to use checksums
45ff0ba4991278958b8d351ab6116073c2ab4445d42983b592d4c2e27946960e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / langtree-0.1.1-py3-none-any.whl

Download URL langtree-0.1.1-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01fabfa1098d299cb2860f1ab1af7425c0e25d13c61388ca50cdba82ca00014e
BLAKE2b-256 checksum
How to use checksums
ce8925a58f40540453e431c042b21cda7ec3987670d84061e878b2770cedfe06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page