Skip to content

Conversation

fzowl
Copy link
Contributor

@fzowl fzowl commented Oct 14, 2025

Adding contextual model support
Counting the tokens and batching
Tests

fzowl added 2 commits October 14, 2025 16:50
Supporting contextual models
Extending the tests
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

return cast(Embeddings, result.embeddings)
def _is_context_model(self) -> bool:
"""Check if the model is a contextualized embedding model."""
model_name = self._config["model"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Model Removal Breaks Existing Code Compatibility

Removing the default "voyage-2" for the model field makes it required for VoyageAIProvider and causes KeyError in VoyageAIEmbeddingFunction methods that directly access self._config["model"]. This breaks backward compatibility for existing code.

Additional Locations (1)

Fix in Cursor Fix in Web

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