llama-stack-apps  by meta-llama

Agentic app examples built on Llama Stack

created 1 year ago
4,267 stars

Top 11.7% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides example applications built on the Llama Stack, enabling developers to create agentic AI applications. It targets developers building generative AI applications who need multi-step reasoning, tool usage, and safety features, offering a standardized way to integrate Llama models, Llama Guard, and tool execution environments.

How It Works

The Llama Stack defines standardized APIs for core generative AI application components, including model inference, safety checks (via Llama Guard), and tool execution. Applications interact with a Llama Stack server, which orchestrates these components. This approach simplifies development by providing a unified distribution that bundles necessary functionalities, allowing agents to break down tasks, use tools (like code interpreters or search engines), and leverage built-in safety mechanisms.

Quick Start & Requirements

  • Install: Create a Conda environment (conda create -n stack python=3.10, conda activate stack) and install dependencies (pip install -r requirements.txt).
  • Prerequisites: Python 3.10, Conda for distribution installation. API keys for Tavily Search (TAVILY_SEARCH_API_KEY), WolframAlpha (WOLFRAM_ALPHA_API_KEY), and Brave Search are optional for specific tools.
  • Server: Start a Llama Stack server as per the llama-stack repository's guide. The server typically listens on http://localhost:8321.
  • Demo: Run example agents using python -m examples.agents.hello localhost 8321 or python -m examples.agents.rag_with_vector_db localhost 8321.
  • Docs: Llama Stack Repository

Highlighted Details

  • Supports multi-step reasoning and tool usage with zero-shot learning for tool calls.
  • Integrates Llama Guard for system-level safety protections.
  • Offers client SDKs in Python, Node.js, Swift, and Kotlin.
  • Includes example scripts, notebooks, and a Gradio UI for interaction.

Maintenance & Community

The project is from Meta AI. Further community and roadmap details are not explicitly provided in this README.

Licensing & Compatibility

The README does not specify a license for llama-stack-apps. The underlying Llama models have their own licenses.

Limitations & Caveats

Distribution installation requires Conda; while venv can be used for running apps, it's not sufficient for initial setup. Specific tool integrations may require external API keys.

Health Check
Last commit

3 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
57 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Jerry Liu Jerry Liu(Cofounder of LlamaIndex), and
4 more.

llama-hub by run-llama

0.0%
3k
Data loaders for LLMs (deprecated, now in LlamaIndex core)
created 2 years ago
updated 1 year ago
Feedback? Help us improve.