Commit Graph
5223 Commits
Author SHA1 Message Date
Alex de22be5a21 fix: chunk-budget blowups, FastEmbed built-ins, and re-embed gaps
Follow-up review pass over the embeddings branch.

- Fold an oversized header back into the body, and drop header duplication
  when it would leave under a quarter of the chunk budget. A header at or
  over max_tokens collapsed the body budget to one token, so a document
  became one chunk per body token, each still over the cap: a 95 KB file
  produced 20k chunks of 2563 tokens against a 1250 cap. Also clamp
  max_tokens to at least 1, as the strategy chunkers already do.
- Emit a header-only document as its own chunk. With no body piece to
  attach it to, splitting returned nothing and the document was dropped
  from the index with no error and no log line.
- Skip add_custom_model for a repository FastEmbed already ships. It
  rejects a name it knows, so configuring any of its ~30 built-ins
  (MiniLM, bge, e5, gte, ...) failed every embed call and every query.
- Decide "the user chose this model" by comparing against the field
  default rather than model_fields_set, which is true for anything read
  from .env. Every setup script has always written EMBEDDINGS_NAME, so an
  upgraded remote-embeddings install inherited mpnet's 384-token window
  and silently clipped ~80% off every chunk.
- Cut tiktoken splits at character offsets instead of decoding each token
  window. A multi-byte character straddling a boundary decoded to U+FFFD
  on both sides, destroying one character at roughly one boundary in five
  on CJK text -- including at the default max_tokens of 2000.
- Let the re-embed script open a FAISS index whose width does not match
  the configured model. That mismatch is the main reason to run it, and
  the error recommending the script was raised by the script itself, so
  the advice failed on every source.
- Re-embed graph_nodes.name_embedding when GraphRAG is enabled. Those
  vectors seed every traversal and share the chunk vectors' width, so a
  same-width model swap left the graph retrieving from the old space with
  nothing to report it.
- Prefetch the models before copying the application source, so editing
  any file no longer re-downloads ~780 MB of artifacts on every build.
- Mirror the setup.sh embedding menu into setup.ps1: granite default,
  legacy mpnet as an explicit option, and both engine flows updated.
  Windows users were otherwise stranded on mpnet with no granite path.
- Drop the unused EmbeddingsWrapper.tokenizer property.
2026-08-27 15:55:21 +01:00
Alex 25e07f5cee fix: embeddings registry edge cases and chunk-size accounting
Follow-up to the embeddings work, from a review pass over the branch.

- Route the OpenAI/Azure key handling through the model registry instead of
  matching the canonical name literally, so the `text-embedding-ada-002`
  alias the registry now accepts also reaches the Azure deployment name
  rather than failing every embed with DeploymentNotFound.
- Fall back to a default width where the embeddings model reports no
  dimension. A model outside the registry returns None rather than no
  attribute, so `getattr` with a default did not catch it and the width
  reached the DDL as `vector(None)` / `list_size=None`.
- Point HF_HUB_CACHE at the prefetch directory. Chunking loads the tokenizer
  through `tokenizers`, which reads the hub cache, so a fresh container
  fetched over the network on first ingest and an offline one silently fell
  back to cl100k.
- Charge a token that collapses a long unbroken run by its character span.
  WordPiece emits one [UNK] for any word over its character limit, which made
  base64 and minified content count as near-zero tokens, so nothing split it
  and oversized chunks reached the embedding server.
- Preserve chunk ids and honour --batch-size when rebuilding a FAISS index.
  Fresh uuids orphaned GraphRAG's graph_node_chunks rows, and the whole index
  went out in a single embed call on remote servers.
- Document that granite runs an int8-quantised graph, and scope the
  SentenceTransformer parity claim to mpnet's fp32 graph, which is where it
  was measured.
- Correct the embeddings docs: a matching dimension is not a matching model,
  so a same-width swap raises nothing and silently degrades retrieval.
2026-08-27 13:59:51 +01:00
Alex 869d87452b fix: minor embed compat fixes 2026-08-27 13:45:34 +01:00
Alex dd3876fdcb fix: mini fixes 2026-08-26 16:37:03 +01:00
Alex 8380f9bb47 feat: optimise embeds 2026-08-26 14:46:19 +01:00
Alex e0aff39a1b feat: ingestion optimisations 2026-08-25 12:27:09 +01:00
Alex 949b8d7a18 Merge pull request #2698 from arc53/fix/markdown-code-span-corruption
fix: md citation issue
2026-08-25 00:38:35 +01:00
Alex 731378e29f fix: more escapes 2026-08-25 00:36:31 +01:00
Alex 2ff895ac9c fix: md citation issue 2026-08-25 00:15:12 +01:00
Manish Madan 9e5528ad3d Merge pull request #2651 from Acestar21/fix/setup-ps1-ps51-compatibility
Fix RandomNumberGenerator.Fill incompatibility with Windows PowerShell
2026-08-24 19:26:05 +05:30
Alex 5c55d2610b Merge pull request #2690 from arc53/workflow-export
Workflow export
2026-08-23 11:46:26 +01:00
Alex b47bfa8a37 fix: mini hardening 2026-08-23 11:22:12 +01:00
Alex 52279d27b4 Merge pull request #2692 from arc53/artefact-handling
Artefact handling
2026-08-22 14:50:20 +01:00
Alex 5f96c67e78 chore: minor cleanup 2026-08-22 14:41:17 +01:00
Alex 3f88dc7b57 fix: better snapshot and gate 2026-08-22 14:00:15 +01:00
Alex 29f661f3c7 fix: more test fixes and additions, fix loss on resume 2026-08-22 12:57:58 +01:00
Alex e96ff8658c fix: more stability for durable tasks, retry strategy, refactor dead
code
2026-08-22 09:44:09 +01:00
Alex 114585cd7d fix: little more tool call hardening 2026-08-21 15:01:45 +01:00
Alex 4a4f485781 feat: mini tool call hardening 2026-08-21 14:29:40 +01:00
Alex 4b0d82a6c1 feat: better sandbox handling 2026-08-21 13:04:57 +01:00
Pavel 33d93ba0ca fixes 3 2026-08-20 23:07:15 +02:00
Alex baf45447db Merge pull request #2691 from arc53/parser-improvements
feat: parser improvements and fixes
2026-08-20 15:34:05 +01:00
Alex 5de8b3210e fix: daytona mini race 2026-08-20 14:54:35 +01:00
Alex f86a357ccc fix: mini pgvector cleanup 2026-08-20 14:36:41 +01:00
Alex 82ac2dcee9 fix: refactors and optimisations 2026-08-20 13:56:37 +01:00
Alex e6fb46560c fix: minor graph rag improvements 2026-08-20 13:33:06 +01:00
Pavel 7553e74a96 Fix 2 2026-08-20 14:05:42 +02:00
Alex a72434c6db fix: small pg related fixes for stability 2026-08-20 12:51:31 +01:00
Alex cf6b2cc1c4 feat: remove trialing system msg 2026-08-20 11:38:58 +01:00
Pavel 7baf33aea0 edits v1 2026-08-20 11:37:29 +02:00
Alex 4fe095c7a4 fix: daytona timeouts 2026-08-20 00:14:54 +01:00
Alex 0b36257202 feat: parser improvements and fixes 2026-08-19 23:49:26 +01:00
Pavel 1040a7efcc tool content loss fixes 2026-08-19 23:08:46 +02:00
Manish Madan 64db43a5bb Merge pull request #2678 from arc53/dependabot/npm_and_yarn/frontend/radix-ui/react-tabs-1.1.21
chore(deps): bump @radix-ui/react-tabs from 1.1.17 to 1.1.21 in /frontend
2026-08-19 16:49:18 +05:30
dependabot[bot] 35ccb15b02 chore(deps): bump @radix-ui/react-tabs in /frontend
Bumps [@radix-ui/react-tabs](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tabs) from 1.1.17 to 1.1.21.
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tabs/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tabs)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-tabs"
  dependency-version: 1.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 11:14:00 +00:00
Manish Madan a85a5d132a Merge pull request #2677 from arc53/dependabot/npm_and_yarn/frontend/vitest-4.1.10
chore(deps-dev): bump vitest from 4.1.9 to 4.1.10 in /frontend
2026-08-19 16:42:55 +05:30
dependabot[bot] b642a9ddf5 chore(deps-dev): bump vitest from 4.1.9 to 4.1.10 in /frontend
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.9 to 4.1.10.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.10/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 10:56:14 +00:00
Manish Madan 854b1b4e64 Merge pull request #2676 from arc53/dependabot/npm_and_yarn/frontend/prettier-plugin-tailwindcss-0.8.1
chore(deps-dev): bump prettier-plugin-tailwindcss from 0.7.2 to 0.8.1 in /frontend
2026-08-19 16:24:55 +05:30
dependabot[bot] 4ee5dfcb37 chore(deps-dev): bump prettier-plugin-tailwindcss in /frontend
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.7.2 to 0.8.1.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.7.2...v0.8.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-version: 0.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 10:51:09 +00:00
Manish Madan f9fb0bfd94 Merge pull request #2675 from arc53/dependabot/npm_and_yarn/frontend/radix-ui/react-switch-1.3.7
chore(deps): bump @radix-ui/react-switch from 1.3.3 to 1.3.7 in /frontend
2026-08-19 16:20:00 +05:30
dependabot[bot] ec1bbb8635 chore(deps): bump @radix-ui/react-switch in /frontend
Bumps [@radix-ui/react-switch](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/switch) from 1.3.3 to 1.3.7.
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/switch/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/switch)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-switch"
  dependency-version: 1.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 10:37:27 +00:00
Manish Madan e1293a38ff Merge pull request #2674 from arc53/dependabot/npm_and_yarn/frontend/react-i18next-17.0.11
chore(deps): bump react-i18next from 17.0.6 to 17.0.11 in /frontend
2026-08-19 16:06:02 +05:30
dependabot[bot] 6f5d2553d1 chore(deps): bump react-i18next from 17.0.6 to 17.0.11 in /frontend
Bumps [react-i18next](https://github.com/i18next/react-i18next) from 17.0.6 to 17.0.11.
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/react-i18next/compare/v17.0.6...v17.0.11)

---
updated-dependencies:
- dependency-name: react-i18next
  dependency-version: 17.0.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 10:26:13 +00:00
Pavel 3c78540931 Workflow export 2026-08-18 17:10:26 +02:00
Alex a51131d3fc Merge pull request #2682 from ManishMadan2882/main
fix(frontend): dedupe Radix dismissable-layer so body pointer-events unlock
2026-08-18 13:32:33 +01:00
ManishMadan2882 a7b5a1aaf1 fix(frontend): dedupe Radix dismissable-layer so body pointer-events unlocks 2026-08-17 03:42:23 +05:30
Alex a70362a5f3 feat: better fallback shim 2026-08-14 17:30:36 +01:00
Alex 0b58075107 chore: bump version to 0.19.0 2026-08-13 17:30:15 +01:00
Alex b5659ec8c2 Merge pull request #2672 from arc53/better-pre-send-guard
feat: better attachments pre send guard
2026-08-13 17:20:45 +01:00
Alex 49f89a67c2 feat: better attachments pre send guard 2026-08-13 17:19:39 +01:00