Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

📥 Pull Request

📘 Description
Adds a working Haystack integration example and fixes broken documentation links. The existing Haystack docs page referenced non-existent notebook files - this PR creates an actual working example and wires it into the CI system.

Changes:

  • New example: examples/haystack/haystack_example.py - Simple script using Haystack 2.x with OpenAI generator
  • 📦 Dependencies: Added requirements.txt with haystack-ai>=2.0.0 and openai>=1.0.0
  • 🔧 CI integration: Added example to the examples-integration-test workflow matrix
  • 📝 Docs fix: Updated docs/v1/integrations/haystack.mdx to link to the actual working example instead of broken links

🧪 Testing

  • The example will be tested automatically by the Examples Integration Test workflow
  • Uses AgentOps provider-level auto-instrumentation (OpenAI instrumentor) to capture LLM calls made through Haystack's OpenAIGenerator
  • Follows the same pattern as other framework examples in the repo

🚨 Key Review Areas:

  1. Haystack API usage: Verify that OpenAIGenerator.run() API and response format ({"replies": [...]}) is correct for Haystack 2.x
  2. Auto-instrumentation: Confirm that AgentOps OpenAI instrumentor will capture calls made through Haystack's wrapper
  3. CI workflow: Check that the matrix entry follows the established pattern
  4. Requirements: Ensure version constraints are appropriate and won't conflict with other CI dependencies

Link to Devin run: https://app.devin.ai/sessions/684e8b0399eb48c2b09cf5e9a9b96bf8
Requested by: @areibman

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 3 commits August 27, 2025 18:48
…nd_trace to ensure session URL and proper validation

Co-Authored-By: Alex <[email protected]>
@areibman areibman merged commit 419f40c into main Aug 27, 2025
31 of 43 checks passed
@areibman areibman deleted the devin/1756320374-haystack-integration branch August 27, 2025 19:52
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.

2 participants