noahsettersten commited on
Commit
37dc524
1 Parent(s): f23612f

chore: Add index for description vector embeddings

Browse files
priv/repo/migrations/20240125172111_create_description_vector_index_on_code_vectors.exs ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ defmodule MedicalTranscription.Repo.Migrations.CreateDescriptionVectorIndexOnCodeVectors do
2
+ use Ecto.Migration
3
+
4
+ def change do
5
+ create index("code_vectors", ["description_vector vector_cosine_ops"], using: :hnsw)
6
+ end
7
+ end