You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The package can be installed by adding `torus` to your list of dependencies in `
17
17
```elixir
18
18
defdepsdo
19
19
[
20
-
{:torus, "~> 0.5"}
20
+
{:torus, "~> 0.6"}
21
21
]
22
22
end
23
23
```
@@ -72,7 +72,7 @@ See [`full_text/5`](https://hexdocs.pm/torus/Torus.html#full_text/5) for more de
72
72
73
73
See [`similarity/5`](https://hexdocs.pm/torus/Torus.html#similarity/5) for more details.
74
74
75
-
1.**Full text**: Uses term-document matrix vectors for, enabling efficient querying and ranking based on term frequency. Supports prefix search and is great for large datasets to quickly return relevant results. See [PostgreSQL Full Text Search](https://www.postgresql.org/docs/current/textsearch.html) for internal implementation details.
75
+
1.**Full text**: Uses term-document matrix vectors, enabling efficient querying and ranking based on term frequency. Supports prefix search and is great for large datasets to quickly return relevant results. See [PostgreSQL Full Text Search](https://www.postgresql.org/docs/current/textsearch.html) for internal implementation details.
76
76
77
77
```elixir
78
78
insert_post!(title:"Hogwarts Shocker", body:"A spell disrupts the Quidditch Cup.")
By default, it uses the `sentence-transformers/all-MiniLM-L6-v2` model, but you can specify a different model by explicitly passing `model` in the configuration or when calling `Torus.to_vector/1` function via `model` option:
154
+
By default, it uses the `text-embedding-ada-002` model, but you can specify a different model by explicitly passing `model` in the configuration or when calling `Torus.to_vector/1` function via `model` option:
By default, it uses the `sentence-transformers/all-MiniLM-L6-v2` model, but you can specify a different model by explicitly passing `model` in the configuration or when calling `Torus.to_vector/1` function via `model` option:
171
+
By default, it uses the `sentence-transformers/paraphrase-MiniLM-L3-v2` model, but you can specify a different model by explicitly passing `model` in the configuration or when calling `Torus.to_vector/1` function via `model` option:
You can pass all options directly to the `Nx.Serving.start_link/1` function by passing them to `Torus.Embeddings.LocalNxServing` when starting.
218
218
219
-
By default, it uses the `sentence-transformers/all-MiniLM-L6-v2` model, but you can specify a different model by explicitly passing `model` in the configuration:
219
+
By default, it uses the `sentence-transformers/paraphrase-MiniLM-L3-v2` model, but you can specify a different model by explicitly passing `model` in the configuration:
Copy file name to clipboardExpand all lines: lib/torus/embeddings/local_nx_serving.ex
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ if Code.ensure_loaded?(Bumblebee) and Code.ensure_loaded?(Nx) do
42
42
43
43
You can pass all options directly to `Nx.Serving.start_link/1` function by passing them to `Torus.Embeddings.LocalNxServing` when starting.
44
44
45
-
By default, it uses `sentence-transformers/all-MiniLM-L6-v2` model, but you can specify a different model by explicitly passing `model` to the config:
45
+
By default, it uses `sentence-transformers/paraphrase-MiniLM-L3-v2` model, but you can specify a different model by explicitly passing `model` to the config:
Copy file name to clipboardExpand all lines: lib/torus/embeddings/postgres_ml.ex
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
defmoduleTorus.Embeddings.PostgresMLdo
2
2
@moduledoc"""
3
-
`Torus.Embeddings.PostgresML` uses PostgreSQL [PostgresML extension](https://PostgresML.org/docs) to generate embeddings. It allows you to generate embeddings using a variety of models and performs inference directly in the database. This would require your database to have GPU support.
3
+
`Torus.Embeddings.PostgresML` uses the PostgreSQL [PostgresML extension](https://postgresml.org/docs) to generate embeddings. It allows you to generate embeddings using a variety of models and performs inference directly in the database. This would require your database to have GPU support.
4
4
5
5
To use it, add the following to your `config.exs`:
6
6
@@ -9,13 +9,13 @@ defmodule Torus.Embeddings.PostgresML do
By default, it uses `sentence-transformers/all-MiniLM-L6-v2` model, but you can specify a different model by explicitly passing `model` to the config:
12
+
By default, it uses `sentence-transformers/paraphrase-MiniLM-L3-v2` model, but you can specify a different model by explicitly passing `model` to the config:
0 commit comments