Skip to content

Commit

Permalink
Update ollama.mdx (langchain-ai#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Nov 11, 2023
1 parent 3289345 commit ef39298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/integrations/chat/ollama.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import OllamaExample from "@examples/models/chat/integration_ollama.ts";

Ollama also supports a JSON mode that coerces model outputs to only return JSON. Here's an example of how this can be useful for extraction:

import OllamaExample from "@examples/models/chat/integration_ollama_json_mode.ts";
import OllamaJSONModeExample from "@examples/models/chat/integration_ollama_json_mode.ts";

<CodeBlock language="typescript">{OllamaExample}</CodeBlock>
<CodeBlock language="typescript">{OllamaJSONModeExample}</CodeBlock>

You can see a simple LangSmith trace of this here: https://smith.langchain.com/public/92aebeca-d701-4de0-a845-f55df04eff04/r

0 comments on commit ef39298

Please sign in to comment.