nextpy  by dot-agent

Framework for building self-modifying software

created 2 years ago
2,304 stars

Top 20.2% on sourcepulse

GitHubView on GitHub
Project Summary

Nextpy is a Python framework for building self-modifying AI applications, targeting developers who want more control over LLM interactions and code generation. It aims to improve LLM efficiency and output accuracy through a novel prompt engine and session state management, offering a faster alternative to existing frameworks like Streamlit.

How It Works

Nextpy employs a "compile-time" prompt processing approach to reduce redundant LLM calls. It maintains session state with LLMs, leveraging KV caches for optimized token generation, particularly beneficial for open-source models. The framework also includes features like speculative sampling (WIP) for faster token generation and syntax error detection for LLM-generated code, aiming for more robust and efficient AI outputs.

Quick Start & Requirements

  • Install via pip: pip install nextpy
  • Requires Python 3.7+.
  • See nextpy.org for demos and documentation.

Highlighted Details

  • Claims 4-10x faster performance than Streamlit apps, with a reported PageSpeed score of 99/100.
  • Integrates components from Guidance, DSPy, Llama-Index, LangChain, ReactPy, and others.
  • Features a generative UI module using forked versions of Reflex, Reacton, and Solara.
  • Allows agents to be exported as .agent or .robot files for cross-platform execution.

Maintenance & Community

The project is currently in an "early stage" ("just for friends") and actively seeking feedback and contributions. Links to community channels are not explicitly provided in the README.

Licensing & Compatibility

The README does not explicitly state a license. Given the project's early stage and reliance on other open-source projects, users should verify licensing compatibility for commercial or closed-source use.

Limitations & Caveats

The project is explicitly stated to be in an "early stage" and "just for friends," indicating potential instability, incomplete features, and a small contributor base. Speculative sampling is marked as "WIP" (Work In Progress).

Health Check
Last commit

1 year ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Jared Palmer Jared Palmer(Ex-VP of AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

promptable by cfortuner

0%
2k
TS/JS library for building full-stack AI apps
created 2 years ago
updated 2 years ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake), and
21 more.

guidance by guidance-ai

0.1%
21k
Guidance is a programming paradigm for steering LLMs
created 2 years ago
updated 1 day ago
Feedback? Help us improve.