Skip to content

docs(blog): update embedding-cap description and add full serialized example#63

Merged
GoodbyePlanet merged 1 commit into
mainfrom
new-blog-improvement
Jun 30, 2026
Merged

docs(blog): update embedding-cap description and add full serialized example#63
GoodbyePlanet merged 1 commit into
mainfrom
new-blog-improvement

Conversation

@GoodbyePlanet

@GoodbyePlanet GoodbyePlanet commented Jun 29, 2026

Copy link
Copy Markdown
Owner

What

Two improvements to blog.md in the "Building the embedding input" section:

  1. Updated the embedding-cap description. It described a flat ~6,000-char cap on the source body. That now reflects the current behavior (Dense embedding silently truncates large symbols at 6000 chars #61 / merged PR fix: make dense-embedding truncation observable and configurable #62): a configurable EMBEDDING_MAX_CHARS budget applied to the whole serialized string (preamble + signature counted first, source fills the rest), with truncation logged so the loss is visible.

  2. Added a concrete full-string example showing exactly what the list_users symbol serializes into — the single text that becomes one dense vector — plus a short note on the metadata/docstring block, the signature, and why the signature appears twice.

Also fixed the earlier list_users CodeSymbol example: symbol_type is api_route (what _classify_function actually assigns to a FastAPI route), not function — keeping the two examples consistent.

Why

The blog predated the embedding-truncation fix, and readers had no concrete picture of the final serialized embedding input. Doc-only changes.

…example

The "Building the embedding input" section described a flat ~6,000-char
source cap. Update it to match the current behavior: a configurable
EMBEDDING_MAX_CHARS budget applied to the whole string, with truncation
logged. Also add a concrete example of the full text that becomes one
dense vector, and fix the list_users CodeSymbol's symbol_type to the
value the parser actually assigns to a FastAPI route (api_route).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@GoodbyePlanet GoodbyePlanet merged commit 5f07ec9 into main Jun 30, 2026
2 checks passed
@GoodbyePlanet GoodbyePlanet deleted the new-blog-improvement branch July 7, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant