Skip to content

[Feature Request]: Add an API endpoint for refreshing Embeddings #13994

@chevyriet

Description

@chevyriet

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

I am currently running 2 instances of the WebUI locally, and that (for performance reasons) both use different hardware for different tasks. I interact with those via a backend communicating with the API. When I create an embedding on one instance it needs a manual refresh (e.g. refreshing the browser window, using the button in the UI etc) before the other instance can use it.

As far as I know its currently possible to do something like refreshing via the API only for Checkpoints and VAE's, not for embeddings.

An API endpoint for refreshing the embeddings would be a big problem solver for not only my use-case but lots of others in terms of automation.

Proposed workflow

In my case:

  1. Perform an operation on an embedding that needs a refresh to be accessed somewhere else (e.g. another instance)
  2. Make a request to the corresponding URL for refreshing embeddings as shown in the API docs
  3. Use the newly available embedding any way you want in your preferred location

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions