Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bunx tsc --noEmit
- run: bun run lint
- run: bun run test
- run: bunx prettier --check src tests
- run: bunx prettier --check .
- run: bun run build
- name: Import packed dist with Node
run: |
Expand Down
16 changes: 8 additions & 8 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ built on it. There is no provider registry. Every call is HTTP POST to

Callers import from `@corbits/embedding`. The barrel is the public surface:

| Export | Role |
| --- | --- |
| `embedTexts` | Batch texts, post sequentially, return `number[][]` in input order |
| `probeEmbedDims` | Embed one probe string; report the vector length that came back |
| `EmbedConfig` / `EmbedConfigSchema` | Endpoint, model, and optional knobs |
| `EmbedOptions` | Optional harness deps, retry, `Retry-After` override, abort |
| `RequestDependencies` / `RetryAfterExtractor` | Types of the `EmbedOptions` fields |
| `EmbeddingRequestError` | Every request failure — `reason` is the classified `InferenceError` |
| Export | Role |
| --------------------------------------------- | ------------------------------------------------------------------- |
| `embedTexts` | Batch texts, post sequentially, return `number[][]` in input order |
| `probeEmbedDims` | Embed one probe string; report the vector length that came back |
| `EmbedConfig` / `EmbedConfigSchema` | Endpoint, model, and optional knobs |
| `EmbedOptions` | Optional harness deps, retry, `Retry-After` override, abort |
| `RequestDependencies` / `RetryAfterExtractor` | Types of the `EmbedOptions` fields |
| `EmbeddingRequestError` | Every request failure — `reason` is the classified `InferenceError` |

The JSON transport (`runJSONRequest`) is private.

Expand Down
10 changes: 5 additions & 5 deletions IMPLEMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ bun add @corbits/embedding

## Dependencies

| Package | Use |
| --- | --- |
| Package | Use |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `@intx/inference` (peer, `^0.4.0`) | `BuiltRequest`, `createDefaultRetryPolicy`, error classifiers, `createDefaultScheduler` (caller-side) |
| `@intx/types` (peer, `^0.4.0`) | `RetryPolicy`, `InferenceError` |
| `arktype` | `EmbedConfigSchema` and the embeddings reply shape |
| `@intx/types` (peer, `^0.4.0`) | `RetryPolicy`, `InferenceError` |
| `arktype` | `EmbedConfigSchema` and the embeddings reply shape |

Dev: `@intx/inference`, `@intx/types` and `@intx/inference-testing` pinned at 0.4.0, `@types/bun`, `prettier`, `typescript` 5.9.
Dev: `@intx/inference`, `@intx/types` and `@intx/inference-testing` pinned at 0.4.0, `@types/bun`, `eslint` with `@eslint/js`, `typescript-eslint` and `jiti`, `prettier`, `typescript` 5.9.

## HTTP

Expand Down
Loading
Loading