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

[Feature Request] Implement Service Worker to speed up semantic search #15

Open
WilliamJWen opened this issue Aug 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@WilliamJWen
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Using the semantic search bar for the first time is sometimes slow, which may be due to fetching the transfomer.js model through CDN.

Describe the solution you'd like
A Service Worker is a script that runs in the background of a web browser, separate from the web page, and provides capabilities that don't require a web page or user interaction. It acts as a network proxy, intercepting and handling network requests, including the ability to serve cached content, enabling offline functionality, and controlling how resources are fetched.

This allows more control to cache resources like the Model and pre-computed Embeddings and may even provide offline access to the semantic search bar.

Describe alternatives you've considered (Optional)
An alternative is to have a javascript as part of the html that's available on all pages(for example, the left side nav bar) to load/fetch the transformer models and embeddings and so on, whenever any page under learningc.org is opened

@WilliamJWen WilliamJWen added the enhancement New feature or request label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant