semantic code search part 2

public:: true blog-date:: 2023-06-13 Ok continuing from last time, where I ran sentence_transformers model 'msmarco-MiniLM-L-6-v3' against a code search problem of comparing query lines against a source code corpus actually from the sentence_transformers github This time, I wanted to write some code around measuring the successful hits from a model run using cosine similarity from sentence_transformers Query set choice I expanded the set of queries slightly, but not that much yet so I could focus on the evaluation code....

June 13, 2023 · 10 min · 1959 words · Michal Piekarczyk

logseq publish hugo with python

public:: true blog-date:: 2023-06-12 briefly Inspired by the super popular #[[schrodinger logseq plugin]], I wrote up something in #python today, to publish to #Hugo like https://github.com/sawhney17/logseq-schrodinger but also with support for block embeds. In particular, I was also really inspired by [[Bas Grolleman]]’s concept here around how to be able to use #interstitial-journaling and be able to nicely coalesce selected sources through their block embeds, into a target logseq concept they all refer to....

June 12, 2023 · 8 min · 1683 words · Michal Piekarczyk

semantic code search first stab

public:: true blog_date:: 2023-06-11 The idea here was to try out Sentence Transformers , https://sbert.net , on source code search. And as a first stab, a corpus was built with, hey why not, the code from the #sentence-transformers repo. The documentation at https://www.sbert.net/examples/applications/semantic-search/README.html#python was used for the basic test here. And a small bit of code at the bottom here, shows how the lines from the python source files were written to a python list first....

June 11, 2023 · (updated June 13, 2023) · 5 min · 910 words · Michal Piekarczyk

Decartes vs Spinoza

This is a school English class project on philosophy from around 2004 where I recruited friends and family to do the voice acting of Spinoza and Descartes 😂. Glad this did not get lost. My brother and uncle are voicing here Scene 1 Scene 2 Scene 3 Scene 4 George and Eugene Here is the second set of voice acting. Scene 5 Scene 6 Scene 7

June 10, 2023 · 1 min · 66 words · Michal Piekarczyk

How to unchaos your photos?

an interlude to having better grasp of an unwieldly photo situation

May 29, 2023 · 2 min · 301 words · Michal Piekarczyk