Files
langchain/docs/vercel.json
Bob Merkus 8e3e532e7d docs: ollama doc update (toolcalling, install, notebook examples) (#25549)
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.

- Llama3.1 was release on 23rd of July;
https://ai.meta.com/blog/meta-llama-3-1/
- Ollama supports tool calling since 25th of July;
https://ollama.com/blog/tool-support
- LangChain Ollama partner package was released 1st of august;
https://pypi.org/project/langchain-ollama/

**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](https://python.langchain.com/v0.2/docs/integrations/chat/ollama_functions/):
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](https://python.langchain.com/v0.2/docs/integrations/chat/ollama/) 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)

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-08-20 09:20:59 -04:00

111 lines
3.1 KiB
JSON

{
"buildCommand": "yarn build",
"outputDirectory": "build",
"ignoreCommand": "bash ignore-step.sh",
"trailingSlash": true,
"rewrites": [
{
"source": "/v0.1",
"destination": "https://langchain-v01.vercel.app/v0.1"
},
{
"source": "/v0.1/:path(.*/?)*",
"destination": "https://langchain-v01.vercel.app/v0.1/:path*"
},
{
"source": "/robots.txt(/?)",
"destination": "/v0.2/robots.txt/"
},
{
"source": "/sitemap.xml(/?)",
"destination": "/v0.2/sitemap.xml/"
}
],
"redirects": [
{
"source": "/v0.2/docs/versions/packages(/?)",
"destination": "/v0.2/docs/versions/release_policy/"
},
{
"source": "/v0.2/docs/integrations/llms/llm_caching(/?)",
"destination": "/v0.2/docs/integrations/llm_caching/"
},
{
"source": "/docs/how_to/tool_calls_multi_modal(/?)",
"destination": "/docs/how_to/multimodal_inputs/"
},
{
"source": "/v0.2/docs/langsmith(/?)",
"destination": "https://docs.smith.langchain.com/"
},
{
"source": "/v0.2/docs/langgraph(/?)",
"destination": "https://langchain-ai.github.io/langgraph"
},
{
"source": "/",
"destination": "/v0.2/docs/introduction/"
},
{
"source": "/docs(/?)",
"destination": "/v0.2/docs/introduction/"
},
{
"source": "/docs/get_started/introduction(/?)",
"destination": "/v0.2/docs/introduction/"
},
{
"source": "/docs/integrations/:path(.*/?)*",
"destination": "/v0.2/docs/integrations/:path*"
},
{
"source": "/docs/:path(.*/?)*",
"destination": "/v0.1/docs/:path*"
},
{
"source": "/cookbook(/?)",
"destination": "/v0.1/docs/cookbook/"
},
{
"source": "/v0.2/docs/how_to/migrate_chains(/?)",
"destination": "/v0.2/docs/versions/migrating_chains"
},
{
"source": "/v0.2/docs/integrations/tools/search_tools/",
"destination": "/v0.2/docs/integrations/tools#search"
},
{
"source": "/v0.2/docs/integrations/toolkits/airbyte_structured_qa/",
"destination": "/v0.2/docs/integrations/document_loaders/airbyte/"
},
{
"source": "/v0.2/docs/integrations/tools/connery_toolkit/",
"destination": "/v0.2/docs/integrations/tools/connery/"
},
{
"source": "/v0.2/docs/integrations/tools/polygon_toolkit/",
"destination": "/v0.2/docs/integrations/tools/polygon/"
},
{
"source": "/v0.2/docs/integrations/toolkits/document_comparison_toolkit(/?)",
"destination": "/v0.2/docs/tutorials/rag/"
},
{
"source": "/v0.2/docs/integrations/toolkits/:path(.*/?)*",
"destination": "/v0.2/docs/integrations/tools/:path*"
},
{
"source": "/v0.2/docs/integrations/toolkits/spark/",
"destination": "/v0.2/docs/integrations/tools/spark_sql/"
},
{
"source": "/v0.2/docs/integrations/toolkits/xorbits/",
"destination": "/v0.2/docs/integrations/tools#search"
},
{
"source": "/v0.2/docs/integrations/chat/ollama_functions/",
"destination": "https://python.langchain.com/v0.1/docs/integrations/chat/ollama_functions/"
}
]
}