[AIENG-601] Client-Side Embedding generation poc implementation - #1362
Draft
sandeepbarnwal wants to merge 1 commit into
Draft
[AIENG-601] Client-Side Embedding generation poc implementation#1362sandeepbarnwal wants to merge 1 commit into
sandeepbarnwal wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caution
This is only a POC implementation and should not be merged.
AIENG-601: BYOLLM — Client-Side Embeddings via Customer's LLM Endpoint
Summary
Implements the CLI side of the Bring Your Own LLM (BYOLLM) feature. When a workspace is configured for embeddingMode=client, the CLI fetches embedding configuration
from the server options response, calls the customer's OpenAI-compatible LLM endpoint to generate file embeddings, and uploads the resulting vectors to the
Launchable server. Both record commit and record build support this path.
Python CLI
commits/collect/options response. Env vars (SMART_TESTS_EMBEDDING_ENDPOINT, SMART_TESTS_EMBEDDING_MODEL) override server-provided values. Validates endpoint and API
key before enabling embeddings; degrades gracefully with a warning if either is missing. record build inherits this path automatically via commit.callback().
Java — new embedding/ package
L2-normalizes vectors; skips blank files.
(summaries endpoint) — to prevent auth header leakage.
when provider is null.
Java — modified
separate HTTP clients. API key is read via System.getenv() only — never passed as a CLI arg to avoid ps aux exposure.
Tests
Security
Test Plan