Skip to content

Commit

Permalink
switch to 384 vector model BAAI/bge-small-en-v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
toranb committed Nov 11, 2023
1 parent af53f8d commit f1a3f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/demo/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule Demo.Application do
end

def serving() do
repo = "thenlper/gte-base"
repo = "BAAI/bge-small-en-v1.5"
{:ok, model_info} = Bumblebee.load_model({:hf, repo})
{:ok, tokenizer} = Bumblebee.load_tokenizer({:hf, repo})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Demo.Repo.Migrations.AddDocumentSection do
create table(:sections) do
add :page, :integer, null: false
add :text, :text, null: false
add :embedding, :vector, size: 768
add :embedding, :vector, size: 384

add :document_id, references(:documents), null: false

Expand Down

0 comments on commit f1a3f37

Please sign in to comment.