Skip to main content

No project description provided

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ava_mosaic_ai-0.1.9.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

ava_mosaic_ai-0.1.9-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ava_mosaic_ai-0.1.9.tar.gz.

File metadata

  • Download URL: ava_mosaic_ai-0.1.9.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for ava_mosaic_ai-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9c53143fdc41c17180caff0f76359c158dd19b16fdc8aa2dbf5239f4ab53ade5
MD5 4de08c1c34ad97d11a89c2f017625865
BLAKE2b-256 e9cb437942a13e1bc47d18ab9de53b2ad2b30989fa9a2b28793622fe2c4c7afe

See more details on using hashes here.

File details

Details for the file ava_mosaic_ai-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: ava_mosaic_ai-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for ava_mosaic_ai-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 284127735cf0f136a5903cec40fe03be2a4a5c1c4de2e68573d9cd023d03f035
MD5 e9c1bc4d80252cafadea4b8890151119
BLAKE2b-256 a3fbe4368581dcb1a5cc9361d7f4720724868319e827ff58a16d399130e11856

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page