ax  by ax-llm

SDK for building LLM-powered agents and workflows, based on DSPy

Created 3 years ago
2,838 stars

Top 16.2% on SourcePulse

GitHubView on GitHub
Project Summary

Ax is a TypeScript framework for building LLM-powered agents and workflows, inspired by the DSPy paper. It offers end-to-end streaming, multi-modal support, and automatic prompt generation from type-safe signatures, aiming to simplify LLM development and reduce token usage. The framework is designed for developers building complex LLM applications, from simple text summarization to multi-agent systems.

How It Works

Ax leverages "prompt signatures" which define inputs and outputs with specific types (string, number, boolean, class, arrays, etc.). These signatures are used to auto-generate prompts, enabling type-safe and efficient LLM interactions. The framework handles parsing, validation, error correction, and function calling natively during streaming, providing a robust and performant experience. It supports a wide array of LLMs and integrates features like RAG, vector databases, and prompt optimization.

Quick Start & Requirements

  • Install: npm install @ax-llm/ax or yarn add @ax-llm/ax
  • Requirements: Node.js environment. Specific LLM providers may require API keys.
  • Example Usage: See the provided TypeScript examples for chain-of-thought, agent building, RAG, and multi-modal interactions.

Highlighted Details

  • Supports a broad range of LLMs including OpenAI, Gemini, Anthropic, Cohere, Mistral, Ollama, and more.
  • Features built-in support for vector databases (in-memory, Weaviate, Cloudflare, Pinecone) and document processing (Apache Tika).
  • Offers advanced prompt tuning capabilities with AxBootstrapFewShot and MiPRO v2 for automated optimization.
  • Integrates with Vercel AI SDK and provides OpenTelemetry tracing for observability.
  • Includes built-in functions for JS interpretation, Docker sandboxing, and embedding adapters.

Maintenance & Community

  • The project appears actively maintained, with a focus on integrating the latest research and LLM capabilities.
  • Community engagement channels are not explicitly listed in the README, but the project's goal is to be a comprehensive, easy-to-use library.

Licensing & Compatibility

  • The README does not explicitly state a license. Users should verify licensing terms before commercial use.

Limitations & Caveats

  • The README does not detail specific limitations or known issues. Users should exercise caution with newer features or less-tested integrations.
Health Check
Last Commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
6 more.

trae-agent by bytedance

0%
12k
LLM-powered CLI for software engineering tasks
Created 1 year ago
Updated 6 months ago
Starred by Elvis Saravia Elvis Saravia(Founder of DAIR.AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
5 more.

activepieces by activepieces

0%
23k
Open-source Zapier alternative for AI workflow automation
Created 3 years ago
Updated 23 hours ago
Feedback? Help us improve.