Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codecaine-zz/ollama

Example of using open source AI using ollama
https://github.com/codecaine-zz/ollama

ai chat ollama prompt python

Last synced: about 1 month ago
JSON representation

Example of using open source AI using ollama

Awesome Lists containing this project

README

        

# Ollama Chat

This Python script allows you to interact with the Ollama AI chat models.

## Requirements

- Python 3
- `requests` library
- `langchain-community` library
- `ollama` library
- Ollama app. You can download it from [here](https://ollama.ai/download)
- Ollama model. You can download it from [here](https://ollama.ai/library)

## Usage

Ensure that the Ollama app is running. You can start it with the `ollama serve` command.
brew
Then, run the script with:

```bash
python ollama_chat.py
python ollama_langchain.py
python ollama_generate.py
```

## Additional Resources

For more information, you can check out the Ollama project on [GitHub](https://github.com/jmorganca/ollama).