Skip to content

Commit

Permalink
README.md: Add Ollama num_ctx note
Browse files Browse the repository at this point in the history
  • Loading branch information
DougHaber committed Jan 27, 2025
1 parent aa597e1 commit e7b82cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ Production ramps, profits rise
Autonomous roads
```

With text and PDF files, the LLM must support large context windows. For users working with Ollama, the default is set low to 2048 tokens, and anything beyond that is truncated causing bad responses. To fix this, adjust the `num_ctx` parameter within Ollama.

By default, filenames are not provided to the LLM, but this behavior can be changed via `model.provide_attachment_filenames`.

```
Expand Down

0 comments on commit e7b82cd

Please sign in to comment.