Base services for CrewPlus AI applications
Project description
CrewPlus
CrewPlus provides the foundational services and core components for building advanced AI applications. It is the heart of the CrewPlus ecosystem, designed for scalability, extensibility, and seamless integration.
Overview
This repository, crewplus-base, contains the core crewplus Python package. It includes essential building blocks for interacting with large language models, managing vector databases, and handling application configuration. Whether you are building a simple chatbot or a complex multi-agent system, CrewPlus offers the robust foundation you need.
The CrewPlus Ecosystem
CrewPlus is designed as a modular and extensible ecosystem of packages. This allows you to adopt only the components you need for your specific use case.
crewplus(This package): The core package containing foundational services for chat, model load balancing, and vector stores.crewplus-agents: An extension for creating and managing autonomous AI agents.crewplus-ingestion: Provides robust pipelines for knowledge ingestion and data processing.crewplus-memory: Provides agent memory services for Crewplus AI Agents.crewplus-integrations: A collection of third-party integrations to connect CrewPlus with other services and platforms.
Features
- Chat Services: A unified interface for interacting with various chat models (e.g.,
GeminiChatModel). - Model Load Balancer: Intelligently distribute requests across multiple LLM endpoints.
- Vector DB Services: working with popular vector stores (e.g. Milvus, Zilliz Cloud) for retrieval-augmented generation (RAG) and agent memory.
Documentation
For detailed guides and API references, please see the docs/ folder.
- GeminiChatModel Documentation: A comprehensive guide to using the
GeminiChatModelfor text, image, and video understanding.
Installation
To install the core crewplus package, run the following command:
pip install crewplus
Getting Started
Here is a simple example of how to use the GeminiChatModel to start a conversation with an AI model.
# main.py
from crewplus.services import GeminiChatModel
# Initialize the llm (API keys are typically handled by the configuration module)
llm = GeminiChatModel(google_api_key="your-google-api-key")
# Start a conversation
response = llm.chat("Hello, what is CrewPlus?")
print(response)
Project Structure
The crewplus-base repository is organized to separate core logic, tests, and documentation.
crewplus-base/ # GitHub repo name
├── pyproject.toml
├── README.md
├── LICENSE
├── CHANGELOG.md
├── crewplus/ # PyPI package name
│ └── __init__.py
│ └── services/
│ └── __init__.py
│ └── gemini_chat_model.py
│ └── model_load_balancer.py
│ └── ...
│ └── vectorstores/milvus
│ └── __init__.py
│ └── schema_milvus.py
│ └── vdb_service.py
│ └── core/
│ └── __init__.py
│ └── config.py
│ └── ...
├── tests/
│ └── ...
├── docs/
│ └── ...
└── notebooks/
└── ...
Deploy to PyPI
Clean Previous Build Artifacts: Remove the dist/, build/, and *.egg-info/ directories to ensure that no old files are included in the new build.
rm -rf dist build *.egg-info
install deployment tool
pip install twine
build package
python -m build
deploy to TestPyPI (Test first)
python -m twine upload --repository testpypi dist/*
install from TestPyPI
pip install -i https://test.pypi.org/simple/ crewplus
Deploy to official PyPI
python -m twine upload dist/*
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewplus-0.2.24.tar.gz.
File metadata
- Download URL: crewplus-0.2.24.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f82935f9ba920977406b0bc85cd1832f75a7c17a158444257133509149b26892
|
|
| MD5 |
2e0d716cc8a20ca5368463ab28ebd3d5
|
|
| BLAKE2b-256 |
ad88a556ae0b74bf9b8403cce99b2a677df145f29ea80aec9591f5cbd438537c
|
File details
Details for the file crewplus-0.2.24-py3-none-any.whl.
File metadata
- Download URL: crewplus-0.2.24-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7afbcf33a54ed7d600103ab0f5820f35556ae703bf3767c2c1e8dde674cb1d7f
|
|
| MD5 |
ccee2ed0a5408515245c09f4191aa4d1
|
|
| BLAKE2b-256 |
060d84abaa00faec60fc25d5fe5d7c5127557e71c2ac81cb55109ebdb996857e
|