Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SplittingStrategy::Semantic require an encoder #118

Conversation

boswelja
Copy link
Contributor

@boswelja boswelja commented Feb 8, 2025

Previously if you didn't specify an encoder separately you'd get a runtime exception. It's now required at compile time instead.

I was originally hoping to also set the default to Jina, but Rust doesn't support default values for fields and it didn't seem like a good idea to set the default SplittingStrategy to Semantic in general.

Previously if you didn't specify an encoder separately you'd get a runtime exception. It's now required at compile time instead.

I was originally hoping to also set the default to JINA, but Rust doesn't support default values for fields, and it didn't seem like a good idea to set the default SplittingStrategy to Semantic in general.
@akshayballal95
Copy link
Collaborator

This looks good. I will test it out and let you know. In the meantime, could you also resolve the conflicts that are there?

# Conflicts:
#	python/src/config.rs
#	rust/src/lib.rs
@boswelja
Copy link
Contributor Author

boswelja commented Feb 8, 2025

Should be all fixed now, thanks for the heads up!

@akshayballal95 akshayballal95 merged commit b748078 into StarlightSearch:main Feb 11, 2025
5 checks passed
@akshayballal95
Copy link
Collaborator

Merged. Thanks!

@boswelja boswelja deleted the semantic-splitting-require-encoder branch February 11, 2025 09:53
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.

2 participants