Packages

fnord

0.4.33

AI code archaeology

Current section

221 Versions

Jump to

Compare versions

3 files changed
+6 additions
-3 deletions
  @@ -1,6 +1,6 @@
1 1 {<<"links">>,[{<<"GitHub">>,<<"https://github.com/sysread/fnord">>}]}.
2 2 {<<"name">>,<<"fnord">>}.
3 - {<<"version">>,<<"0.4.32">>}.
3 + {<<"version">>,<<"0.4.33">>}.
4 4 {<<"description">>,
5 5 <<"Index, search, and investigate your code base with OpenAI's embeddings API">>}.
6 6 {<<"elixir">>,<<"~> 1.17">>}.
  @@ -52,9 +52,12 @@ defmodule AI do
52 52 # -----------------------------------------------------------------------------
53 53 # Embeddings
54 54 # -----------------------------------------------------------------------------
55 - @embeddings_token_limit 8192
56 55 @embeddings_model "text-embedding-3-large"
57 56
57 + # It's actually 8192 for this model, but this gives us a little bit of
58 + # wiggle room in case the tokenizer we are using falls behind.
59 + @embeddings_token_limit 7500
60 +
58 61 @doc """
59 62 Get embeddings for the given text. The text is split into chunks of 8192
60 63 tokens to avoid exceeding the model's input limit. Returns a list of
  @@ -4,7 +4,7 @@ defmodule Fnord.MixProject do
4 4 def project do
5 5 [
6 6 app: :fnord,
7 - version: "0.4.32",
7 + version: "0.4.33",
8 8 elixir: "~> 1.17",
9 9 start_permanent: Mix.env() == :prod,
10 10 description: "Index, search, and investigate your code base with OpenAI's embeddings API",