OpenAI-like helpers for storing an querying embedding vectors utilizing a postgres database with pgvector extension.
Also included is the docker-compose which instantiates a postgres database with the necessary extension.
import pathlibSSH reverse proxy with Traefik route registration.
| import queue | |
| import atexit | |
| import asyncio | |
| import threading | |
| def get_event_loop(): | |
| ''' Get an active event loop or start one in another thread, stop it when exiting the program | |
| ''' | |
| try: | |
| return asyncio.get_event_loop() |
| IDH1 | |
| TSC1 | |
| GNAS | |
| PIK3CA | |
| NRAS | |
| PTPN3 | |
| ARID1A | |
| CDK6 | |
| RADIL | |
| BRCA2 |
| import csv | |
| import sys | |
| import click | |
| import pathlib | |
| import logging | |
| import shutil | |
| import frictionless | |
| logging.basicConfig(stream=sys.stderr, level=logging.INFO) |
| #!/usr/bin/env python | |
| # Usage: datapackage-validate [datapackage.json] | |
| import sys, traceback, logging | |
| import datapackage | |
| logging.basicConfig(stream=sys.stderr) | |
| try: | |
| from tqdm.auto import tqdm |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| ''' | |
| This script installs packages from requirements file(s) in a virtual environment | |
| as they would have been installed at a certian date, then assembles the versions | |
| for the requirements.txt file. | |
| Usage: | |
| pip-freeze-timemachine -d 2022-01-01 -r requirements.txt -o requirements.versioned.txt | |
| requirements: |
| # This launches a docker-compose.yaml (defined inline at the bottom) | |
| # NOTE: this file should be converted to ignition.json which can be used with a Flatcar OS | |
| # docker run --rm -i quay.io/coreos/butane:latest < docker-compose-flatcar-config.yaml > ignition.json | |
| variant: flatcar | |
| version: 1.0.0 | |
| passwd: | |
| users: | |
| - name: core | |
| ssh_authorized_keys: | |
| - # TODO: insert your public key (the `.pub` file generated by `ssh-keygen`) |
docker.io/tensorflow/serving requires that you build a config file when working with more than one model. I find this a bit silly, this image builds it for you assuming you just have all the models in their separate directories.
/models/model-a/1//models/model-b/1/