Description
Promptify is a Python library for NLP tasks that uses large language models to return structured results. You choose a task, such as named entity recognition, classification, question answering, summarisation, relation extraction, SQL generation or topic modelling, and the library builds the prompt, calls the model and returns a Pydantic object with typed fields rather than raw text. The project describes itself as scikit-learn for LLM-powered NLP, and it says most tasks need no training data, just two or three lines of code. Models are reached through LiteLLM, which covers OpenAI, Anthropic, Google, Ollama, Azure and many others, and you change provider by changing the model string. Other features include few-shot examples to improve accuracy, a domain setting for context-aware prompts, batch processing with asynchronous concurrency, async calls, a built-in evaluation framework with precision, recall, F1, accuracy, exact match and ROUGE, and a safe parser that does not use eval. Cost tracking reports token usage and spend. Custom tasks can use any Pydantic schema. The library requires Python 3.9 or later, and evaluation metrics need an extra install. The project is on GitHub and has a community Discord for prompt engineering and LLM research.…
Highlights
- Structured outputs with Pydantic
- Built-in NLP tasks such as NER and classification
- Any model provider through LiteLLM
- Batch and async processing
- Evaluation metrics and cost tracking
Ratings & Reviews
No ratings yet
Be the first to rate Promptify.
People also visit
Promptify FAQ
What is Promptify?
It is a Python library that runs NLP tasks on large language models and returns structured, typed results.
Which tasks does it support?
The README lists named entity recognition, binary and multiclass classification, question answering, summarisation, relation extraction, tabular extraction, SQL generation, text normalisation and topic modelling, plus custom tasks.
Which models can I use?
Any provider that LiteLLM supports, including OpenAI, Anthropic, Google, Ollama and Azure. You change the model string to switch.
Do I need training data?
The README says most tasks need no training data, so you can start with two or three lines of code.
How do I install it?
Install with pip. Python 3.9 or later is required, and evaluation metrics need an extra install.
Is it free?
Yes. Promptify is open source on GitHub.
What are the best Promptify alternatives?
Popular alternatives to Promptify include Prompttools, PromptLayer and Promptotype. See all Promptify alternatives




