Self-hosted hybrid search for e-commerce
Lexical (BM25) + dense (HNSW, 384-d) + RRF · Explainable ranking · Bitrix & WooCommerce
Landing · Studio · API demo · Pilot guide · API reference
Most storefront search is either keyword-only (misses intent) or a hosted SaaS (data and cost outside your control). EIDOS is an open-source engine you run next to the shop:
| Capability | What you get |
|---|---|
| Hybrid retrieval | BM25+ for SKU/brand/title · HNSW for natural language |
| Fusion | RRF or linear blend; weights tunable without redeploy |
| X-Ray | Per-hit explanation (dense / sparse / business signals) |
| CMS packages | 1C-Bitrix and WooCommerce connectors + storefront widget |
| Ops model | Docker, snapshot + WAL, API keys / roles, Prometheus metrics |
Embeddings run on CPU by default — no required OpenAI or GPU bill for the default path.
Status: pilot-ready core (search API, persistence, auth, connectors, widget, CI). This is not a claim of full parity with Algolia/Constructor enterprise merchandising suites.
| Surface | URL | Role |
|---|---|---|
| Landing | eidos-landing-ppiiyo.vercel.app | Product page + live demo search |
| Studio | eidos-demo.vercel.app | Full UI (Studio / Admin); /v1/* proxied to the API host |
| API host | ai.studio | Long-running search process + persistence |
Try the public demo endpoint (no API key):
curl -s -X POST https://eidos-demo.vercel.app/v1/demo/search \
-H 'Content-Type: application/json' \
-d '{"query":"наушники для бега","topK":5}' | jq '.results[:3] | .[] | {title, price, brand}'Marketing sites call
/v1/demo/searchon the same origin; Vercel rewrites/v1/*to the API host so browsers are not blocked by CORS. Details: docs/LANDING.md.
git clone https://github.com/ppiiyo/EIDOS.git
cd EIDOS
chmod +x deploy/pilot/install.sh
./deploy/pilot/install.sh
curl -s http://localhost:3001/v1/ready
# or: bash scripts/smoke.sh http://127.0.0.1:3001Keys and notes are written under .env.pilot (see script output).
cp .env.example .env # if present; otherwise create .env
# Required (≥24 characters each):
# EIDOS_MASTER_KEY=...
# JWT_SECRET=...
corepack enable && pnpm install
docker compose up --build -d
curl -s http://127.0.0.1:8080/v1/health/ready
bash scripts/smoke.sh http://127.0.0.1:8080API listens on 8080 inside the stack (mapped as in docker-compose.yml). OpenAPI UI: /docs when the server is up.
corepack enable
pnpm install
pnpm --filter @eidos/core build && pnpm --filter @eidos/sdk build
pnpm dev # unified server (see package.json)
pnpm lint && pnpm test- Import catalog — CSV/JSON (CSV contract), YML (
POST /v1/catalog/import-yml), or CMS sync - 1C-Bitrix —
pnpm pack:bitrix→ module underpackages/connectors/bitrix/connectors/bitrix - WooCommerce —
pnpm pack:woo→connectors/woocommerce - Storefront widget
<script
src="https://YOUR_EIDOS_HOST/widget.js"
data-api="https://YOUR_EIDOS_HOST"
data-key="YOUR_SEARCH_KEY"
defer
></script>Step-by-step: docs/PILOT.md · no-code notes: docs/PILOT_NO_CODE.md.
apps/api Fastify API, VectorStore, auth, demo sandbox
apps/workspace React Studio + Admin (Vite)
packages/core HNSW / BM25 / ranking / fusion
packages/sdk TypeScript client
packages/sdk/python Python client
packages/connectors Bitrix & WooCommerce modules
public/widget.js Storefront embed (keep in sync with workspace copy)
landing/ Static product site
Persistence: disk snapshot applied before WAL replay; readiness gate so readers do not see a half-loaded store. The demo tenant is ephemeral and does not mutate production default:default.
Security (high level): API keys with roles (master, admin, merchandiser, search), JWT revocation, rate limits, strict CORS (CORS_ORIGIN), CSP, XXE-safe YML parsing, SSRF guards on URL import. See SECURITY.md.
flowchart LR
Shop[Storefront / CMS] --> W[widget.js / connector]
W --> API[EIDOS API]
API --> L[BM25 lexical]
API --> D[HNSW dense]
L --> F[RRF / linear fusion]
D --> F
F --> X[X-Ray + results]
API --> Disk[(snapshot + WAL)]
| Variable | Purpose |
|---|---|
EIDOS_MASTER_KEY |
Master API key (≥24 chars in production) |
JWT_SECRET |
JWT signing secret (≥24 chars) |
CORS_ORIGIN |
Comma-separated allowed origins (default includes local Studio) |
EIDOS_EMBEDDING_MODE |
Default deterministic for CPU-stable demos/CI |
EIDOS_ENABLE_DEMO_MUTATIONS |
Must be true to allow demo catalog load/reset on a host |
PORT |
API port (default 8080 in container images) |
Full ops: docs/PRODUCTION.md · monitoring: docs/MONITORING.md.
| Method | Path | Notes |
|---|---|---|
POST |
/v1/search |
Hybrid search + optional explanation |
POST |
/v1/demo/search |
Isolated demo index (public demos) |
POST |
/v1/recommend |
Item / adaptive strategies |
POST |
/v1/catalog/upsert |
Admin-authenticated upsert |
GET |
/v1/health, /v1/ready |
Liveness / readiness |
GET |
/metrics |
Prometheus (auth may be required in production) |
OpenAPI: /docs on a running API. Reference: docs/API.md.
corepack enable && pnpm install # lockfile: pnpm-lock.yaml (Fastify 4 / swagger@8)
pnpm --filter @eidos/core build
pnpm --filter @eidos/sdk build
pnpm lint
pnpm test
pnpm benchmark # optional local harness
pnpm pack:bitrix && pnpm pack:woo
bash scripts/smoke.sh http://127.0.0.1:8080CI runs on every push/PR to main:
| Workflow / job | What |
|---|---|
| Typecheck | tsc for core, sdk, api (Node 20) |
| EIDOS CI Pipeline | frozen lockfile install, lint, build, full vitest on Node 20 + 22, core coverage |
| PHP Connectors | php -l, Bitrix autoload, PHPUnit with curl/mbstring/dom |
| Security Audit & SAST | CodeQL + pnpm run security:check + critical audit gate |
| Performance Benchmark | optional / non-blocking harness |
| Restore API sources | auto-heal if a source file is reduced to PLACEHOLDER |
Local verification (same gates as CI typecheck + tests):
pnpm lint && pnpm test # expect 0 tsc errors; 500+ unit/integration tests greenLanding is static HTML under landing/. Production host: Vercel (eidos-landing-ppiiyo.vercel.app).
# Preview locally
npx serve landingStudio app: docs/VERCEL_DEMO.md. Landing proxy notes: docs/LANDING.md.
- Fixed sub-15 ms p95 at 50k–100k SKU on arbitrary VPS sizes
- Feature parity with every hosted merchandising / A-B suite
- Cross-encoder quality unless that path is enabled and measured on your catalog
Measure on your hardware: pnpm benchmark, load-testing/, and /metrics.
| Doc | Contents |
|---|---|
| QUICKSTART.md | Short path to first search |
| PILOT.md | Client pilot checklist |
| PRODUCTION.md | Keys, snapshots, runbook |
| CSV_CONTRACT.md | Import validation rules |
| INTEGRATION.md | CMS / widget integration |
| MIGRATION.md | Moving from other search stacks |
| ARCHITECTURE.md | Deeper design notes |
| RETRIEVAL.md | Ranking / fusion behaviour |
| BENCHMARKS.md | How we measure |
| ROADMAP.md | Planned work |
| CONTRIBUTING.md | How to contribute |
| SECURITY.md | Vulnerability reporting |
MIT © Eidos Team