What is LLMWare?
LLMWare is a Python framework for building knowledge-based LLM applications that run locally, privately, and securely. It is optimized for AI PCs, laptops, edge devices, and self-hosted deployment across Windows, Mac, and Linux, with support for inference backends like GGUF, OpenVINO, ONNX Runtime, and PyTorch. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Python and licensed Apache-2.0.
Overview
LLMWare is a Python framework for building knowledge-based LLM applications that run locally, privately, and securely. It is optimized for AI PCs, laptops, edge devices, and self-hosted deployment across Windows, Mac, and Linux, with support for inference backends like GGUF, OpenVINO, ONNX Runtime, and PyTorch.
The framework has two main parts. The first is a model catalog with 300+ prepackaged models, including 50+ small, RAG-optimized models from LLMWare's own SLIM, BLING, DRAGON, and Industry-BERT families, plus access to cloud models from OpenAI, Anthropic, and Google. The second is an integrated RAG pipeline that handles parsing, text chunking, embedding, and querying documents so you can connect your own knowledge sources to a model.
What it does
- Model catalog of 300+ models accessed through one consistent interface, covering GGUF, OpenVINO, ONNX Runtime, Hugging Face, Sentence Transformers, and major API-based models
- 50+ small (1-7B parameter) RAG-optimized models (BLING, DRAGON, SLIM, Industry-BERT) designed to run locally with provided context
- Universal ingestion that parses and text-chunks mixed file types including PDF, DOCX, PPTX, XLSX, TXT, CSV, MD, JSON, HTML, and images
- Library construct that organizes a knowledge base and lets you install and mix multiple embedding models and vector databases such as Milvus and ChromaDB
- Flexible querying with text, semantic, hybrid, and metadata filters against an indexed library
- Prompt-with-sources workflow that combines retrieval and inference, with post-inference fact-checking against the source evidence
Getting started
LLMWare is installed from PyPI and runs on Python 3.10 through 3.14. Most use cases work with the minimal base install; a larger install adds commonly used optional libraries.
Install LLMWare
Install the base package, or use the full install to pull in commonly used optional dependencies.
pip3 install llmware
# or, for the larger install with extra libraries:
pip3 install 'llmware[full]'Load a model and run inference
Every model is accessed through the ModelCatalog. Load a small, RAG-optimized model and run an inference with your own context.
from llmware.models import ModelCatalog
my_model = ModelCatalog().load_model("llmware/bling-phi-3-gguf")
output = my_model.inference("what is the future of AI?", add_context="Here is the article to read")Build a knowledge library
Create a library, add a folder of mixed document types (they are parsed, chunked, and indexed automatically), then install an embedding model with a vector database.
from llmware.library import Library
lib = Library().create_new_library("my_library")
lib.add_files("/folder/path/to/my/files")
lib.install_new_embedding(embedding_model_name="mini-lm-sbert", vector_db="milvus", batch_size=500)Prompt with sources
Combine retrieval and inference: load a model into a Prompt, attach a source document filtered by a query, then run the prompt against your knowledge.
from llmware.prompts import Prompt
prompter = Prompt().load_model("llmware/bling-tiny-llama-v0")
source = prompter.add_source_document("/folder/to/one/doc/", "filename", query="fast query")
responses = prompter.prompt_with_source("my query")Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Building private, on-device RAG applications over internal documents such as contracts, invoices, and policies without sending data to the cloud
- Running small, RAG-optimized models locally on a laptop or edge device to keep inference fast and cost-effective
- Creating scalable enterprise knowledge bases that index mixed document types and support semantic and hybrid search
- Automating enterprise tasks by combining knowledge retrieval with LLM inference and post-inference fact-checking against the source evidence
How LLMWare compares
LLMWare alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Dify | ★ 162k | An open-source platform with a visual workflow builder for creating LLM and RAG applications without writing much code. |
| graphify | ★ 155k | Turns a folder of code, docs, PDFs and images into a local knowledge graph with tree-sitter AST parsing and Leiden communities — queryable by agents over MCP, no vector store. |
| RAGFlow | ★ 95k | A RAG engine built around deep document understanding that turns complex files into a grounded, citation-backed question-answering layer. |
| Context7 | ★ 65.7k | Context7 pulls current, version-specific documentation and code examples for any library and feeds them into your LLM, available as a CLI skill or an MCP server. |
| Pathway | ★ 61.9k | A Python framework with a Rust streaming engine that keeps ETL, real-time analytics and RAG pipelines continuously up to date as source data changes. |
| LightRAG | ★ 41k | A graph-based RAG system that builds an entity-and-relationship knowledge graph for fast retrieval and easy incremental updates. |
| PageIndex | ★ 40.8k | PageIndex turns long PDFs into a table-of-contents tree and uses LLM reasoning to retrieve relevant sections, with no vector database and no chunking. |
| LLMWare | ★ 14.8k | Unified framework for building local, private, knowledge-based LLM applications |

