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

Disable or hide some components that came by default #2597

Closed
codenprogressive opened this issue Jul 9, 2024 · 6 comments
Closed

Disable or hide some components that came by default #2597

codenprogressive opened this issue Jul 9, 2024 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@codenprogressive
Copy link

Context

In my company, we have been exploring and experimenting with Langflow for quite some time. We are considering deploying this framework in our production environment and made available the various components (default ones that come with Langflow + the custom one that our team created to serve various use cases).
However, due to our enterprise Privacy & Secuity policies, we would like to be able to remove (or hide) some components that are not approved by the company policies. For example, only VertexAI LLMs and self-hosted open-sources LLMs are allowed to be used. hence, we would like to hide OpenAI, Cohere, etc from the Models marketplace!

Same request applies to Vector Stores technologies

The Ask
Is there anyway we can hide some of the components? if yes, can you provide some direction on how to do so?

image

@dosubot dosubot bot added the question Further information is requested label Jul 9, 2024
@nicoloboschi
Copy link
Contributor

@codenprogressive you can directly delete the components file before deploying Langflow.
Those you're mentioning are in the components/models directory here: https://github.com/langflow-ai/langflow/tree/main/src/backend/base/langflow/components/models

@codenprogressive
Copy link
Author

Thanks for the hint. By the way I'm deploying Langflow by pip installing. We add our custom components, then we push to our GitLab. Not sure how to remove some default components programmatically?

Suggestion
It would be really practical if we can manage the add/remove of components through a variable in .env. something like LANGFLOW_COMPONENTS_TO_REMOVE or LANGFLOW_COMPONENTS_TO_KEEP.

@carlosrcoelho
Copy link
Contributor

@codenprogressive

Do you need any assistance with this case? If not, please let us know if this issue can be closed.

@codenprogressive
Copy link
Author

Hi @carlosrcoelho this is more a feature request.
I was wondering if we can control what we make available as components through Langflow platform. For example, the company I'm working in is not allowing OpenAI models.
The feature I was requesting is: can we manage the add/remove of components through a variable in .env. something like LANGFLOW_COMPONENTS_TO_REMOVE or LANGFLOW_COMPONENTS_TO_KEEP.

@carlosrcoelho
Copy link
Contributor

@codenprogressive
You can do this, but you'll have to modify the source code of Langflow. So, you'll need to fork it and then make the changes you want. At least for today, that's how it would be. I hope this helps you.

@codenprogressive
Copy link
Author

got it, that's what I ended up doing! thanks!

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