Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bigsk1/ollama-tools
Advanced AI functionalities, including tool usage, context aware similarity with Ollama models
https://github.com/bigsk1/ollama-tools
ai-tools homelab llama3 llama3-8b ollama ollama-tools selfhosted terminal-based
Last synced: 1 day ago
JSON representation
Advanced AI functionalities, including tool usage, context aware similarity with Ollama models
- Host: GitHub
- URL: https://github.com/bigsk1/ollama-tools
- Owner: bigsk1
- Created: 2024-08-01T10:03:05.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T13:28:13.000Z (about 2 months ago)
- Last Synced: 2024-09-18T18:26:07.268Z (7 days ago)
- Topics: ai-tools, homelab, llama3, llama3-8b, ollama, ollama-tools, selfhosted, terminal-based
- Language: Python
- Homepage: https://bigsk1.com
- Size: 208 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Ollama Tools Ai
![Ollama AI Logo](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/ef22576a-7bfe-4a35-9549-df3946ce6c00/public)
## Overview
Ollama Tools AI is a work-in-progress project focused on implementing advanced AI functionalities, including function calling and tool usage. This project aims to provide a robust and flexible framework for AI-driven tasks and interactions.
## Features
- **Function Calling**: Seamlessly integrate and call various functions to perform tasks.
- **Tool Usage**: Utilize different tools for enhanced AI capabilities.
- **Web Search**: Use searXNG or Tavily for web searches
- **Create**: The AI will create folders and files, read files, list files, delete files, web search and more..
- **DB Similarity**: Every chat and tool use is saved in DB for future context aware AI responses.```env
# API Keys
TAVILY_API_KEY=tvly-# Models
OLLAMA_MODEL=llama3-groq-tool-use
EMBED_MODEL=nomic-embed-text# Search Configuration
SEARCH_PROVIDER=SEARXNG
SEARCH_RESULTS_LIMIT=5# URLs
OLLAMA_URL=http://127.0.0.1:11434
SEARXNG_URL=http://192.168.70.48:4000# Database Configuration
DB_DIR=./chromadb # database location realitive to current directory
N_CONTEXTS=3 # Number of contexts to retrieve from DB - you can adjust this for testing
SIMILARITY_THRESHOLD=0.7 # Adjust this value to control context relevance (lower is more strict)# Debug print statements in terminal False or True
DEBUG_MODE=False```
Install dependencies`pip install -r requirements.txt`
## Usage
```bash
python ol.py
```![name](images/name.png)
![terminal](images/tav2.png)
![terminal](images/tav.png)
## Examples
Use multiple tools at once
```bash
{"name": "search", "arguments": {"query": "latest ollama tools"}}
{"name": "create_file", "arguments": {"path": "./web_search.txt"}}
{"name": "write_to_file", "arguments": {"path": "./web_search.txt", "content": "[Insert Search
Data Here]"}}
INFO: Tool executed successfully.
```