Middleware coordinates.
The entry point for searching and managing collections. It checks requests, calls the right services, and assembles the results.
Search your documents with local AI models and Qdrant. Connect an application, or let an AI agent ask in plain language. Keep the search on your computer or private network.
You choose the data boundary. Host Qdrant and your agent’s language model locally to keep the full workflow on your own infrastructure. A cloud-backed agent can receive your questions and returned passages. See the three setups ↓
Think of an archive: one desk handles requests, a specialist understands the text, and a catalog finds the promising passages.
The entry point for searching and managing collections. It checks requests, calls the right services, and assembles the results.
Local models turn text into numerical representations and give promising matches a second, closer reading.
A vector database stores passage text, metadata and vectors. It searches for both meaning and vocabulary signals, then combines the rankings.
An optional MCP server exposes these operations as tools. An optional skill teaches the agent how to use them. The core search stack works without either.
Understand the differenceFollow an agent searching a pre-indexed collection of team documents. Each step shows who acts and what crosses the next connection.
An AI agent turns your request into a plan. If its host loads the supplied skill, the agent gets guidance on choosing tools, checking the collection and using the results.
Agent host · optional skill instructions“Find our remote-work policy and show me the source.”
Check the collection.
Search before answering.
Keep the source.
The agent’s language model can be local or cloud-hosted.
The connected client exposes the search tool to the agent. The MCP server translates a structured tool call into a request to the middleware.
MCP server · optional tool bridgeThe MCP server never calls Qdrant or Smart Embedder directly.
The middleware checks access, validates the request and coordinates the services. Your application or the local console can also use this API directly, without MCP.
Middleware · authentication and orchestrationSmart Embedder converts the question into a dense vector for meaning and a learned sparse vector for vocabulary signals. The chosen models run on your CPU or NVIDIA GPU.
Smart Embedder · local inferenceA compact numerical representation
Selected, weighted vocabulary signals
Illustrative vectors. The collection must use the same embedding contract.
Qdrant searches the collection’s dense and sparse vectors, then fuses the rankings. The middleware receives a shortlist with the stored passage text and source metadata.
Qdrant · storage, retrieval and fusionPassages and source labels are fictional examples.
The middleware sends a limited window to Smart Embedder’s reranker. It returns ordered results through MCP to the agent, which can use those passages to compose a sourced answer.
Embedder → Middleware → MCP → Agent“Team members may work remotely under their team’s agreed schedule. Confirm the arrangement with your manager.”
Your agent receives the excerpt and its source. With a cloud-backed agent, this information may leave your local infrastructure.
Explore where the components live, which models run, and which information crosses the boundary. These choices are independent.
Two independent choices. Both model profiles support both hardware options. Evaluate the model families on your own documents to find the best fit for your searches.
An interactive explanation.
These controls do not change your stack.
↑ Questions + tool results ↓ Model responses
Passage text, metadata and vectors stay in your local Qdrant instance.
This assumes Qdrant and your agent’s model run locally too. Keep any additional agent tools and data sharing inside the same boundary.
Both embedding and reranking run on CPU. The autotuner chooses a suitable local runtime and conservative batching for your hardware.
Storage follows Qdrant. The stack connects to the Qdrant instance you configure, or starts one beside the middleware when QDRANT_BUNDLED=true. To keep stored data local, use your own PC or an internal server.
First-run preparation needs downloads. Container images, dependencies and pinned model weights must be available. Once prepared, embedding and reranking have no hosted inference dependency.
Keep the services and Qdrant on trusted infrastructure, control who can connect, and use an agent whose model and external integrations fit that boundary. The embedder host port binds to loopback. The middleware and MCP bind to loopback by default and can be published to an allowed private IPv4 address for authenticated trusted clients; neither is a public internet endpoint. A remote agent needs a supported private connection, VPN or authenticated tunnel.
The supplied template permits unauthenticated local access. Authentication depends on each service’s configured credentials and authentication mode. Follow the deployment configuration reference before enabling access from other machines. Connecting a cloud-backed agent does not move the vector database to the cloud, but selected tool results and conversation content may be processed by the model provider. A desktop agent app can still use a cloud model.
You describe the task in ordinary language. The agent uses its model to choose an available tool, supplies structured arguments, and interprets the response.
The optional MCP server exposes the middleware as 28 tools, plus documentation, live-state resources and workflow prompts. It gives a compatible agent a defined way to search, inspect and manage your collections.
MCP connection reference ↗The supplied skill teaches tool selection, search tuning and careful workflows. It is Markdown loaded by the agent host, not a container or a model. It complements the MCP tools; installing it alone does not create a connection.
Client-side skill reference ↗“Find our remote-work policy and show me the source.”
The agent knows the target collection is team_docs. The documents have already been indexed.
Search the collection with hybrid retrieval and reranking, then inspect the returned text and source metadata.
Ranked passages with source IDs and scores. The agent can cite those sources when composing an answer.
Agent → MCP → Middleware → local models + Qdrant → returned evidence
The skill helps; the server enforces. Skills guide model behaviour, while authentication, input checks and implemented confirmation gates live in the services. Destructive actions need an intentional user-approved workflow; a skill is not an access-control boundary.
You connect the agent host. Configure its supported MCP connection, make the private endpoint reachable, authenticate, then load the skill if the host supports it. This stack supplies search tools, not the agent’s conversational language model.
Dense and sparse retrieval find candidates; reranking gives the shortlist a closer look. The runtime is prepared for the model profile and machine you choose.
Basic pairs BGE-M3 with a BGE reranker. Advanced combines Qwen dense embeddings, MILCO learned sparse embeddings and a Qwen reranker. Both serve this dense + sparse + rerank workflow. Meet the models in each profile ↗.
CPU execution needs no GPU. A compatible NVIDIA GPU can accelerate inference. Advanced also supports CPU, with conservative batching; actual speed and capacity depend on your hardware and workload.
A pre-start autotuner checks runtime candidates, batching and memory against quality and stability gates. Decisions are saved per profile and recalibrated when the hardware/software fingerprint changes.
Prepare the collection before askingDocuments need passages, vectors and source metadata stored in Qdrant. Search reuses those vectors. File staging and document preparation are operator steps; MCP is not a general filesystem or document-parsing service.
Changing profiles changes the vector spaceThe profile is selected at startup, not switched live. Collections carry an embedding contract; a profile mismatch is reported as incompatible. Use a compatible collection and a supported re-embedding or reindex workflow.
A running program with a specific job and an interface other programs can call. Here, the middleware, Smart Embedder and optional MCP server have separate container images. Qdrant is a separately provided database.
An application that uses a language model to interpret a task and choose actions through tools. Its host manages connections and context. The model can run locally or with an external provider; that choice matters for privacy.
The Model Context Protocol is a standard for connecting AI applications to tools and context. This repository’s MCP server exposes middleware operations over streamable HTTP. Using HTTP does not by itself mean using the public internet.
Instructions and reference material that a compatible agent host can load. This repository’s skill explains how to use its MCP tools. It does not run the embedding models, store documents or grant permission by itself.
The embedding and reranking models run on your hardware. For the whole workflow to remain within your PC or private network, Qdrant, the agent model and any external integrations must also stay within that boundary. Model downloads during setup are different from sending document text to a hosted inference service.
Smart Embedder produces vectors and reranker scores. Qdrant stores the passage vectors and text, retrieves candidates using dense and sparse search, and fuses the rankings. The middleware coordinates the two services.
Checked against the repository’s service references and the linked primary documentation. This page is an offline explanation; it does not inspect your machine, connect to your services, or change their configuration.