Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codecaine-zz/ollama
- Owner: codecaine-zz
- Created: 2024-01-19T21:35:36.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T02:49:50.000Z (11 months ago)
- Last Synced: 2024-02-01T03:50:43.500Z (11 months ago)
- Topics: ai, chat, ollama, prompt, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
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).