diff --git a/lib/embeddings/vector_representations/gemini.rb b/lib/embeddings/vector_representations/gemini.rb index 529f5ac4..0762432f 100644 --- a/lib/embeddings/vector_representations/gemini.rb +++ b/lib/embeddings/vector_representations/gemini.rb @@ -31,7 +31,7 @@ module DiscourseAi end def max_sequence_length - 2048 + 1536 # Gemini has a max sequence length of 2048, but the API has a limit of 10000 bytes, hence the lower value end def pg_function