Closed anandaroop closed 1 year ago
Yeah good q, I made a pragmatic decision not to futz with CI, thought that could certainly be a reasonable next step. For now just an infrequent manual task, to keep things simple.
Alright this is rebased on top of the blocker in https://github.com/artsy/artsy.github.io/pull/751 and mergeable now.
Going for it! #FF
What
This PR adds the ability to include a short list of related articles at the bottom of each article on the blog.
For example the article at Accessing the Relay Store Without a Mutation might include a block such as the following:
(Real example from the current batch^)
Why
The goal here was to find a simple + low-stakes use case to start experimenting with:
Our brand new Weaviate cluster, a self-hosted vector database that allows us to take embeddings produced by ML models and perform nearest neighbor searches on them. Applications for this include similarity, clustering, and semantic search. In this case we are clustering related articles together in order to generate these lists.
The weaviate-ruby gem, for convenient access to the Weaviate cluster from our Ruby apps (of which the blog is one!). This is likely a better alternative to the homegrown client we whipped up for the last Hackathon.
Everything seems to work well so far.
How
The idea is that any dev at any time (preferably an author right after adding a new post) could simply
foreman run bundle exec rake related_articles
and ta-da therelated-articles.json
file is re-generated.They'd then commit the changes to this file, and everything should just work, thanks to some client-side javascript that tells the the article page to fetch data from that json manifest sitting on the server.
TODO: