mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-25 17:12:16 +00:00
FIX: Lower truncation size for Gemini Embeddings (#493)
This commit is contained in:
parent
1414a91db4
commit
a1f1067f69
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user