Skip to content

Add Web Automation Example with Structured Data Extraction #93

@jmanhype

Description

@jmanhype

Title: Add Web Automation Example with Structured Data Extraction

Description

I've developed an integration between instructor_ex and web automation tools that demonstrates how to extract structured data from web content. This pattern could be a valuable addition to the examples, as it showcases instructor_ex's capabilities with real-world web content.

Features

The example demonstrates:

  1. Using instructor_ex with LLM APIs (llama.cpp) for structured data extraction from web content
  2. Practical prompt engineering patterns to ensure complete information retrieval
  3. Error handling and timeout management for web automation tasks
  4. Schema validation for ensuring quality of extracted data

Proposed Changes

I'd like to contribute:

  1. A standalone web_automation_example.exs file that shows the integration
  2. A README with explanations, usage instructions, and customization guidance

Implementation Details

The example includes:

  • Schemas: WebSearchResult and WebAutomationSummary for structured data
  • ProxyClient: A simple client for interacting with web automation services
  • WebAutomation: The integration module that combines the services
  • Main example code: Showing usage with command line arguments

Benefits

This example would help users:

  1. Understand how to use instructor_ex with external data sources
  2. Learn effective prompt engineering patterns
  3. Implement robust error handling
  4. Build real-world applications that combine web automation with LLMs

Questions

  1. Do you think this would be a valuable addition to the examples?
  2. Should I structure it as a standalone example or integrate it elsewhere?
  3. Are there specific aspects of the integration you'd like me to emphasize?

I'm happy to make any adjustments to better align with the project's goals and coding standards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions