Repository navigation
Add embed() for nomic-embed-text - #41
Merged
Merged
Conversation
Task prefixes, batching, and dimension checks keep later process slices from hitting the network with wrong vectors or Ollama-incompatible params. Co-authored-by: Cursor <cursoragent@cursor.com>
Partial API responses previously dropped texts silently; match the dimension check with an explicit count validation per batch. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
XQU-19: Slice 3 embed() via OpenAI-compatible client, with batch count validation.
Acceptance criteria:
search_document:/search_query:); batching across 2+ create calls; output order matches input even if indexes are shuffled; dimension mismatch raises ValueError; existing chat tests still passembed(["first", "second"], "document")raises ValueError matching1 != expected 2when create returns one itemembed()raises iflen(items) != len(batch)before appending; message style matches the dimension check (embedding count {n} != expected {m}).env.examplestill only the three embedding settings; Slice 3 box ticked onlyReview: all checks passed. check.sh: CHECK PASSED locally.
Made with Cursor