You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🇵🇪
Focusing
Jesus M. Castagnetto
jmcastagnetto
🇵🇪
Focusing
Chemist, Bioinformatics mangler, Biomedical Informatics dabbler. Metalloprotein DB creator, Data munger, R code scribbler, PHP/PEAR kludger. #dator
Quick notes on creating a local duckdb helper using RAG with aichat and ollama
DIY - build your own dudckdb local helper with aichat and ollama using RAG
Caveat: The following "works for me"™, and it is kept simple because I implemented in on my 2016 refurbished Thinkpad P50. Also, I've done very minor testing of prompts, and the majority have worked, but YMMV.
This recipe assumes that you have already have ollama and aichat installed on your local machine. If you don't have them installed, you can follow the instructions in the following links:
There are different ways to install those two, so pick the one you are most comfortable with. I installed them on my laptop directly, but you might like to use docker instead.
Example showing the truncation in rio::import() with malformed CSV files
When using rio::import() from a CSV data gets truncated at the first line with an error, in the example case described here, a different number of columns.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map showing the asymmetric distribution of the ratio of excess deaths to COVID-19 deaths (2020-2021)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plot map of Peru's Commuting Zones and of its provinces as comparison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cruzar datos de positivos con vacunados (COVID-19, Peru - basado en datos abiertos del MINSA")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Una versión del gráfico espiral del NYT para los nuevos casos COVID-19 del Perú
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters