prompttools  by hegelai

Open-source tools for prompt testing and experimentation

Created 2 years ago
2,932 stars

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

1 year ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), and
9 more.

lilac by databricks

0.1%
1k
Data exploration tool for LLM dataset curation and quality control
Created 2 years ago
Updated 1 year ago
Starred by Rodrigo Nader Rodrigo Nader(Cofounder of Langflow), Shizhe Diao Shizhe Diao(Author of LMFlow; Research Scientist at NVIDIA), and
11 more.

Awesome-LLM by Hannibal046

0.3%
25k
Curated list of Large Language Model resources
Created 2 years ago
Updated 1 month ago
Feedback? Help us improve.