-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use similarity js package #26
Conversation
This looks very good! I see that there are two versions of
|
The As for the progress callback, it returns the same object it did before. The rest of the logic I copied from your code, and it's handled with the rest of the UI in this project.: The callback function is here. Does this make sense? |
Thanks for pointing it out! It seems very well written. Would you want to integrate this library as part of this repo (with @do-me's agreement, of course)? For displaying the progress % on the loading bar, it's probably unnecessary to do it to two decimal places. |
@VarunNSrivastava yes of course, from my perspective it would be nice to have everything under one roof! @lizozom what do you think? |
So you mean that this project should become installable using Normally libraries don't really live in the same repo as their demos (especially if it's a demo as detailed as this one) I think it makes more sense to split out the UI logic and the core embedding logic, as people interested in that code, don't really want to install the demo page a dependency. |
How I understand that was kind of the idea. Maybe you're more familiar with npm, but couldn't we use some kind of flag for this, like "with or without GUI" in some way? @VarunNSrivastava or how did you think to integrate the library in this repo? @lizozom for me it's also totally fine if the core logic lives in a different repo, we could surely go ahead this way. The only thing that would be nice is if our affiliation @VarunNSrivastava 's and mine wouldn't be "lost" in semantic-js. Do you maybe have an idea how to deal with this? |
I was thinking along the line of the transformers.js repo having the demo site in the same library as the package. I imagine I'll be doing any future development of this project on this repo, so a merge would be to contain any divergence between the package and the demo. |
I'll be closing this PR for the moment as we'd need to discuss some more (technical/organizational) details first.
I was reflecting about what SemanticFinder is and I think it certainly outgrew the "demo" stage. It has become:
I agree with @VarunNSrivastava that SemanticFinder could be organized like the transformers.js repo. However it's also my first time to work with this level of complexity on a monorepo so if you have proposals or other ideas they would be very welcome! |
I improved the similarityjs package based on @VarunNSrivastava 's work.
This PR uses this package with an identical user experience.
If we want to, we can then improve on it later!
This PR also contains a pre commit hook that runs a linter to make sure that our code is consistent.