Set some hard limits on the prompt lenghts we inject

This commit is contained in:
Jorge Manrubia
2025-07-24 17:32:40 +02:00
parent 0429dc28f3
commit 523f3f0acb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ module Card::Promptable
<<~PROMPT
BEGIN OF CARD #{id}
**Title:** #{title}
**Title:** #{title.first(1000)}
**Description:**
#{description.to_plain_text}
#{description.to_plain_text.first(10_000)}
#### Metadata
+1 -1
View File
@@ -11,7 +11,7 @@ module Comment::Promptable
**Content:**
#{body.to_plain_text}
#{body.to_plain_text.first(5000)}
#### Metadata