We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Serve Haystack pipelines using Litserve.
With its core reason to use being to serve AI/LLM models. I would like to showcase the capabilities of Haystack with Litserve.
Eg:
import litserve as ls from haystack import Pipeline, PredefinedPipeline class HaystackPredefinedLitAPI(ls.LitAPI): def setup(self): self.pipeline = Pipeline.from_template(PredefinedPipeline.GENERATIVE_QA) def decode_request(self, request): return request["query"] def predict(self, question): return self.pipeline.run({"prompt_builder": {"question": question}}) def encode_response(self, output): return {"output": output} if __name__ == "__main__": server = ls.LitServer(HaystackPredefinedLitAPI(), accelerator="auto") server.run(port=8000)
I would like to show how custom pipelines can be built and run.
The text was updated successfully, but these errors were encountered:
@srini047 if you created an example/demo we would be happy to share it/showcase it
Sorry, something went wrong.
Sure, I shall work on the code with demo.
No branches or pull requests
Notebook
Serve Haystack pipelines using Litserve.
Reason
With its core reason to use being to serve AI/LLM models. I would like to showcase the capabilities of Haystack with Litserve.
Prework
Eg:
I would like to show how custom pipelines can be built and run.
The text was updated successfully, but these errors were encountered: