April 1st, 2024
FAISS implements similarity search. Sentence Transformers encodes sentences into vectors FAISS can use. Llama can be configured to perform semantic searches in a FAISS vector store. By combining all of the above together we can build a local GenAI powered assistant capable of performing semantic queries to extract information from a local corpus of documents, let’s see how.
Read the rest of this entry »
Posted in Algoritmi
October 22nd, 2023
I’ve made a digital photo frame that displays random photo from my Google Photo library enriched with an Haiku generated by a LLaVa instance using the same photo as reference.
Read the rest of this entry »
Posted in Algoritmi
July 8th, 2023
Wikimedia has a nice API which provides the facts of the day in JSON format, something like:
Read the rest of this entry »
Posted in Uncategorized
April 1st, 2023
Lately I’ve been spent some time using ControlNet to process some of my sketches, the results are quite interesting and show the potential of the technology even when the starting sketch is very low quality and noisy, due to being on squared paper.
Read the rest of this entry »
Posted in Approfondimenti
May 14th, 2022
Quality is subjective, true, but can we show that no matter the audience a fantasy book is always better than an horror book? If this would be the case it’d mean that even readers who prefer horror books should give higher ratings to an horror-fantasy book than an horror book of other sub-genres.
Read the rest of this entry »
Posted in Approfondimenti
May 8th, 2022
Do fantasy books on average get better ratings than sci-fi books? The answer seems to be yes, according to this little data science project I’ve build from Goodreads data.
Read the rest of this entry »
Posted in Approfondimenti
July 2nd, 2021
This experiment combines hsl.js and tensorflow.js to perform real time object detection from a browser. When the mouse hovers the canvas the entire stream is shown, with the detected object framed in a black box, otherwise only the parts of the stream corresponding to detected objects are displayed.
Read the rest of this entry »
Posted in Algoritmi, Interfaccie
September 27th, 2020
In these days I’m spending some time reading about machine learning. To practice what I’ve read I’ve built a super simple, but working, glyph classifier, that recognizes the first five letters of the alphabet when drawn on an HTML canvas. You can try it here and check its source code on github.
Read the rest of this entry »
Posted in Uncategorized
June 28th, 2017
Next step is determining the roots of the characteristic polynomial of a matrix. Before working on extracting the roots using Newton’s method I wanted to be able to visualize the function.
Read the rest of this entry »
Tags: Characteristic polynomial
Posted in Algoritmi
June 10th, 2017
I’m currently reading Deep Learning, from Ian Goodfellow, Yoshua Bengio and Aaron Courville. While reading I got interested in calculating the determinant of a square matrix, I know there are many existing libraries to do that but the algorithm looked simply enough to give it a try.
Read the rest of this entry »
Tags: determinant, matrix
Posted in Algoritmi