Skip to content

Commit 84a2314

Browse files
authored
examples: remove codified examples (ollama#8267)
1 parent 17fcdea commit 84a2314

File tree

85 files changed

+23
-8775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+23
-8775
lines changed

api/examples/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Ollama API Examples
2+
3+
Run the examples in this directory with:
4+
5+
```
6+
go run example_name/main.go
7+
```
8+
## Chat - Chat with a model
9+
- [chat/main.go](chat/main.go)
10+
11+
## Generate - Generate text from a model
12+
- [generate/main.go](generate/main.go)
13+
- [generate-streaming/main.go](generate-streaming/main.go)
14+
15+
## Pull - Pull a model
16+
- [pull-progress/main.go](pull-progress/main.go)
17+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/README.md docs/examples.md

+6
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ Ollama JavaScript examples at [ollama-js/examples](https://github.com/ollama/oll
1212

1313
## OpenAI compatibility examples
1414
Ollama OpenAI compatibility examples at [ollama/examples/openai](../docs/openai.md)
15+
16+
17+
## Community examples
18+
19+
- [LangChain Ollama Python](https://python.langchain.com/docs/integrations/chat/ollama/)
20+
- [LangChain Ollama JS](https://js.langchain.com/docs/integrations/chat/ollama/)

examples/.gitignore

-174
This file was deleted.

examples/flyio/.gitignore

-1
This file was deleted.

examples/flyio/README.md

-67
This file was deleted.

examples/go-http-generate/main.go

-29
This file was deleted.

examples/jupyter-notebook/README.md

-5
This file was deleted.

0 commit comments

Comments
 (0)