Skip to content

Instantly share code, notes, and snippets.

View pszemraj's full-sized avatar

Peter pszemraj

View GitHub Profile
@pszemraj
pszemraj / how-to-upgrade-heroku-postgresql.md
Created August 7, 2021 16:30 — forked from simonw/how-to-upgrade-heroku-postgresql.md
How to upgrade a Heroku PostgreSQL database to a new plan

How to upgrade a Heroku PostgreSQL database to a new plan

I started a project on a Hobby Dev plan (free, limit 10,000 rows), and then later needed to upgrade it to Hobby Basic ($9/month, limit 10,000,000 rows).

After assigning the new database, I had two databases attached to the application. They looked something like this:

  • HEROKU_POSTGRESQL_OLIVE (postgresql-dimensional-3321) Old, free-tier (Hobby Dev) database
@pszemraj
pszemraj / AutoTA-Example.md
Last active January 1, 2022 03:40
HayStack Course Info Extractor - IML s21.ipynb

AutoTA Example

  • A series of transformer models that embed your course documents, search for them when you ask it a question, and construct a reply in coherent english using a text2text generator.
  • Based on the work done by deepset.ai in their Haystack library.
  • As the notebook preview does not always load on GitHub, click here for the Colab notebook / demo. Instructions are provided on what to edit to use the notebook both in simple cases (i.e. just changing the questions) to adapting the notebook for other purposes.

Example: The model's explanation of K-Means

question to model: What is the k-means algorithm?

@pszemraj
pszemraj / open-form-q-a-gpt-neo-2-7b.ipynb
Last active March 17, 2023 07:04
Open-Form Q&A - GPT-Neo 2.7B
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / semantic-search-on-text-posts-google-u-s-e.ipynb
Last active August 21, 2021 19:20
Semantic Search on Text Posts - Google U.S.E.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / geospatial-example-valais-rasterio-sentinel-2.ipynb
Created August 22, 2021 23:19
Geospatial Example - Valais + Rasterio + Sentinel-2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / boulderspot-coverage-aug30.geojson
Last active September 1, 2021 03:20
a map that shows the status of boulderspot.io coverage as of august 30, 2021
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / gpt-j-6b-testing.ipynb
Last active September 27, 2021 22:09
GPT-J 6B - Testing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / visual-analysis-via-umap-course-text-data.ipynb
Last active January 1, 2022 03:31
Visual Analysis via UMAP - Course Text Data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / dm1-2021hs-info-extraction-v2.ipynb
Created October 14, 2021 17:19
DM1-2021hs-info-extraction [v2].ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pszemraj
pszemraj / text-posts-semantic-search-via-u-s-e.ipynb
Created October 27, 2021 23:57
Text Posts - Semantic Search via U.S.E.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.