Skip to main content

No project description provided

Project description

LcStack

LcStack is a configuration framework for LLM components, designed to quickly build your own LLM Agent and Workflow in a LowCode manner. Built on LangChain and LangGraph, it provides a user-friendly configuration environment and component library to manage the configuration process and Workflow, as well as the ability to integrate with other frameworks.

Key Features

  • Compatible with existing LangChain and LangGraph libraries and frameworks.
  • Includes standard Chains and Agents, with options to add new ones or integrate with other frameworks.
  • Easily set up Agents with essential components like LLM, PromptTemplate, Embedding, etc.
  • Design Workflows using existing Agents and Workflows.
  • Re-organize input/output to match upstream and downstream nodes.
  • Offers a command-line tool for fast testing.

Get Started

Installation

pip install -U lcstack

Usage

Supported Component List

  • Basic components
    • LLM / Chat Model
    • PromptTemplate
    • Embedding
    • VectorStore
    • Memory
    • Tools
  • LangChain Chains
    • LLM Chain
    • Retrieval Chain
    • Document QA
    • LLM Requests Chain
    • SQL Query Chain
    • Router Chain
    • Documents Load Pipeline
    • (More coming soon)
  • LangChain Agents
    • ReAct
    • Supervisor
    • Plan-and-Execute
  • Workflow
    • Node2Node (for single-node processing of non-conditional nodes)
      • Node connection
      • Conditional branch processing and state modification
      • Manually adding execution nodes (not recommended)
    • TODO: Node2Nodes (parallel processing of non-conditional nodes)

Client

# run the llm_chain in llm_chain.yaml
python cli.py -c llm_chain.yaml -i llm_chain -q "what's your name?"

# with intermediate output
python cli.py -c llm_chain.yaml -i llm_chain -q "what's your name?" -v

# run the wf_hierarchical_team in graph_supervisor_header.yaml, `query` as input key, and generate graph image
python cli.py -c wf_hierarchical_team/graph_supervisor_header.yaml -i teams_manager -q "tell me three jokes first, one about dog and two about apple, but only one at a time; and then teach me 2 knowledges, one about dog, and one about apple" -I query -G teams_manager.png
# for help
python cli.py --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcstack-0.1.1.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

lcstack-0.1.1-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file lcstack-0.1.1.tar.gz.

File metadata

  • Download URL: lcstack-0.1.1.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11

File hashes

Hashes for lcstack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01a26eae5eb0c3c894dc593ca5289e67f28fc0943e64b2e0d76943579f62c606
MD5 90acf342d87770fbb4187b3b404820f5
BLAKE2b-256 fa3f0546228a56e5e294d22b26dddaf4f5fc0b0e845ba4ed9f94fe42ab96278b

See more details on using hashes here.

File details

Details for the file lcstack-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lcstack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 70.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11

File hashes

Hashes for lcstack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b48f9241c5830c6334c399adaf8178465029ecb4a9a16c5e3718482946d9a3de
MD5 5fac43f756a6819a3c26b92e7dbe2923
BLAKE2b-256 577b02a471a0ebae550664c8f45a5f29c3273254580ffde52d53497b5278d1c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page