defmodule Mix.Tasks.BuildCodeVectors do | |
@moduledoc "Populate database with vector embeddings from downloaded ICD-9 code list" | |
use Mix.Task | |
@shortdoc "Downloads the ICD-9 codelist, calculates vector embeddings for each, and adds them to the database" | |
def run(_args) do | |
Mix.Task.run("app.start") | |
Logger.configure(level: :info) | |
MedicalTranscription.Coding.VectorPrecomputation.run() | |
end | |
end | |