Hyper-Extract is a command-line tool for transforming unstructured text into structured knowledge using large language models, supporting graph, hypergraph, and spatio-temporal extractions.
The tool addresses the challenge of converting raw documents into queryable structured data. It works by leveraging LLMs to parse unstructured text and organize it into hypergraph representations, which capture more complex relationships than traditional graphs. Users can extract knowledge with a single command, then query and visualize the resulting structures. The tool supports multiple LLM providers including OpenAI, Anthropic, Google Gemini, Alibaba Bailian, and DeepSeek, as well as local vLLM deployments, allowing users to choose based on cost and capability requirements.
Hyper-Extract suits projects that need to convert documents into queryable knowledge bases or feed structured data into retrieval-augmented generation systems. It works well for teams already using LLMs who want to avoid building custom extraction pipelines. The tool is particularly valuable when relationships in your data are complex enough that traditional graphs fall short, since hypergraphs can represent higher-order connections. Teams should evaluate provider costs and latency requirements when choosing which LLM backend to pair with the tool, as the README notes that DeepSeek offers cost-effective extraction while OpenAI and Bailian bundle both LLM and embedding capabilities in single APIs.
The project maintains active development with regular updates to its documentation and examples. The codebase includes both command-line and Python API interfaces, giving users flexibility in how they integrate extraction into their workflows. The tool is distributed through standard Python package management and includes comprehensive online documentation covering provider configuration and core concepts.