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

hayhooks: new Pipeline deployment #57

Open
mpangrazzi opened this issue Jan 17, 2025 · 0 comments
Open

hayhooks: new Pipeline deployment #57

mpangrazzi opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@mpangrazzi
Copy link
Contributor

mpangrazzi commented Jan 17, 2025

Motivation

Currently, the /deploy endpoint is accepting pipeline's YAML (as string) and pipeline's name. This seems ok, but as we know it also causes many issues while trying to create Pydantic models for component's inputs/outputs.

If we want a smooth integration with open-webui, we need to consider that the user's input will be basically a message (in OpenAI format) and nothing else.

Currently, if we deploy this pipeline, to call it we need to provide this JSON body:

{
  "converter": {
    "meta": {},
    "extraction_kwargs": {}
  },
  "fetcher": {
    "urls": [
      "https://www.redis.io"
    ]
  },
  "llm": {
    "system_prompt": "string",
    "generation_kwargs": {}
  },
  "prompt": {
    "query": "What is redis?",
    "template": "string",
    "template_variables": {}
  }
}

So the problem is: this pipeline accept multiple inputs (e.g. prompt.query and/or fetcher.urls) while we have one message coming from the user.

To solve this, I would implement first a deployment approach similar to the one we saw in Pipelines, where the pipeline execution is defined on a user's defined method of a wrapper class, having the user's message as an input.

@mpangrazzi mpangrazzi self-assigned this Jan 17, 2025
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

No branches or pull requests

1 participant