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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ava_mosaic_ai-0.1.9.tar.gz | 6.1 kB | Without provenance | Details for ava_mosaic_ai-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ava_mosaic_ai-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for ava_mosaic_ai-0.1.9-py3-none-any.whl |
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
|
Security for ava-mosaic-ai 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.