Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ollama context size #496

Open
itsmebcc opened this issue Nov 29, 2024 · 0 comments
Open

add ollama context size #496

itsmebcc opened this issue Nov 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@itsmebcc
Copy link

ollama functions very poorly in all scenarios as the amount of context given by default is 2048 which means it handles the system prompt and that is about it. If you modify src/lib/providers/ollama.ts and on line 29 add:

      numCtx: 8192

then the ollama model will actually have enough context to see the system prompt, as well as the context added by the search results.

@itsmebcc itsmebcc added the enhancement New feature or request label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant