prompttools  by hegelai

Open-source tools for prompt testing and experimentation

created 2 years ago
2,916 stars

Top 16.7% on sourcepulse

GitHubView on GitHub
Project Summary

PromptTools provides open-source, self-hostable tools for testing, experimenting with, and evaluating Large Language Models (LLMs) and vector databases. It targets developers and researchers seeking to streamline prompt engineering and model performance analysis through familiar interfaces like code, notebooks, and a local playground. The primary benefit is enabling rapid iteration and comparison of prompts and models with integrated visualization of results.

How It Works

The library facilitates structured experimentation by allowing users to define sets of prompts, models, and parameters (e.g., temperature). It abstracts away the complexities of interacting with various LLM APIs (OpenAI, Anthropic, LLaMA.cpp, etc.) and vector databases (Chroma, Weaviate, LanceDB, etc.), providing a unified interface for running and evaluating outputs. Experiments can be executed programmatically and results can be persisted to various formats like CSV, JSON, or MongoDB.

Quick Start & Requirements

Highlighted Details

  • Supports a wide range of LLM providers including OpenAI, Anthropic, HuggingFace, Mistral AI, Google Gemini, and LLaMA.cpp.
  • Integrates with popular vector databases such as Chroma, Weaviate, Qdrant, and LanceDB.
  • Offers experimental support for frameworks like LangChain and LlamaIndex.
  • Includes computer vision model integration for Stable Diffusion.

Maintenance & Community

  • Active development with community contributions welcomed via PRs and issues.
  • Discord server available for communication: https://discord.gg/7KeRPNHGdJ.
  • Usage data is collected via Sentry for error tracking, with an opt-out option via SENTRY_OPT_OUT environment variable.

Licensing & Compatibility

  • License details are available in the LICENSE file. The README mentions gradual release of components and encourages contact for concerns, suggesting potential nuances in licensing across different parts of the project.

Limitations & Caveats

The hosted playground does not support LlamaCpp. The project is undergoing rapid API changes, which may lead to outdated documentation or errors. Sentry usage tracking is enabled by default for error reporting.

Health Check
Last commit

11 months ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
13 more.

llm by simonw

1.3%
9k
CLI tool and Python library for LLM interaction
created 2 years ago
updated 1 month ago
Feedback? Help us improve.