prompttools is an open-source, self-hostable toolkit created by Hegel AI for experimenting with, testing, and evaluating prompts, large language models (LLMs), and vector databases. Its core idea is to let developers complete evaluation work through familiar interfaces (code, Notebook, local Playground).
Purpose and main capabilities: With just a small amount of code, you can test prompts and parameters across different models (such as OpenAI, Anthropic, LLaMA), and evaluate the retrieval accuracy of vector databases. Supported LLM integrations include OpenAI (Completion, ChatCompletion, fine-tuned models), LLaMA.Cpp (LLaMA 1, LLaMA 2), HuggingFace (Hub API, Inference Endpoints), Anthropic, Mistral AI, Google Gemini, Google PaLM (legacy), Google Vertex AI, Azure OpenAI Service, Replicate; Ollama is still under development. Vector databases and data tools support Chroma, Weaviate, Qdrant, LanceDB, Pinecone, LangChain, MindsDB, Milvus is exploratory support, LlamaIndex is exploratory support, and Epsilla is still under development. For computer vision, Stable Diffusion and Replicate-hosted Stable Diffusion are supported.
How to use: You can install prompttools via pip and run simple examples; you can also run Notebooks in Google Colab. If using the Playground interface, you can first start the relevant command, then clone the git repository and start the Streamlit app; the official project also provides a hosted Playground on Streamlit Community Cloud, but the hosted version does not support LlamaCpp. The complete API reference and descriptions of each component are available on its documentation website.
Data and privacy: The source code runs on the user's local machine, and calls to LLM APIs are made directly from the local machine without forwarding; API keys and LLM inputs and outputs are stored locally, and personally identifiable information is not collected. To improve the experienceexperience, error data from normal use is collected and sent to the third-party error tracking service Sentry, recording only the library's own operations, and you can opt out by setting the environment variable SENTRY_OPT_OUT.
Result persistence: You can use Experiment's to_csv, to_json, to_lora_json, or to_mongo_db methods to export test and experiment results; more persistence features are still under development.
Limitations and notes: The project's API changes quickly, and there may be errors caused by oversight or outdated documentation; some integrations are still in development or exploratory stages. For specific installation commands, example code, and startup commands, please refer to the official repository and documentation; this material does not provide complete command details.