funcchain  by shroominic

SDK for building cognitive systems with Python

Created 2 years ago
339 stars

Top 81.3% on SourcePulse

GitHubView on GitHub
Project Summary

Funcchain provides a Pythonic framework for building cognitive systems by integrating Large Language Models (LLMs) with Pydantic models for structured output. It targets developers looking to seamlessly embed LLM capabilities into their applications, offering a simplified syntax that compiles into Langchain runnables for efficient pipeline execution.

How It Works

Funcchain leverages Pydantic models as output schemas, enabling LLMs to generate data in a structured, type-safe format. It supports OpenAI Functions and LlamaCpp grammars for efficient structured output generation. The library compiles its custom syntax into Langchain Expression Language (LCEL) runnables, allowing for easy invocation, streaming, and batch processing of LLM-driven workflows.

Quick Start & Requirements

Highlighted Details

  • Pythonic syntax with native Python features for prompt definition.
  • Supports dynamic output types, including nested Pydantic models and union types.
  • Integrates vision model capabilities for image analysis.
  • Seamlessly supports local LLMs via Ollama and GGUF downloads from Hugging Face.
  • Offers Langsmith support, auto-retries, and composability with Langchain LCEL.

Maintenance & Community

Licensing & Compatibility

  • MIT License.
  • Permissive license suitable for commercial use and integration into closed-source applications.

Limitations & Caveats

The library relies heavily on the LLM's ability to adhere to the specified output schema; complex or ambiguous schemas may lead to parsing errors or unexpected outputs. While it supports local models, performance and reliability will vary based on the chosen model and hardware.

Health Check
Last Commit

10 months ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Andrew Ng Andrew Ng(Founder of DeepLearning.AI; Cofounder of Coursera; Professor at Stanford), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

vision-agent by landing-ai

0.1%
5k
Visual AI agent for generating runnable vision code from image/video prompts
Created 1 year ago
Updated 2 weeks ago
Feedback? Help us improve.