Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
74f00474
Unverified
Commit
74f00474
authored
Aug 14, 2023
by
Bruce MacDonald
Committed by
GitHub
Aug 14, 2023
Browse files
Merge pull request #340 from gusanmaz/main
Update langchainpy.md
parents
22885aea
4c33a9ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/tutorials/langchainpy.md
docs/tutorials/langchainpy.md
+1
-1
No files found.
docs/tutorials/langchainpy.md
View file @
74f00474
...
@@ -18,7 +18,7 @@ Then we can create a model and ask the question:
...
@@ -18,7 +18,7 @@ Then we can create a model and ask the question:
```
python
```
python
from
langchain.llms
import
Ollama
from
langchain.llms
import
Ollama
ollama
=
Ollama
(
base_url
=
'
[
http://localhost:11434
](http://localhost:11434/)
'
,
ollama
=
Ollama
(
base_url
=
'http://localhost:11434'
,
model
=
"llama2"
)
model
=
"llama2"
)
print
(
ollama
(
"why is the sky blue"
))
print
(
ollama
(
"why is the sky blue"
))
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment