{"id":30376592,"url":"https://github.com/adamanr/aiflow","last_synced_at":"2026-01-20T16:46:41.008Z","repository":{"id":307172361,"uuid":"1020250947","full_name":"Adamanr/AiFlow","owner":"Adamanr","description":"Streamline your AI workflow with a unified, elegant interface for multiple AI providers 🚀","archived":false,"fork":false,"pushed_at":"2025-07-29T21:05:52.000Z","size":1796,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T19:51:45.695Z","etag":null,"topics":["ai","ai-library","elixir","library","ollama"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/ai_flow","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Adamanr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-15T15:16:19.000Z","updated_at":"2025-08-03T15:15:52.000Z","dependencies_parsed_at":"2025-07-29T22:06:40.606Z","dependency_job_id":null,"html_url":"https://github.com/Adamanr/AiFlow","commit_stats":null,"previous_names":["adamanr/aiflow"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Adamanr/AiFlow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamanr%2FAiFlow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamanr%2FAiFlow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamanr%2FAiFlow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamanr%2FAiFlow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adamanr","download_url":"https://codeload.github.com/Adamanr/AiFlow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamanr%2FAiFlow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271337859,"owners_count":24742057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-library","elixir","library","ollama"],"created_at":"2025-08-20T15:01:12.141Z","updated_at":"2026-01-20T16:46:40.965Z","avatar_url":"https://github.com/Adamanr.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AiFlow\n\n**Streamline your AI workflow with a unified, elegant interface for multiple AI providers**\n\n[![Hex.pm](https://img.shields.io/hexpm/v/ai_flow.svg)](https://hex.pm/packages/ai_flow)\n[![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/ai_flow)\n[![License](https://img.shields.io/hexpm/l/ai_flow.svg)](https://github.com/adamanr/ai_flow/blob/main/LICENSE)\n\n---\n\n## Why AiFlow?\n\nWorking with different AI models shouldn't feel like herding cats. AiFlow provides a **consistent, developer-friendly interface** that makes integrating AI into your Elixir applications a breeze. Start with Ollama today, with more providers coming soon.\n\n### 🚀 Simple \u0026 Intuitive\n```elixir\n# Ask any question - it's that simple!\n{:ok, response} = AiFlow.Ollama.query(\"Explain quantum computing in simple terms\", \"llama3.1\")\n```\n\n### 🔧 Unified API\nOne interface, multiple AI providers. Switch between services without rewriting your code.\n\n### 🛠️ Production Ready\nBuilt-in error handling, debugging tools, and comprehensive testing.\n\n---\n\n## 🌟 Key Features\n\n- **🧠 Model Management**: List, create, copy, delete, pull, and push models\n- **💬 Smart Chat Sessions**: Persistent chat history with automatic context management  \n- **✍️ Text Generation**: Powerful prompt completion with customizable parameters\n- **🔍 Embeddings**: Generate vector embeddings for semantic search and ML tasks\n- **🔄 Blob Operations**: Efficient model file management\n- **🛡️ Robust Error Handling**: Comprehensive error management with bang (!) versions\n- **🐛 Advanced Debugging**: Built-in tools for troubleshooting and development\n\n---\n\n## 📦 Installation\n\nAdd `ai_flow` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ai_flow, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n---\n\n## ⚙️ Quick Start\n\n### 1. Start the Client\n\n```elixir\n# Quick start with defaults\n{:ok, pid} = AiFlow.Ollama.start_link()\n\n# Or customize your setup\n{:ok, pid} = AiFlow.Ollama.start_link(\n  hostname: \"localhost\",\n  port: 11434,\n  timeout: 60_000\n)\n```\n\n### 2. Start Chatting\n\n```elixir\n# Simple question\n{:ok, response} = AiFlow.Ollama.query(\"Why is the sky blue?\", \"llama3.1\")\n\n# Interactive chat\n{:ok, response} = AiFlow.Ollama.chat(\"Hello!\", \"chat_session_1\", \"user_123\", \"llama3.1\")\n{:ok, response} = AiFlow.Ollama.chat(\"Tell me more about that\", \"chat_session_1\", \"user_123\", \"llama3.1\")\n```\n\n### 3. Advanced Usage\n\n```elixir\n# Generate embeddings for semantic search\n{:ok, embeddings} = AiFlow.Ollama.generate_embeddings([\n  \"The cat sat on the mat\",\n  \"A feline rested on the rug\"\n])\n\n# Manage your models\n{:ok, models} = AiFlow.Ollama.list_models()\n{:ok, :success} = AiFlow.Ollama.create_model(\"my-custom-model\", \"llama3.1\", \"You are a helpful coding assistant.\")\n```\n\n---\n\n## 🎯 Current Capabilities\n\n### Direct Function Calls\nWork with AI models intuitively:\n\n* `AiFlow.Ollama.list_models()` - Discover available models  \n* `AiFlow.Ollama.query()` - Ask questions to any model\n* `AiFlow.Ollama.chat()` - Engage in persistent conversations\n\n### Comprehensive Model Management\n```elixir\n# Everything you need to manage AI models\nAiFlow.Ollama.list_models()\nAiFlow.Ollama.create_model(\"my-model\", \"base-model\", \"system prompt\")\nAiFlow.Ollama.copy_model(\"original\", \"backup\")\nAiFlow.Ollama.delete_model(\"old-model\")\nAiFlow.Ollama.pull_model(\"new-model\")\nAiFlow.Ollama.push_model(\"my-model:latest\")\n```\n\n---\n\n## 🛠️ Configuration\n\nFlexible configuration for any environment:\n\n```elixir\n# Application-wide configuration\nconfig :ai_flow, AiFlow.Ollama,\n  hostname: \"localhost\",\n  port: 11434,\n  timeout: 60_000\n\n# Or per-instance configuration\n{:ok, pid} = AiFlow.Ollama.start_link(\n  hostname: \"production-ai.internal\",\n  port: 11434,\n  timeout: 120_000\n)\n```\n\n## 🚀 What's Coming Next?\n\nAiFlow is just getting started! Upcoming integrations include:\n\n- **🐝 Bumblebee Integration**: Hugging Face models support\n- **☁️ Cloud AI Providers**: OpenAI, Anthropic, Google AI\n- **📦 Model Registry**: Centralized model management\n- **⚡ Performance Optimizations**: Caching and batching\n\n---\n\n## 🤝 Contributing\n\nWe love contributions! Here's how to get started:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n---\n\n## 📚 Documentation\n\nFull API documentation is available at [HexDocs](https://hexdocs.pm/ai_flow).\n\n---\n\n## 📄 License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n---\n\n## 💬 Get in Touch\n\n- Found a bug? [Open an issue](https://github.com/yourusername/ai_flow/issues)\n- Have a feature request? We'd love to hear it!\n- Questions? Check out the documentation or open a discussion\n\n**Made with ❤️ for the Elixir community**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamanr%2Faiflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamanr%2Faiflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamanr%2Faiflow/lists"}