my-aws-helpers 3.0.0.dev4__tar.gz → 3.0.0.dev5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of my-aws-helpers might be problematic. Click here for more details.
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/PKG-INFO +1 -1
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/bedrock.py +1 -1
- my_aws_helpers-3.0.0.dev5/my_aws_helpers/prompts/transactions_headers_prompt_v2.txt +44 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/PKG-INFO +1 -1
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/SOURCES.txt +1 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/setup.py +1 -1
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/MANIFEST.in +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/README.md +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/api.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/auth.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/cognito.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/dynamo.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/errors.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/event.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/logging.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/prompts/__init__.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/prompts/markdown_system_prompt.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/prompts/transactions_headers_prompt.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/prompts/transactions_prompt.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/s3.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers/sfn.py +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/dependency_links.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/requires.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/top_level.txt +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/zip-safe +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/setup.cfg +0 -0
- {my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/tests/test_event.py +0 -0
|
@@ -12,7 +12,7 @@ import concurrent.futures
|
|
|
12
12
|
from dataclasses import dataclass
|
|
13
13
|
|
|
14
14
|
class PromptType(str, Enum):
|
|
15
|
-
transaction_headers = "
|
|
15
|
+
transaction_headers = "transactions_headers_prompt_v2.txt"
|
|
16
16
|
transactions = "transactions_prompt.txt"
|
|
17
17
|
# json = "json_system_prompt.txt"
|
|
18
18
|
markdown = "markdown_system_prompt.txt"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
You are an intelligent document and image interpreter.
|
|
2
|
+
|
|
3
|
+
Your task is to extract the headers of a table **only if it represents financial transactions**, such as those with dates, descriptions, amounts, or balances.
|
|
4
|
+
|
|
5
|
+
## Output Format (JSON only)
|
|
6
|
+
|
|
7
|
+
Return a JSON object in the following structure:
|
|
8
|
+
|
|
9
|
+
{
|
|
10
|
+
"headers": [
|
|
11
|
+
{ "header_name": "column number" }
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
## Rules
|
|
16
|
+
|
|
17
|
+
- Only return headers **if there is a table with transaction-like data** (e.g. purchases, sales, account activity).
|
|
18
|
+
- If no such table exists, return:
|
|
19
|
+
{
|
|
20
|
+
"headers": []
|
|
21
|
+
}
|
|
22
|
+
- The output must be strictly valid JSON. Do not include markdown, comments, or extra text.
|
|
23
|
+
- Do not fabricate or infer column names. Only return headers that are clearly **visible** in the image.
|
|
24
|
+
- Do not guess. If unsure or incomplete, treat it as missing and return an empty array.
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
✅ If the image contains a table with rows like:
|
|
29
|
+
| Date | Description | Amount |
|
|
30
|
+
Return:
|
|
31
|
+
{
|
|
32
|
+
"headers": [
|
|
33
|
+
{ "date": "column 1" },
|
|
34
|
+
{ "description": "column 2" },
|
|
35
|
+
{ "amount": "column 3" }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
❌ If no table with transaction data is present, return:
|
|
40
|
+
{
|
|
41
|
+
"headers": []
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
Do not return anything else.
|
|
@@ -21,5 +21,6 @@ my_aws_helpers.egg-info/zip-safe
|
|
|
21
21
|
my_aws_helpers/prompts/__init__.py
|
|
22
22
|
my_aws_helpers/prompts/markdown_system_prompt.txt
|
|
23
23
|
my_aws_helpers/prompts/transactions_headers_prompt.txt
|
|
24
|
+
my_aws_helpers/prompts/transactions_headers_prompt_v2.txt
|
|
24
25
|
my_aws_helpers/prompts/transactions_prompt.txt
|
|
25
26
|
tests/test_event.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/requires.txt
RENAMED
|
File without changes
|
{my_aws_helpers-3.0.0.dev4 → my_aws_helpers-3.0.0.dev5}/my_aws_helpers.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|