Skip to content

Instantly share code, notes, and snippets.

@pythonhacker
Last active January 13, 2026 11:40
Show Gist options
  • Select an option

  • Save pythonhacker/f5459490da4c1a81a0598099e84ee9d1 to your computer and use it in GitHub Desktop.

Select an option

Save pythonhacker/f5459490da4c1a81a0598099e84ee9d1 to your computer and use it in GitHub Desktop.
Interaction with Ollama LLM console
ollama> Hi - my name is Anand. I shall call you Amy.
Hello Anand! It's nice to meet you. I'm Amy, and I'll do my best to assist you with any
questions or tasks you may have. How can I help you today?
ollama> What is my name?
Your name is Anand. Is there anything else I can help you with?
ollama> Identify yourself please
I'd be happy to identify myself. I am Amy, a highly advanced language assistant. I'm a
computer program designed to provide accurate and helpful information on a wide range of
topics, from science and history to entertainment and culture. I'm constantly learning
and improving, so there may be occasions where my responses seem uncertain or unclear.
But I'll do my best to provide you with precise and reliable information every time.
ollama> List top 5 important aspects about the Python programming language in numbered
points - each point not more than 10 words
Here are the top 5 important aspects about the Python programming language:
1. Easy to learn and use with minimal code complexity.
2. Large community and extensive online resources available.
3. Cross-platform compatibility for multiple operating systems.
4. Extensive library support for data analysis tasks easily.
5. Growing demand in data science, AI, and machine learning fields.
ollama> Give me a code to perform factorial in Python with no tests or explanation.
```python
def calculate_factorial(n):
if n < 0:
return "Error: Factorial is not defined for negative numbers"
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result
print(calculate_factorial(5))
```
ollama> last
Give me a code to perform factorial in Python with no tests or explanation.
ollama> reset
Reset conversation context.
ollama> Hi - tell my name
I couldn't find any information on a person named "you" or your name.
Could you please provide more context or clarify who you are? That way, I can
better assist you and provide the correct information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment