Skip to content

Commit 582b0d1

Browse files
authored
Update: Metadata is included by default, Add: exclude_data arg to exclude meta_data (#10)
* update: made metadata to be always included by default * Update README.md Signed-off-by: pk-zipstack <praveen@zipstack.com> --------- Signed-off-by: pk-zipstack <praveen@zipstack.com>
1 parent 11c46b5 commit 582b0d1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ The script uses a local SQLite database (`file_processing.db`) with the followin
3030
- `time_taken` (REAL): Time taken to process the file
3131
- `status_code` (INTEGER): API status code
3232
- `status_api_endpoint` (TEXT): API endpoint for checking status
33+
- `total_embedding_cost` (REAL): Total cost incurred for embeddings.
34+
- `total_embedding_tokens` (INTEGER): Total tokens used for embeddings.
35+
- `total_llm_cost` (REAL): Total cost incurred for LLM operations.
36+
- `total_llm_tokens` (INTEGER): Total tokens used for LLM operations.
3337
- `updated_at` (TEXT): Last updated timestamp
3438
- `created_at` (TEXT): Creation timestamp
3539

@@ -60,7 +64,7 @@ This will display detailed usage information.
6064
- `--skip_unprocessed`: Skip unprocessed files when retrying failed files.
6165
- `--log_level`: Log level (default: `INFO`).
6266
- `--print_report`: Print a detailed report of all processed files at the end.
63-
- `--include_metadata`: Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.
67+
- `--exclude_metadata`: Exclude metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.
6468
- `--no_verify`: Disable SSL certificate verification. (By default, SSL verification is enabled.)
6569

6670
## Usage Examples

main.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Arguments:
3535
skip_unprocessed: bool = False
3636
log_level: str = "INFO"
3737
print_report: bool = False
38-
include_metadata: bool = False
38+
include_metadata: bool = True
3939
verify: bool = True
4040

4141

@@ -510,10 +510,10 @@ def main():
510510
)
511511

512512
parser.add_argument(
513-
"--include_metadata",
513+
"--exclude_metadata",
514514
dest="include_metadata",
515-
action="store_true",
516-
help="Include metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.",
515+
action="store_false",
516+
help="Exclude metadata on tokens consumed and the context passed to LLMs for prompt studio exported tools in the result for each file.",
517517
)
518518

519519
parser.add_argument(
@@ -546,4 +546,4 @@ def main():
546546

547547

548548
if __name__ == "__main__":
549-
main()
549+
main()

0 commit comments

Comments
 (0)