CoreQuarry

This is the respositiory for CoreQuarry (re-Isearch+Schmate)

Copyright 2026 Edward C. Zimmermann, NONMONOTONIC Networks, Munich, Germany http://www.nonmonotonic.net

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   <http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Description

While the Industry Consensus clamours towards Multi-Gigawatt datacenters, trillion-dollar market caps, and filling massive warehouses—if not actual outer space—with endless arrays of power-hungry GPUs. Everyone seems busy trying to figure out how to nuclear-power a cluster of 100,000 GPUs just to parse human intent. Scale at all costs.

We, by contrast, are looking the exact opposite way. We want to know: how much production-grade retrieval performance can one extract from the bare metal sitting right in front of us, off-the-grid and entirely sovereign?

The Goal: Squeezing maximum structural intelligence, deterministic precision, and state-of-the-art neural intent out of local, edge, and consumer hardware.

CoreQuarry CoreQuarry is a return to sane systems engineering: maximizing localized hardware to achieve identical semantic depth and absolute structural precision without a cloud tether.

CoreQuarry is not a vector data or RAG framework but a knowledge excavation platform build around a novel hybrid knowledge retrieval engine which emerged in 2026 from Project Schmate (שמאטע) for re-Isearch. It unifies lexical, structural, and semantic search into a single, high-performance platform. Unlike existing vector databases or traditional search engines, it supports true positional indexing, structure-aware queries, and typed object retrieval, enabling precise and contextually-aware search over heterogeneous document corpora. By leveraging memory-mapped, append-only indexes and a two-tier address-based caching system, the engine achieves extremely low memory footprints while scaling to handle complex, hybrid RAG queries on consumer hardware, including laptops and edge devices.

See our Constitution/Manifesto (in docs/CoreQuarryManifesto.pdf)

Uses

This engine enables privacy-preserving, local-first AI retrieval, supporting applications in legal research, medical knowledge, industrial edge AI, and large-scale document analytics. Its small footprint and high flexibility make it uniquely suited for embedded devices, laptops, and offline environments, dramatically lowering the barrier for organizations to implement robust AI-powered search without relying on cloud services.

CoreQuarry is designed to enable highly capable local AI systems with a fraction of the energy consumption of conventional cloud deployments. By enabling operation at any point on the retrieval quality–efficiency frontier, CoreQuarry allows organisations to optimise not only for accuracy and cost, but also for energy consumption, deployment constraints, and digital sovereignty requirements.

Code / Repro

https://github.com/re-Isearch/CoreQuarry

This Repository

This is the main central repository for CoreQuary (re-Isearch) development.

Its builds on three (actually four projects) of our projects: ib (re-Isearch), bert.cpp (our refactored bert.cpp), Schmate (which includes our HNSWlib fork).

bert.cpp in turns builds on the ggml tensor library.

Building, Installing, and Developing

To clone the project along with the absolute latest versions of all internal submodules (Schmate, bert.cpp, and ib), run:

git clone --recurse-submodules --remote-submodules git@github.com:re-Isearch/CoreQuarry.git

1. Build Requirements (GGML Layout)

This project relies on ggml. The submodules (like bert.cpp) look for ggml using a relative symlink pointing up to the root application folder.

To ensure the build system can resolve headers and objects, clone ggml directly into the CoreQuarry root directory alongside your submodules:

# Ensure you are in the CoreQuarry root folder
cd CoreQuarry

# Clone ggml so your submodule symlinks point to the right place
git clone https://github.com/ggml-org/ggml.git

2. Compilation

We use CMake for our build system. Create a build subdirectory to compile the project (easier said than done!):

We expect a compiler that support C++17+

mkdir build && cd build
cmake ..
make

3. Model Installation Paths

Our software looks for .gguf models in specific directories depending on your operating system and configuration.

System-Wide Sharing (Linux)

Models are expected to be stored in /opt/models/gguf. To share access across multiple local development users without permission errors, run:

# Create a dedicated group for managing models
sudo groupadd aimodels

# Add developers to the group (replace <username> with actual names)
sudo usermod -aG aimodels <username1>
sudo usermod -aG aimodels <username2>

# Set up the folder with shared group permissions
sudo mkdir -p /opt/models/gguf
sudo chown -R :aimodels /opt/models/gguf
sudo chmod -R 775 /opt/models/gguf

(Note: Users must log out and log back in for group changes to take effect).

System-Wide Sharing (macOS)

Models are expected to be stored in /Users/Shared/Models/gguf. Set up the directory with shared local permissions by running:

mkdir -p /Users/Shared/Models/gguf
chmod -R 775 /Users/Shared/Models/gguf

User-Specific Models (Linux, Unix, macOS)

If you do not want to install models system-wide, you can place them inside your user home directory instead. The application will automatically check:

~/.ib/models/

📦 Submodules & Dependencies

This project uses bert.cpp, Schmate, and ib as submodules.

First-time Setup

To clone this repository along with all of its required submodules, use:

git clone --recursive <your-repository-url>

Keeping Everything Up to Date

Because the submodules are updated frequently, running a standard git pull on this base repository might leave you with obsolete submodule code.

To forcefully pull the absolute latest updates from the main branches of all subprojects, run:

git submodule update --remote --merge

Thanks

This project was made possible:

NLnet Foundation NGI0 Search     EU