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

Add OpenAIEmbeddingCustom #1158

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

tirongi
Copy link
Contributor

@tirongi tirongi commented Oct 30, 2023

Similarly to the OpenAIChatModelCustom node,
this feature allow to select a customised modelName or the default one.

This feature allow to select a customised modelName or the default one.
@HenryHengZJ
Copy link
Contributor

HenryHengZJ commented Oct 31, 2023

Can we add an extra field for Model Name on the existing OpenAIEmbedding node instead of creating a new custom node?
Reason ChatOpenAICustom was created separately because the original ChatOpenAI node has different pre-coded dropdown options for different models, whereas OpenAIEmbedding has only 1 model, so there is no need for dropdown.

We can have the extra Model Name field added in, and when provided, it will be used: if (modelName) obj.modelName= modelName

@tirongi
Copy link
Contributor Author

tirongi commented Nov 2, 2023

Can we add an extra field for Model Name on the existing OpenAIEmbedding node instead of creating a new custom node? Reason ChatOpenAICustom was created separately because the original ChatOpenAI node has different pre-coded dropdown options for different models, whereas OpenAIEmbedding has only 1 model, so there is no need for dropdown.

We can have the extra Model Name field added in, and when provided, it will be used: if (modelName) obj.modelName= modelName

Hi, thanks for your comment.

In the beginning I did what you said, but then I realised that would be better to use the same approach used in OpenAI chat model components for better extensibility beyond the reason of the analogy between chat and embedding components.
I thought the case eventually OpenAI in the future may release some other embedding model and we want to pre-code them in the "not-custom" model, in this way we will fall in the same case as in the chat model.

@HenryHengZJ
Copy link
Contributor

HenryHengZJ commented Nov 2, 2023

Can we add an extra field for Model Name on the existing OpenAIEmbedding node instead of creating a new custom node? Reason ChatOpenAICustom was created separately because the original ChatOpenAI node has different pre-coded dropdown options for different models, whereas OpenAIEmbedding has only 1 model, so there is no need for dropdown.
We can have the extra Model Name field added in, and when provided, it will be used: if (modelName) obj.modelName= modelName

Hi, thanks for your comment.

In the beginning I did what you said, but then I realised that would be better to use the same approach used in OpenAI chat model components for better extensibility beyond the reason of the analogy between chat and embedding components. I thought the case eventually OpenAI in the future may release some other embedding model and we want to pre-code them in the "not-custom" model, in this way we will fall in the same case as in the chat model.

yeah got it, make sense. Dont have a strong preference though. Thanks!

@HenryHengZJ HenryHengZJ merged commit 74260ad into FlowiseAI:main Nov 2, 2023
hemati pushed a commit to hemati/Flowise that referenced this pull request Dec 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants