AndreyandClaude Opus 4.8 3a1ae3958e ✨ feat(ai): knowledge retrieval with pgvector (E04 slice 3)
- ADR-HUB-0016: retrieval on PostgreSQL (FTS) + pgvector (semantic); db image
  switched to pgvector/pgvector:pg16, extension enabled via migration
- KnowledgeFragment stores chunks + embeddings (dimension-agnostic vector so
  local and OpenRouter embedding sizes coexist)
- publishing a knowledge version re-chunks and embeds it via the provider
- KnowledgeRetriever: semantic (cosine) primary + lexical (FTS) complementary,
  scoped to the release's pinned knowledge versions
- LlmInvocation records used_fragment_ids (ADR-HUB-0007)
- tests for chunking, indexing, retrieval scope and lexical match

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 19:45:06 +03:00
2026-06-17 18:14:16 +03:00
2026-06-17 18:14:16 +03:00
2026-06-17 18:14:16 +03:00
2026-06-17 18:41:41 +03:00
2026-06-17 18:14:16 +03:00

Edevs Hub

Canonical implementation workspace for hub.edevs.tech.

Local start

Copy-Item .env.example .env
.\scripts\start.ps1

The local compose stack contains:

  • Django ASGI backend and background worker;
  • PostgreSQL;
  • Redis;
  • Internal Hub UI;
  • Checkout UI;
  • Web Chat UI;
  • local Nginx reverse proxy.

No production secrets are stored in the repository.

Default local URLs:

  • Internal Hub UI: http://localhost:5173
  • Django admin: http://localhost:8010/admin/
  • Checkout: http://localhost:5174
  • Web Chat: http://localhost:5175
  • Backend API: http://localhost:8010/api/v1

Create or refresh the local OWNER account:

docker compose run --rm backend python manage.py bootstrap_owner --email owner@edevs.tech --password local-owner-password --name "Иван Петров"

Tests

All suites run in Docker, so no manual environment is required — the test runners auto-detect themselves and relax production hardening (secret-key fail-fast, SSL redirect, throttling) for the duration of the run.

Run everything (backend tests, frontend unit tests, typechecks):

.\scripts\check.ps1

Individual suites:

# Backend (pytest + pytest-django)
docker compose run --rm backend pytest

# Frontend unit tests (vitest)
docker compose run --rm internal-ui npm run test

# End-to-end (Playwright, internal-ui) — auto-starts the dev server
npx playwright install chromium   # one-time
npx playwright test --project=internal-ui

Backend pytest configuration lives in apps/backend/pytest.ini (it must sit next to manage.py so it is also visible inside the backend container).

Languages
Python 54.4%
TypeScript 35.6%
CSS 8.2%
Shell 0.8%
JavaScript 0.6%
Other 0.3%