mobiusml / aana_sdk

Aana SDK is a powerful framework for building AI enabled multimodal applications.
https://www.mobiuslabs.com/
Apache License 2.0
26 stars 3 forks source link

Haystack Integration #94

Closed movchan74 closed 5 months ago

movchan74 commented 5 months ago

Summary: This Pull Request facilitates a scalable deployment of Haystack components. The new deployment approach is designed to optimize resource usage and improve efficiency by reusing instantiated models across different applications and endpoints.

Key Changes:

  1. HaystackComponentDeployment: Introduced a new deployment that allows any Haystack component to be launched as a Deployment.

  2. RemoteHaystackComponent: Added functionality to connect remotely to Haystack Component Deployments from within the Haystack Pipeline.

  3. Integration Test Suite: Implemented testing for the new deployment and remote connection capabilities to ensure robust integration and functionality.

  4. Asynchronous Utility Function (run_async): Added a utility function to facilitate asynchronous operations within synchronous environments. This function is essential for interacting with Haystack components that do not support async operations yet. The function works with asyncio and uvloop (uvloop is used by default in Ray).