You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use 'ollama' for long text processing, then the 'system' statements will no longer be effective. Instead, it will produce random outputs. The model is 'llama3-gradient'.
systemmsg="""
Please analyze the type of website based on the 'body' content I provide, and return to me in JSON format with the structure {type:..., why:...}.
"""
def get_webpage_content(url):
try:
if response.status_code == 200:
return response.text
else:
print(f'Failed to retrieve the webpage. Status code: {response.status_code}')
return None
except requests.exceptions.RequestException as e:
print(f'An error occurred: {e}')
return None
body = get_webpage_content('http://www.sohu.com')
response = ollama.generate(model='llama3-gradient', prompt=body,format='json',options={
"seed": 123,
"num_ctx": 32000
},
system=systemmsg)
print(response['response'])
OS
Windows
GPU
Nvidia
CPU
Intel
Ollama version
0.1.34
The text was updated successfully, but these errors were encountered:
What is the issue?
If I use 'ollama' for long text processing, then the 'system' statements will no longer be effective. Instead, it will produce random outputs. The model is 'llama3-gradient'.
OS
Windows
GPU
Nvidia
CPU
Intel
Ollama version
0.1.34
The text was updated successfully, but these errors were encountered: