synalinks  by SynaLinks

LM framework for neuro-symbolic systems and in-context RL

created 6 months ago
285 stars

Top 92.8% on sourcepulse

GitHubView on GitHub
Project Summary

SynaLinks is a production-first framework for building, evaluating, training, and deploying neuro-symbolic Language Model (LM) applications. It targets professionals, researchers, and developers, offering a progressive disclosure of complexity to simplify basic workflows while enabling advanced system development. The framework enhances LM predictions and accuracy using in-context reinforcement learning and constrained structured output without altering model weights.

How It Works

SynaLinks adapts Keras 3 principles for neuro-symbolic systems and in-context reinforcement learning. It allows users to define LM applications as programs, composed of modular components like Input, Generator, and Sequential. These programs can be built using functional, subclassing, or mixed APIs, facilitating structured data handling via Pydantic models and seamless integration with various LM providers (Ollama, OpenAI, Anthropic, Mistral, Groq) through LiteLLM.

Quick Start & Requirements

  • Install: uv pip install synalinks
  • Run: uv run synalinks init
  • Prerequisites: Python, uv (recommended).
  • Documentation: Documentation
  • Code Examples: Code Examples

Highlighted Details

  • Integrates multiple LM providers (Ollama, OpenAI, Anthropic, Mistral, Groq) via LiteLLM.
  • Supports in-context reinforcement learning for prompt optimization and constrained structured output for correctness.
  • Offers serialization to JSON for versioning with Git and FastAPI compatibility for REST API deployment.
  • Includes built-in metrics, rewards, and optimizers for application assessment and training.
  • Provides visualization tools for program structure and training history.

Maintenance & Community

  • Active development with a Beta release status.
  • Community support via Discord.
  • Inspired by Keras, DSPy, Pydantic, and LiteLLM.

Licensing & Compatibility

  • License: Apache-2.0.
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

The framework is in Beta, indicating potential for breaking changes or undiscovered issues. The core team aims to keep the library minimal, which may mean contributions for additional modules, metrics, or optimizers require approval.

Health Check
Last commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
5
Issues (30d)
6
Star History
89 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
2 more.

maestro by roboflow

0.1%
3k
CLI/SDK for fine-tuning multimodal models
created 1 year ago
updated 5 days ago
Starred by Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake) and Travis Fischer Travis Fischer(Founder of Agentic).

lingua by facebookresearch

0.1%
5k
LLM research codebase for training and inference
created 9 months ago
updated 2 weeks ago
Starred by Logan Kilpatrick Logan Kilpatrick(Product Lead on Google AI Studio), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
3 more.

catalyst by catalyst-team

0%
3k
PyTorch framework for accelerated deep learning R&D
created 7 years ago
updated 1 month ago
Feedback? Help us improve.