-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: Changes for line-item prompt type (#880)
* Changes for line-item extraction prompt type Signed-off-by: Deepak <[email protected]> * Removed commented out code Signed-off-by: Deepak <[email protected]> * Minor fix Signed-off-by: Deepak <[email protected]> * Minor improvements Signed-off-by: Deepak <[email protected]> * [FEAT] FS APIs for Line item extractor (#1060) * FS APIs for Line item extractor * Optimizing if-else branch * Minor fix Signed-off-by: Deepak <[email protected]> --------- Signed-off-by: Deepak <[email protected]> Signed-off-by: Deepak K <[email protected]> Co-authored-by: harini-venkataraman <[email protected]>
- Loading branch information
1 parent
22ebaf3
commit 6989a7d
Showing
7 changed files
with
172 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...end/prompt_studio/prompt_studio_v2/migrations/0006_alter_toolstudioprompt_enforce_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Generated by Django 4.2.1 on 2025-01-09 21:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("prompt_studio_v2", "0005_alter_toolstudioprompt_required"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="toolstudioprompt", | ||
name="enforce_type", | ||
field=models.TextField( | ||
blank=True, | ||
choices=[ | ||
("Text", "Response sent as Text"), | ||
("number", "Response sent as number"), | ||
("email", "Response sent as email"), | ||
("date", "Response sent as date"), | ||
("boolean", "Response sent as boolean"), | ||
("json", "Response sent as json"), | ||
("table", "Response sent as table"), | ||
( | ||
"record", | ||
"Response sent for records. Entries of records are list of logical and organized individual entities with distint values", | ||
), | ||
( | ||
"line-item", | ||
"Response sent as line-item which is large a JSON output. If extraction stopped due to token limitation, we try to continue extraction from where it stopped", | ||
), | ||
], | ||
db_comment="Field to store the type in which the response to be returned.", | ||
default="Text", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters