docs/tutorials/classification/ #28778
Replies: 4 comments 2 replies
-
But the restrictions have not taken effect in this sentence“Classification(sentiment='enojado', aggressiveness=8, language='es')” |
Beta Was this translation helpful? Give feedback.
-
Is this specific to OpenAI? Is it possible to get Ollama -llama3 version. |
Beta Was this translation helpful? Give feedback.
-
This tutorial does not work either with Gemini (1.5, flash or pro) or with any HuggingFace model. |
Beta Was this translation helpful? Give feedback.
-
I managed to make structured output work with the Deepseek model, and I think this approach may work for other non-OpenAI models as well. The main concept is to include our output requirements directly in the prompt and manually parse the JSON response into a BaseModel. https://github.com/NihilDigit/DeepSeek-Structured-Output-for-LangChain |
Beta Was this translation helpful? Give feedback.
-
docs/tutorials/classification/
Open In Colab
https://python.langchain.com/docs/tutorials/classification/
Beta Was this translation helpful? Give feedback.
All reactions