Skip to main content

English | 简体中文

FlowX

What's FlowX?

FlowX is a lightweight framework for building LLM applications. It offers an API interface similar to LangChain's LCEL, but with a more straightforward and simple internal implementation. Users familiar with LangChain can quickly get started with FlowX and extend or modify it as needed.

For example, FlowX implements the core functionality of LangChain's AgentExecutor in less than 300 lines of code. This is particularly beneficial for users who want to understand the underlying implementation of agents and make further optimizations.

FlowX is also very easy to use, as demonstrated by the following example of an Agent:

from core.tool import tool
from core.llm.openai.openai_llm import OpenAILLM
from core.agents.agent import Agent

llm = OpenAILLM(model="gpt-4o")


@tool
def multiply(left: int, right: int) -> int:
    """multiply"""
    return left * right


agent = Agent(llm=llm, tools=[multiply])
agent.invoke("what's 1024*2024?")

Why do we need FlowX?

Although LangChain provides a powerful framework for building LLM applications, its complex design also brings several issues with deeper use.

LangChain's extensive use of abstraction results in highly complex code, making it difficult to understand and maintain. While it initially simplifies the development process, as the complexity of requirements increases, these abstractions gradually become obstacles to productivity. Additionally, these abstractions increase the learning and debugging burden, forcing development teams to spend significant time dealing with internal framework code rather than focusing on application functionality.

Especially in today's rapidly evolving AI and LLM landscape, where new concepts and methods emerge weekly, a framework that is easy to understand and iterate on quickly is crucial!

To address these issues, FlowX adopts a more concise design with more refined code implementation, balancing abstraction and simplicity by the use of necessary abstractions without being overly complex. Ultimately, FlowX provides the same functionality and similar interfaces as LangChain but with significantly reduced code and fewer abstract concepts. This makes it easy to understand and modify FlowX, allowing for quick experimentation or customized development.

The project is still under development, with more features to be added. Your valuable feedback is welcome!

Metadata

Release files for flowx 0.1.0

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

Source distribution (sdist)

Source distribution for flowx 0.1.0
File Size Uploaded Provenance Actions
flowx-0.1.0.tar.gz 32.5 kB Without provenance Details for flowx-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 75.3 kB

Release files / flowx-0.1.0.tar.gz

Download URL flowx-0.1.0.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
759024c69f36972eeeaa374531e625bb4e89ac966d0da054d95b5b20e1acf986
BLAKE2b-256 checksum
How to use checksums
5e563f67040e2ac80e6e2b9fea7715d3def40f3cde8dab1d2043968025b7a68d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0

Release files / flowx-0.1.0-py3-none-any.whl

Download URL flowx-0.1.0-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f22fc350a427e8f70f628e3413f72354f1f07a9f71159c84be3293453d0667
BLAKE2b-256 checksum
How to use checksums
c90a32195ba0c3909760d3ce095ea20491750aabaf59e92b7bbb845c7974fc2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0

Security for flowx 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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