Skip to content

Conversation

aksg87
Copy link
Collaborator

@aksg87 aksg87 commented Aug 2, 2025

Summary

This PR ensures consistent file saving behavior across all documentation examples by adding output_dir="." to all save_annotated_documents calls.

Problem

Without explicitly setting output_dir, files are saved to test_output/ by default, which can confuse users who expect files to be saved in their current directory.

Solution

Added output_dir="." parameter to all save_annotated_documents calls in:

  • README.md
  • docs/examples/longer_text_example.md
  • docs/examples/medication_examples.md (first occurrence)

This follows the same pattern that was applied to one instance in medication_examples.md previously.

Testing

All examples have been verified to include the parameter. Users will now find their output files in their current working directory as expected.

Prevents confusion from default `test_output/...` by explicitly saving to current directory.
@aksg87 aksg87 merged commit 1fb1f1d into main Aug 2, 2025
3 checks passed
@aksg87 aksg87 deleted the fix/output-dir-consistency branch August 4, 2025 01:57
aksg87 added a commit that referenced this pull request Aug 21, 2025
docs: add output_dir="." to all save_annotated_documents examples
sinnaj referenced this pull request in sinnaj/langextract Sep 3, 2025
docs: add output_dir="." to all save_annotated_documents examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant