docs: ollama doc update (toolcalling, install, notebook examples) #25549
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The new
langchain-ollama
package seems pretty well implemented, but I noticed the docs were still outdated so I decided to fix em up a bit.Problem: Docs note langchain-community instead of langchain-ollama
Solution: Update docs to https://python.langchain.com/v0.2/docs/integrations/chat/ollama/
Problem: OllamaFunctions is deprecated, as noted on Integrations: This was an experimental wrapper that attempts to bolt-on tool calling support to models that do not natively support it. The primary Ollama integration now supports tool calling, and should be used instead.
Solution: Delete old notebook from repo, update the existing one with @tool decorator + pydantic examples to the notebook
Problem: Llama3.1 was released while llama3-groq-tool-call fine-tune Is noted in notebooks.
Solution: update docs + notebooks to llama3.1 (which has improved tool calling support)
Problem: Install instructions are incomplete, there is no information to download a model and/or run the Ollama server
Solution: Add simple instructions to start the ollama service and pull model (for toolcalling)