nextpy  by dot-agent

Framework for building self-modifying software

Created 2 years ago
2,319 stars

Top 19.7% 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

Inactive

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

Explore Similar Projects

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

prompt-engine by microsoft

0.1%
3k
NPM library for LLM prompt engineering
Created 3 years ago
Updated 2 years ago
Starred by Edward Z. Yang Edward Z. Yang(Research Engineer at Meta; Maintainer of PyTorch), Anton Osika Anton Osika(Cofounder of Lovable), and
3 more.

gptme by gptme

0.3%
4k
CLI tool for terminal agent workflows
Created 2 years ago
Updated 19 hours ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), and
41 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.