This repository contains various examples demonstrating how to use the Restack AI Python SDK. These examples are designed to help you get started with Restack AI and showcase different features and use cases.
Examples
- Get Started - A simple example to help you get started with the Restack AI SDK.
- OpenAI Greet - A simple example to greet a person using OpenAI.
- Gemini Generate Content - A simple example to generate content using Gemini.
Prerequisites
- Python 3.8 or higher
- Poetry (for dependency management)
Getting Started
-
Clone this repository:
git clone https://github.com/restackio/examples-python cd examples-python -
Navigate to the example you want to explore:
cd examples-python/examples/<example-name>
-
Install dependencies using Poetry:
-
Follow the specific instructions in each example's README file.
Running Restack in Docker
To run Restack locally using Docker, you have two options:
Using docker run:
docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/engine:main
This will force repulling and rebuilding.
After running either of these commands, the Restack UI will be available at http://localhost:5233
Contributing
We welcome contributions to this repository! If you have an example you'd like to add or improvements to existing examples, please feel free to submit a pull request.