Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions Ollama-instruction.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ npm run dev

## Alternative using Dockerfile

1. Build the docker image `docker build -f Dockerfile-ollama-local -t deepwiki:ollama-local .`
2. Run the container:
1. Configure the Local Embedder for Ollama:
```
cp api/config/embedder.ollama.json.bak api/config/embedder.json
# overwrite api/config/embedder.json? (y/n [n]) y
Comment on lines +85 to +86
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The comment simulating an interactive prompt can be confusing for users. Using cp -f makes the command non-interactive and the instruction clearer, which is better for instructions that might be copy-pasted.

Suggested change
cp api/config/embedder.ollama.json.bak api/config/embedder.json
# overwrite api/config/embedder.json? (y/n [n]) y
cp -f api/config/embedder.ollama.json.bak api/config/embedder.json

```

2. Build the docker image `docker build -f Dockerfile-ollama-local -t deepwiki:ollama-local .`
3. Run the container:
```bash
# For regular use
docker run -p 3000:3000 -p 8001:8001 --name deepwiki \
Expand All @@ -97,9 +103,9 @@ npm run dev
deepwiki:ollama-local
```

3. When using local repositories in the interface: use `/app/local-repos/repo-name` as the local repository path.
4. When using local repositories in the interface: use `/app/local-repos/repo-name` as the local repository path.

4. Open http://localhost:3000 in your browser
5. Open http://localhost:3000 in your browser

Note: For Apple Silicon Macs, the Dockerfile automatically uses ARM64 binaries for better performance.

Expand Down
6 changes: 6 additions & 0 deletions api/config/embedder.ollama.json.bak
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"embedder_ollama": {
"client_class": "OllamaClient",
"model_kwargs": {
"model": "nomic-embed-text"
}
},
Comment on lines +2 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This new embedder_ollama configuration is identical to the existing embedder configuration in this file. This duplication can lead to maintenance issues, as changes to the Ollama embedder configuration would need to be made in two places. To improve maintainability, it would be ideal to avoid this duplication.

"embedder": {
"client_class": "OllamaClient",
"model_kwargs": {
Expand Down