GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - impossibleG/impossible-embeddings: A self-hosted embedding server with HTTP, gRPC and MCP APIs, verified model installation, batching, health checks, metrics and Windows and Linux releases.

BranchesTags
Open more actions menu

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
config
config
 
 
crates
crates
 
 
docs
docs
 
 
licenses
licenses
 
 
scripts
scripts
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Dockerfile
Dockerfile
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY_LICENSES.txt
THIRD_PARTY_LICENSES.txt
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
deny.toml
deny.toml
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 
rustfmt.toml
rustfmt.toml
 
 

Repository files navigation

Impossible G — Embeddings

Impossible Embedding

Impossible Embedding is a local-first server for dense text embeddings with open models. It owns the operational pieces that are easy to get wrong: verified model installation, bounded dynamic batching, predictable cancellation, readiness, metrics, authentication, and graceful shutdown.

Inference runs locally through ONNX Runtime. Nothing calls OpenAI or any other hosted inference service. POST /v1/embeddings is only a wire-compatible adapter so existing OpenAI-compatible clients can use a local base URL.

A moving field of connected points representing local text embeddings

What is included

  • Native and OpenAI-compatible HTTP APIs, with a checked-in OpenAPI v1 contract.
  • gRPC embeddings, standard gRPC health, and reflection.
  • MCP 2025-03-26 over stateless HTTP and stateful standard input/output.
  • Curated, revision-pinned model manifests with verified downloads and explicit semantic status.
  • Atomic model installation, offline reuse, load/unload/delete operations, and concurrent-use protection.
  • Bounded request sizes, queueing, tokenization, batching, concurrency, and shutdown.
  • Prometheus metrics, structured privacy-safe logs, liveness, readiness, and a small status page.
  • Native Windows and Linux x86-64 release archives and a non-root container recipe.

Quick start from source

Rust 1.85.1 is selected by rust-toolchain.toml. Start the server on explicit loopback addresses:

cargo run --locked --release -- serve \
  --http-bind 127.0.0.1:8080 \
  --grpc-bind 127.0.0.1:50051

In a second terminal, install and load a curated model through the local administration API:

cargo run --locked --release -- models install bge-small-en --server http://127.0.0.1:8080
cargo run --locked --release -- models load bge-small-en --server http://127.0.0.1:8080

Installation is the only model operation that may use the network. It is always explicit, pins the revision and hashes from the curated manifest, and never executes repository code. Once installed, start with --offline to prohibit model network access.

Embed locally:

curl -sS http://127.0.0.1:8080/v1/embeddings \
  -H "content-type: application/json" \
  -d '{"model":"bge-small-en","input":["local embeddings"]}'

The native route at /v1/embed additionally exposes query/document task selection, explicit truncation, supported dimensions, normalization, exact token counts, and immutable resolved model identity. See API examples.

Configuration and security

Configuration precedence is command line, IMPOSSIBLE_* environment variables, TOML, then safe defaults. The example file is config/impossible-embedding.example.toml. The default listeners are loopback-only. A non-loopback listener requires public authentication, separate administration authentication when administration is enabled, or the explicit allow_insecure_remote acknowledgement. Secret values are accepted from environment variables or regular files, never command-line values.

TLS is intentionally not built into the process. For remote access, place the server behind a TLS-terminating reverse proxy or service mesh, retain application authentication, and restrict the admin and metrics routes at the network boundary. See the operations runbook and security policy.

Container

The image runs as an unprivileged user and keeps model data in the explicit /var/lib/impossible-embedding volume. It supports a read-only root filesystem.

docker build -t impossible-embedding .
docker volume create impossible-models
docker run --rm --read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m \
  --mount type=volume,source=impossible-models,target=/var/lib/impossible-embedding \
  impossible-embedding --version

The container keeps the safe loopback listener defaults. Publishing ports requires an explicit non-loopback bind and the authentication policy described in the runbook.

Development

cargo fmt --all -- --check
cargo check --locked --workspace --all-targets
cargo clippy --locked --workspace --all-targets -- -D warnings
cargo test --locked --workspace
pwsh -File scripts/generate-third-party-notices.ps1 -Check
pwsh -File scripts/privacy-scan.ps1

The first build may fetch Rust dependencies and the pinned ONNX Runtime distribution. Tests never download model weights or send inference text over the network. Release details, supported platforms, and honest limitations are documented in compatibility and releasing.

License

Licensed under either Apache License 2.0 or the MIT license, at your option. Distributed third-party components are listed in THIRD_PARTY_NOTICES.md, with their complete deduplicated copyright, notice, and permission texts in THIRD_PARTY_LICENSES.txt.

About

A self-hosted embedding server with HTTP, gRPC and MCP APIs, verified model installation, batching, health checks, metrics and Windows and Linux releases.

impossibleg.org

Topics

embedding-serverembeddingsgrpclocal-aimcponnx-runtimerustself-hostedsemantic-searchvector-search

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

5 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.