You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a smart way to discriminate the llm object to be from huggingface or ollama or openai?
for example something smarter than
iftype(llm) isHuggingFaceHub:
...
else
...
this is useful for example to choose whether to use a ChatPromptTemplate or to get the results by calling .content or not (when they are already string, for example from ollama / zephyr)
It seems that mixing open and close LLMs ends up mixing a lot of if -else for just some changes in the replied objects
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a smart way to discriminate the llm object to be from huggingface or ollama or openai?
for example something smarter than
this is useful for example to choose whether to use a ChatPromptTemplate or to get the results by calling
.content
or not (when they are already string, for example from ollama / zephyr)It seems that mixing open and close LLMs ends up mixing a lot of if -else for just some changes in the replied objects
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions