-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
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:
- Using instructor_ex with LLM APIs (llama.cpp) for structured data extraction from web content
- Practical prompt engineering patterns to ensure complete information retrieval
- Error handling and timeout management for web automation tasks
- Schema validation for ensuring quality of extracted data
Proposed Changes
I'd like to contribute:
- A standalone
web_automation_example.exs
file that shows the integration - A README with explanations, usage instructions, and customization guidance
Implementation Details
The example includes:
- Schemas:
WebSearchResult
andWebAutomationSummary
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:
- Understand how to use instructor_ex with external data sources
- Learn effective prompt engineering patterns
- Implement robust error handling
- Build real-world applications that combine web automation with LLMs
Questions
- Do you think this would be a valuable addition to the examples?
- Should I structure it as a standalone example or integrate it elsewhere?
- 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
Labels
No labels