obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Problem when using Local Model and chat with note

Open haluwong opened this issue 1 year ago • 1 comments

Running Ollama with llama2:13b

When using "Chat" mode to ask question about the active note. It will not working as expected.

Attached with the screen capture.

Is it the problem in Ollama side or related the input context length?

screen_20240322_09

INSTALL.md

haluwong avatar Mar 22 '24 10:03 haluwong

It seems the note was passed correctly. You can click BufferWindowMemory and find the messages and confirm it the previous note is in it. It should be, given the screenshot.

My biggest suspicion is your context window setting in Ollama. Can you refer to https://github.com/logancyang/obsidian-copilot/blob/master/local_copilot.md#ollama and make sure you set the context window correctly. I recommend Mistral models with a 32k window if your machine has enough RAM.

logancyang avatar Mar 22 '24 21:03 logancyang