noahsettersten commited on
Commit
9a47586
1 Parent(s): 76f2a1d

chore: Enable Postgres `vector` extension

Browse files
README.md CHANGED
@@ -1,5 +1,14 @@
1
  # MedicalTranscription
2
 
 
 
 
 
 
 
 
 
 
3
  To start your Phoenix server:
4
 
5
  * Run `mix setup` to install and setup dependencies
 
1
  # MedicalTranscription
2
 
3
+ ## Getting started
4
+
5
+ ### Prerequisites
6
+
7
+ 1. ffmpeg for audio processing in Bumblebee's speech-to-text serving: `brew install ffmpeg`.
8
+ 2. Postgres and pgvector for storing data and vector embeddings: `brew install pgvector`.
9
+
10
+ ### Running the server
11
+
12
  To start your Phoenix server:
13
 
14
  * Run `mix setup` to install and setup dependencies
priv/repo/migrations/20240125151151_enable_pgvector.exs ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ defmodule MedicalTranscription.Repo.Migrations.EnablePgvector do
2
+ use Ecto.Migration
3
+
4
+ def change do
5
+ execute("CREATE EXTENSION vector", "DROP EXTENSION vector")
6
+ end
7
+ end