Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it the right solution to wrap pipelines into API services? #12

Open
frankShih opened this issue Apr 22, 2024 · 2 comments
Open

Is it the right solution to wrap pipelines into API services? #12

frankShih opened this issue Apr 22, 2024 · 2 comments
Labels
question Further information is requested

Comments

@frankShih
Copy link

I have a web app of chatbot, and I am trying to re-write the RAG logic using haystack.

Now, I am looking for a solution to wrap these pipeline into APIs for my frontend server to call.

Can I use this solution? Does it have a stable version for production?
Or, maybe I should try to implement it by my own?

Any suggestions?

@r115
Copy link

r115 commented Apr 27, 2024

Seeing no obvious solutions for middlewares on this; if you want your service to be available on the internet and a little bit resilient you need to develop a middleware layer facing outside and leave hayhooks running as an 'internal' service.

Nginx on its own has a lot of sensible defaults and can help.

In my case running this behind a kubernetes load balancer is easy. I can keep adding to the middleware as I see fit. Subscriptions, rate limiting, ip address blocking etc

YMMV

@masci masci added the question Further information is requested label May 9, 2024
@masci
Copy link
Contributor

masci commented May 9, 2024

Hi @frankShih

Hayhooks is currently in alpha status (latest release is 0.0.13) but it has to be considered the standard way to run Haystack pipelines behind a REST api. You can already use it, or take inspiration from it if you want to go with a custom service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants