Skip to content

Commit

Permalink
Update: Metadata is included by default, Add: exclude_data arg to exc…
Browse files Browse the repository at this point in the history
…lude meta_data (#10)

* update: made metadata to be always included by default

* Update README.md

Signed-off-by: pk-zipstack <[email protected]>

---------

Signed-off-by: pk-zipstack <[email protected]>
  • Loading branch information
pk-zipstack authored Nov 19, 2024
1 parent 11c46b5 commit 582b0d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ The script uses a local SQLite database (`file_processing.db`) with the followin
- `time_taken` (REAL): Time taken to process the file
- `status_code` (INTEGER): API status code
- `status_api_endpoint` (TEXT): API endpoint for checking status
- `total_embedding_cost` (REAL): Total cost incurred for embeddings.
- `total_embedding_tokens` (INTEGER): Total tokens used for embeddings.
- `total_llm_cost` (REAL): Total cost incurred for LLM operations.
- `total_llm_tokens` (INTEGER): Total tokens used for LLM operations.
- `updated_at` (TEXT): Last updated timestamp
- `created_at` (TEXT): Creation timestamp

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

## Usage Examples
Expand Down
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Arguments:
skip_unprocessed: bool = False
log_level: str = "INFO"
print_report: bool = False
include_metadata: bool = False
include_metadata: bool = True
verify: bool = True


Expand Down Expand Up @@ -510,10 +510,10 @@ def main():
)

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

parser.add_argument(
Expand Down Expand Up @@ -546,4 +546,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit 582b0d1

Please sign in to comment.