feat: improve CLI with output format, verbose mode, and API key validation#192
Open
ennajari wants to merge 1 commit intoVectifyAI:mainfrom
Open
feat: improve CLI with output format, verbose mode, and API key validation#192ennajari wants to merge 1 commit intoVectifyAI:mainfrom
ennajari wants to merge 1 commit intoVectifyAI:mainfrom
Conversation
…ation - Add --output-format flag (json/markdown) for human-readable output - Add --output-dir flag for custom output directory - Add --verbose flag for detailed LLM request logging - Add automatic API key validation with provider-specific error messages - Add tqdm progress bar (optional, graceful fallback) - Add full docstrings and type hints to all helper functions - Update README with new CLI options documentation
Author
|
Note: I'm aware of #19 which adds tqdm progress bars. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Improves the CLI experience of
un_pageindex.py\ with three new features:
1. Output format (--output-format markdown)
Converts the JSON tree structure to a readable Markdown outline with headings, page ranges, and summaries.
2. Verbose logging (--verbose)
Enables detailed LLM request logging for debugging.
3. API key validation (automatic)
Detects the provider from --model\ flag and shows actionable error messages before processing starts.
Additional
No breaking changes