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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ava_mosaic_ai-0.1.7.tar.gz
.
File metadata
- Download URL: ava_mosaic_ai-0.1.7.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6052c67f93c62d8388e3824db44d6e7acf28f370c44c00952229361a5de8ad85 |
|
MD5 | 413577f7b87899b259146973685c962b |
|
BLAKE2b-256 | 8accff204f5356c47b2acce45aad0f82f99952ff79cde64a4bf24e61803fbee8 |
File details
Details for the file ava_mosaic_ai-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: ava_mosaic_ai-0.1.7-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516eb96cccf5516bc625bf41fd146a51c5a8076604046a84f9d6030172531f7f |
|
MD5 | 60bb38de6710fd893b64b90e6364697d |
|
BLAKE2b-256 | b877125117c8bcb89422cdfead4df31dfd57ec92a19dcf97378cedc2a12b0466 |