Skip to main content

Mosaic-AI

 __   __  _______  _______  _______  ___   _______ 
|  |_|  ||       ||       ||   _   ||   | |       |
|       ||   _   ||  _____||  |_|  ||   | |       |
|       ||  | |  || |_____ |       ||   | |       |
|       ||  |_|  ||_____  ||       ||   | |      _|
| ||_|| ||       | _____| ||   _   ||   | |     |_ 
|_|   |_||_______||_______||__| |__||___| |_______|

About Ava-Mosaic-AI

Mosaic is a lightweight Python library that extends the capabilities of the Instructor library for LLM-based tasks. Born out of a personal project to streamline repetitive processes in GenAI development, Mosaic aims to reduce overhead and simplify common operations in LLM/GenAI projects.

Key Features

  • Extends Instructor library functionality
  • Simplifies common LLM-based tasks
  • Reduces code repetition in GenAI projects
  • Lightweight and easy to integrate

Installation

pip install ava-mosaic-ai

Quick Start

import ava_mosaic_ai
from pydantic import BaseModel

# Initialize LLM
llm = ava_mosaic_ai.get_llm("openai")

# Define response model
class ResponseModel(BaseModel):
    response: str

# Use Mosaic's simplified interface
response = llm.create_completion(
    response_model=ResponseModel,
    messages=[{"role": "user", "content": "Tell me a joke about AI"}],
)
print(response)

Documentation

For full documentation, visit our docs site.

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

Roadmap

  • Add support for more LLM providers
  • Implement advanced prompt engineering tools
  • Develop a CLI for quick prototyping

Special Thanks

  • A heartfelt shoutout to @daveebbelaar for his implementation of llm_factory, which inspired this project. Check out his work here.
  • Immense gratitude to the creators of the Instructor library. Their work has saved countless hours in GenAI project development.

License

Mosaic is released under the MIT License. See the LICENSE file for details.


Built with ❤️ by [karan Singh Kochar]

Metadata

Release files for ava-mosaic-ai 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ava-mosaic-ai 0.1.9
File Size Uploaded
ava_mosaic_ai-0.1.9.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ava-mosaic-ai 0.1.9
File Interpreter ABI Platform
ava_mosaic_ai-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / ava_mosaic_ai-0.1.9.tar.gz

Download URL ava_mosaic_ai-0.1.9.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c53143fdc41c17180caff0f76359c158dd19b16fdc8aa2dbf5239f4ab53ade5
BLAKE2b-256 checksum
How to use checksums
e9cb437942a13e1bc47d18ab9de53b2ad2b30989fa9a2b28793622fe2c4c7afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

Release files / ava_mosaic_ai-0.1.9-py3-none-any.whl

Download URL ava_mosaic_ai-0.1.9-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
284127735cf0f136a5903cec40fe03be2a4a5c1c4de2e68573d9cd023d03f035
BLAKE2b-256 checksum
How to use checksums
a3fbe4368581dcb1a5cc9361d7f4720724868319e827ff58a16d399130e11856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page