Name | superduper-framework JSON |
Version |
0.4.5
JSON |
| download |
home_page | None |
Summary | 🔮 Bring AI to your favourite database 🔮 |
upload_time | 2024-11-13 10:30:09 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [2023] [SuperDuperDB, Inc.] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
keywords |
databases
mongodb
data-science
machine-learning
mlops
vector-database
ai
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div align="center">
<a href="https://www.superduper.io">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_white.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_color.svg">
<img width="50%" alt="SuperDuper logo" src="https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_color.svg">
</picture>
</a>
</div>
<div align="center">
<h1>Build end-to-end AI-data workflows and applications with your favourite tools</h1>
</div>
<div align="center">
<h2>
<a href="https://docs.superduper.io"><strong>Docs</strong></a> |
<a href="https://blog.superduper.io"><strong>Blog</strong></a> |
<a href="https://superduper.io"><strong>Website</strong></a> |
<a href="https://docs.superduper.io/docs/category/templates"><strong>Templates</strong></a> |
<a href="https://join.slack.com/t/superduper-public/shared_invite/zt-1yodhtx8y-KxzECued5QBtT6JFnsSNrQ"><strong>Slack</strong></a> |
<a href="https://www.youtube.com/channel/UC-clq9x8EGtQc6MHW0GF73g"><strong>Youtube</strong></a> |
<a href="https://www.linkedin.com/company/superduper-io"><strong>LinkedIn</strong></a>
</h2>
</div>
<div align="center">
<h2>
<a href="https://pypi.org/project/superduper-framework"><img src="https://img.shields.io/pypi/v/superduper-framework?color=%23007ec6&label=pypi%20package" alt="Package version"></a>
<a href="https://pypi.org/project/superduper-framework"><img src="https://img.shields.io/pypi/pyversions/superduper-framework" alt="Supported Python versions"></a>
<a href="https://github.com/superduper-io/superduper/actions/workflows/ci_code.yml"><img src="https://github.com/superduper-io/superduper/actions/workflows/ci_code.yml/badge.svg?branch=main" /></a>
<a href="https://github.com/superduper-io/superduper/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="License - Apache 2.0"></a>
</h2>
</div>
## What is Superduper?
Superduper is a Python based framework for building **end-2-end AI-data workflows and applications** on your own data, integrating with major databases. It supports the latest technologies and techniques, including LLMs, vector-search, RAG, multimodality as well as classical AI and ML paradigms.
Developers may leverage Superduper by building **compositional and declarative objects** which out-source the details of deployment, orchestration and versioning, and more to the Superduper engine. This allows developers to completely avoid implementing MLOps, ETL pipelines, model deployment, data migration and synchronization.
Using Superduper is simply "**CAPE**": **Connect** to your data, **apply** arbitrary AI to that data, **package** and reuse the application on arbitrary data, and **execute** AI-database queries and predictions on the resulting AI outputs and data.
- **Connect**
- **Apply**
- **Package**
- **Execute**
<img src="https://github.com/superduper-io/superduper/blob/main/img/apply.gif" alt="Alt text for the image" style="width: 100%;">
**Connect**
```python
db = superduper('mongodb|postgres|mysql|sqlite|duckdb|snowflake://<your-db-uri>')
```
**Apply**
```python
listener = MyLLM('self_hosted_llm', architecture='llama-3.2', postprocess=my_postprocess).to_listener('documents', key='txt')
db.apply(listener)
```
**Package**
```python
application = Application('my-analysis-app', components=[listener, vector_index])
template = Template('my-analysis', component=app, substitutions={'documents': 'table'})
template.export('my-analysis')
```
**Execute**
```python
query = db['documents'].like({'txt', 'Tell me about Superduper'}, vector_index='my-index').select()
query.execute()
```
Superduper may be run anywhere; you can also [contact us](https://superduper.io/contact) to learn more about the enterprise platform for bringing your Superduper workflows to production at scale.
## What does Superduper support?
Superduper is flexible enough to support a huge range of AI techniques and paradigms. We have a range of pre-built functionality in the `plugins` and `templates` directories. In particular, Superduper excels when AI and data need to interact in a continuous and tightly integrated fashion. Here are some illustrative examples, which you may try out from our templates:
- Semantic multimodal vector search ([images](https://github.com/superduper-io/superduper/tree/main/templates/multimodal_image_search), [text](https://github.com/superduper-io/superduper/tree/main/templates/text_vector_search), [video](https://github.com/superduper-io/superduper/tree/main/templates/multimodal_video_search))
- [Retrieval augmented generation](https://github.com/superduper-io/superduper/tree/main/templates/retrieval_augmented_generation) with specialized requirements (data fetching involves semantic search as well as business rules and pre-processing)
- [LLM finetuning on database hosted data](https://github.com/superduper-io/superduper/tree/main/templates/llm_finetuning)
- [Transfer learning using multimodal data](https://github.com/superduper-io/superduper/tree/main/templates/transfer_learning)
We're looking to connect with enthusiastic developers to contribute to the repertoire of amazing pre-built templates and workflows available in Superduper open-source. Please join the discussion, by contributing issues and pull requests!
## Core features
- Create a Superduper data-AI connection/ datalayer consisting of your own
- databackend (database/ datalake/ datawarehouse)
- metadata store (same or other as databackend)
- artifact store (to store big objects)
- compute implementation
- Build complex units of functionality (`Component`) using a declarative programming model, which integrate closely with data in your databackend, using a simple set of primitives and base classes.
- Build larger units of functionality wrapping several interrelated `Component` instances into an AI-data `Application`
- Reuse battle-tested `Component`, `Model` and `Application` instances using `Template`, giving developers an easy point to start with difficult AI implementations
- A transparent, human-readable, web-friendly and highly portable serialization protocol, "Superduper-protocol", to communicate results of experimentation, make `Application` lineage and versioning easy to follow, and create an elegant segway from the AI world to the databasing/ typed-data worlds.
- Execute queries using a combination of outputs of `Model` instances as well as primary databackend data, to enable the latest generation of AI-data applications, including all flavours of vector-search, RAG, and much, much more.
## Key benefits
**Massive flexibility**
Combine any Python based AI model, API from the ecosystem with the most established, battle tested databases and warehouses; Snowflake, MongoDB, Postgres, MySQL, SQL Server, SQLite, BigQuery, and Clickhouse are all supported.
**Seamless integration avoiding MLOps**
Remove the need to implement MLOps, using the declarative and compositional Superduper components, which specify the end state that the models and data should reach.
**Promote code reusability and portability**
Package components as templates, exposing the key parameters required to reuse and communicate AI applications in your community and organization.
**Cost savings**
Implement vector search and embedding generation without requiring a dedicated vector database. Effortlessly toggle between self hosted models and API hosted models, without major code changes.
**Move to production without any additional effort**
Superduper's REST API, allows installed models to be served without additional development work. For enterprise grade scalability, fail safes, security and logging, applications and workflows created with Superduper, may be deployed in one click on [Superduper enterprise](https://superduper.io/contact).
## What's new in the `main` branch?
We are working on an upcoming release of `0.4.0`. In this release we have:
### Revamped how `Component` triggers initial computations and data dependent computations using `@trigger`
This will enable a large diversity of `Component` types in addition to the well established `Model`, `Listener`, `VectorIndex`.
### Created a general `CDC` (change-data-capture) base class
This will allow developers to create a range of functionality which reacts to incoming data changes
### Developed the concept of `Template` to enable re-usable units of complete functionality
Components saved as `Template` instances, will allow users to easily redeploy their already deployed and tested `Component` and `Application` implementations, on alternative data sources, and with key parameters toggled to cater to operational requirements.
### Added concrete `Template` implementations to the project
These `Template` instances may be applied with Superduper with a simple single command
```
superduper apply <template> '{"variable_1": "value_1", "variable_2": ...}'
```
or:
```python
from superduper import templates
app = template(variable_1='value_1', variable_2='value_2', ...)
db.apply(app)
```
### Added a user interface and new REST implementation
Now you may view your `Component`, `Application` and `Template` instances in the user-interface, and execute queries using `QueryTemplate` instances, directly against the REST server.
```
superduper start
```
## Getting started
**Installation**:
```bash
pip install superduper-framework
```
**View** available pre-built templates:
```bash
superduper ls
```
**Connect** and **apply** a pre-built template:
(***Note:*** *the pre-built templates are only supported by Python 3.10; you may use all of the other features in Python 3.11+.*)
```bash
# e.g. 'mongodb://localhost:27017/test_db'
SUPERDUPER_DATA_BACKEND=<your-db-uri> superduper apply simple_rag
```
**Execute** a query or prediction on the results:
```python
from superduper import superduper
db = superduper('<your-db-uri>') # e.g. 'mongodb://localhost:27017/test_db'
db['rag'].predict('Tell me about superduper')
```
**View** and **monitor** everything in the Superduper interface. From the command line:
```bash
superduper start
```
***After doing this you are ready to build your own components, applications and templates!***
**Get started** by copying an existing template, to your own development environment:
```bash
superduper bootstrap <template_name> --destination templates/my-template
```
**Edit** the `build.ipynb` notebook, to build your own functionality.
## Currently supported datastores
- [MongoDB](https://www.mongodb.com)
- [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)
- [Snowflake](https://www.snowflake.com)
- [PostgreSQL](https://www.postgresql.org)
- [MySQL](https://www.mysql.com)
- [SQLite](https://www.sqlite.org)
- [DuckDB](https://duckdb.org)
- [Google BigQuery](https://cloud.google.com/bigquery)
- [Microsoft SQL Server (MSSQL)](https://www.microsoft.com/en-us/sql-server)
- [ClickHouse](https://clickhouse.com)
## Community & getting help
If you have any problems, questions, comments, or ideas:
- Join <a href="https://join.slack.com/t/superduper-public/shared_invite/zt-1yodhtx8y-KxzECued5QBtT6JFnsSNrQ">our Slack</a> (we look forward to seeing you there).
- Search through <a href="https://github.com/superduper-io/superduper/discussions">our GitHub Discussions</a>, or <a href="https://github.com/superduper-io/superduper/discussions/new/choose">add a new question</a>.
- Comment <a href="https://github.com/superduper-io/superduper/issues/">an existing issue</a> or create <a href="https://github.com/superduper-io/superduper/issues/new/choose">a new one</a>.
- Help us to improve Superduper by providing your valuable feedback <a href="https://github.com/superduper-io/superduper/discussions/new/choose">here</a>!
- Email us at `gethelp@superduper.io`.
- Visit our [YouTube channel](https://www.youtube.com/@superduper-io).
- Follow us on [Twitter (now X)](https://twitter.com/superduperdb).
- Connect with us on [LinkedIn](https://www.linkedin.com/company/superduper-io).
- Feel free to contact a maintainer or community volunteer directly!
## Contributing
There are many ways to contribute, and they are not limited to writing code. We welcome all contributions such as:
- <a href="https://github.com/superduper-io/superduper/issues/new/choose">Bug reports</a>
- <a href="https://github.com/superduper-io/superduper/issues/new/choose">Documentation improvements</a>
- <a href="https://github.com/superduper-io/superduper/issues/new/choose">Enhancement suggestions</a>
- <a href="https://github.com/superduper-io/superduper/issues/new/choose">Feature requests</a>
- <a href="https://github.com/superduper-io/superduper/issues/new/choose">Expanding the tutorials and use case examples</a>
Please see our [Contributing Guide](CONTRIBUTING.md) for details.
## Contributors
Thanks goes to these wonderful people:
<a href="https://github.com/superduper-io/superduper/graphs/contributors">
<img src="https://contrib.rocks/image?repo=superduperdb/superduper" />
</a>
## License
Superduper is open-source and intended to be a community effort, and it wouldn't be possible without your support and enthusiasm.
It is distributed under the terms of the Apache 2.0 license. Any contribution made to this project will be subject to the same provisions.
## Join Us
We are looking for nice people who are invested in the problem we are trying to solve to join us full-time. Find roles that we are trying to fill <a href="https://join.com/companies/superduper">here</a>!
Raw data
{
"_id": null,
"home_page": null,
"name": "superduper-framework",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "\"superduper.io, Inc.\" <opensource@superduper.com>",
"keywords": "databases, mongodb, data-science, machine-learning, mlops, vector-database, ai",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/f6/27/cc25d89efc438506c5f65aeeafa3b6aa18fb0bf2f443ee415f006a874004/superduper_framework-0.4.5.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <a href=\"https://www.superduper.io\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_white.svg\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_color.svg\">\n <img width=\"50%\" alt=\"SuperDuper logo\" src=\"https://raw.githubusercontent.com/superduper-io/superduper-docs/main/static/img/SuperDuperDB_logo_color.svg\">\n </picture>\n </a>\n</div>\n<div align=\"center\">\n <h1>Build end-to-end AI-data workflows and applications with your favourite tools</h1>\n</div>\n\n\n<div align=\"center\">\n <h2>\n <a href=\"https://docs.superduper.io\"><strong>Docs</strong></a> |\n <a href=\"https://blog.superduper.io\"><strong>Blog</strong></a> |\n <a href=\"https://superduper.io\"><strong>Website</strong></a> |\n <a href=\"https://docs.superduper.io/docs/category/templates\"><strong>Templates</strong></a> |\n <a href=\"https://join.slack.com/t/superduper-public/shared_invite/zt-1yodhtx8y-KxzECued5QBtT6JFnsSNrQ\"><strong>Slack</strong></a> |\n <a href=\"https://www.youtube.com/channel/UC-clq9x8EGtQc6MHW0GF73g\"><strong>Youtube</strong></a> |\n <a href=\"https://www.linkedin.com/company/superduper-io\"><strong>LinkedIn</strong></a>\n </h2>\n</div>\n\n<div align=\"center\">\n <h2>\n <a href=\"https://pypi.org/project/superduper-framework\"><img src=\"https://img.shields.io/pypi/v/superduper-framework?color=%23007ec6&label=pypi%20package\" alt=\"Package version\"></a>\n <a href=\"https://pypi.org/project/superduper-framework\"><img src=\"https://img.shields.io/pypi/pyversions/superduper-framework\" alt=\"Supported Python versions\"></a> \n <a href=\"https://github.com/superduper-io/superduper/actions/workflows/ci_code.yml\"><img src=\"https://github.com/superduper-io/superduper/actions/workflows/ci_code.yml/badge.svg?branch=main\" /></a>\n <a href=\"https://github.com/superduper-io/superduper/blob/main/LICENSE\"><img src=\"https://img.shields.io/badge/license-Apache_2.0-green\" alt=\"License - Apache 2.0\"></a> \n </h2>\n</div>\n\n\n## What is Superduper?\n\nSuperduper is a Python based framework for building **end-2-end AI-data workflows and applications** on your own data, integrating with major databases. It supports the latest technologies and techniques, including LLMs, vector-search, RAG, multimodality as well as classical AI and ML paradigms.\n\nDevelopers may leverage Superduper by building **compositional and declarative objects** which out-source the details of deployment, orchestration and versioning, and more to the Superduper engine. This allows developers to completely avoid implementing MLOps, ETL pipelines, model deployment, data migration and synchronization.\n\nUsing Superduper is simply \"**CAPE**\": **Connect** to your data, **apply** arbitrary AI to that data, **package** and reuse the application on arbitrary data, and **execute** AI-database queries and predictions on the resulting AI outputs and data.\n\n- **Connect**\n- **Apply**\n- **Package**\n- **Execute**\n\n<img src=\"https://github.com/superduper-io/superduper/blob/main/img/apply.gif\" alt=\"Alt text for the image\" style=\"width: 100%;\">\n\n**Connect**\n\n```python\ndb = superduper('mongodb|postgres|mysql|sqlite|duckdb|snowflake://<your-db-uri>')\n```\n\n**Apply**\n\n```python\nlistener = MyLLM('self_hosted_llm', architecture='llama-3.2', postprocess=my_postprocess).to_listener('documents', key='txt')\ndb.apply(listener)\n```\n\n**Package**\n\n```python\napplication = Application('my-analysis-app', components=[listener, vector_index])\ntemplate = Template('my-analysis', component=app, substitutions={'documents': 'table'})\ntemplate.export('my-analysis')\n```\n\n**Execute**\n\n```python\nquery = db['documents'].like({'txt', 'Tell me about Superduper'}, vector_index='my-index').select()\nquery.execute()\n```\n\nSuperduper may be run anywhere; you can also [contact us](https://superduper.io/contact) to learn more about the enterprise platform for bringing your Superduper workflows to production at scale. \n\n## What does Superduper support?\n\nSuperduper is flexible enough to support a huge range of AI techniques and paradigms. We have a range of pre-built functionality in the `plugins` and `templates` directories. In particular, Superduper excels when AI and data need to interact in a continuous and tightly integrated fashion. Here are some illustrative examples, which you may try out from our templates:\n\n- Semantic multimodal vector search ([images](https://github.com/superduper-io/superduper/tree/main/templates/multimodal_image_search), [text](https://github.com/superduper-io/superduper/tree/main/templates/text_vector_search), [video](https://github.com/superduper-io/superduper/tree/main/templates/multimodal_video_search))\n- [Retrieval augmented generation](https://github.com/superduper-io/superduper/tree/main/templates/retrieval_augmented_generation) with specialized requirements (data fetching involves semantic search as well as business rules and pre-processing)\n- [LLM finetuning on database hosted data](https://github.com/superduper-io/superduper/tree/main/templates/llm_finetuning)\n- [Transfer learning using multimodal data](https://github.com/superduper-io/superduper/tree/main/templates/transfer_learning)\n\nWe're looking to connect with enthusiastic developers to contribute to the repertoire of amazing pre-built templates and workflows available in Superduper open-source. Please join the discussion, by contributing issues and pull requests!\n\n## Core features\n\n- Create a Superduper data-AI connection/ datalayer consisting of your own\n - databackend (database/ datalake/ datawarehouse)\n - metadata store (same or other as databackend)\n - artifact store (to store big objects)\n - compute implementation\n- Build complex units of functionality (`Component`) using a declarative programming model, which integrate closely with data in your databackend, using a simple set of primitives and base classes.\n- Build larger units of functionality wrapping several interrelated `Component` instances into an AI-data `Application`\n- Reuse battle-tested `Component`, `Model` and `Application` instances using `Template`, giving developers an easy point to start with difficult AI implementations\n- A transparent, human-readable, web-friendly and highly portable serialization protocol, \"Superduper-protocol\", to communicate results of experimentation, make `Application` lineage and versioning easy to follow, and create an elegant segway from the AI world to the databasing/ typed-data worlds.\n- Execute queries using a combination of outputs of `Model` instances as well as primary databackend data, to enable the latest generation of AI-data applications, including all flavours of vector-search, RAG, and much, much more.\n\n## Key benefits\n\n**Massive flexibility**\n\nCombine any Python based AI model, API from the ecosystem with the most established, battle tested databases and warehouses; Snowflake, MongoDB, Postgres, MySQL, SQL Server, SQLite, BigQuery, and Clickhouse are all supported.\n\n**Seamless integration avoiding MLOps**\n\nRemove the need to implement MLOps, using the declarative and compositional Superduper components, which specify the end state that the models and data should reach.\n\n**Promote code reusability and portability**\n\nPackage components as templates, exposing the key parameters required to reuse and communicate AI applications in your community and organization.\n\n**Cost savings**\n\nImplement vector search and embedding generation without requiring a dedicated vector database. Effortlessly toggle between self hosted models and API hosted models, without major code changes.\n\n**Move to production without any additional effort**\n\nSuperduper's REST API, allows installed models to be served without additional development work. For enterprise grade scalability, fail safes, security and logging, applications and workflows created with Superduper, may be deployed in one click on [Superduper enterprise](https://superduper.io/contact).\n\n\n## What's new in the `main` branch?\n\nWe are working on an upcoming release of `0.4.0`. In this release we have:\n\n### Revamped how `Component` triggers initial computations and data dependent computations using `@trigger`\n\nThis will enable a large diversity of `Component` types in addition to the well established `Model`, `Listener`, `VectorIndex`.\n\n### Created a general `CDC` (change-data-capture) base class\n\nThis will allow developers to create a range of functionality which reacts to incoming data changes\n\n### Developed the concept of `Template` to enable re-usable units of complete functionality\n\nComponents saved as `Template` instances, will allow users to easily redeploy their already deployed and tested `Component` and `Application` implementations, on alternative data sources, and with key parameters toggled to cater to operational requirements.\n\n### Added concrete `Template` implementations to the project\n\nThese `Template` instances may be applied with Superduper with a simple single command\n\n```\nsuperduper apply <template> '{\"variable_1\": \"value_1\", \"variable_2\": ...}'\n```\n\nor:\n\n```python\nfrom superduper import templates\n\napp = template(variable_1='value_1', variable_2='value_2', ...)\n\ndb.apply(app)\n```\n\n### Added a user interface and new REST implementation\n\nNow you may view your `Component`, `Application` and `Template` instances in the user-interface, and execute queries using `QueryTemplate` instances, directly against the REST server.\n\n```\nsuperduper start\n```\n\n## Getting started\n\n**Installation**:\n\n```bash\npip install superduper-framework\n```\n\n**View** available pre-built templates:\n\n```bash\nsuperduper ls\n```\n\n**Connect** and **apply** a pre-built template:\n\n(***Note:*** *the pre-built templates are only supported by Python 3.10; you may use all of the other features in Python 3.11+.*)\n\n```bash\n# e.g. 'mongodb://localhost:27017/test_db'\nSUPERDUPER_DATA_BACKEND=<your-db-uri> superduper apply simple_rag\n```\n\n**Execute** a query or prediction on the results:\n\n```python\nfrom superduper import superduper\ndb = superduper('<your-db-uri>') # e.g. 'mongodb://localhost:27017/test_db'\ndb['rag'].predict('Tell me about superduper')\n```\n\n**View** and **monitor** everything in the Superduper interface. From the command line:\n\n```bash\nsuperduper start\n```\n\n***After doing this you are ready to build your own components, applications and templates!***\n\n**Get started** by copying an existing template, to your own development environment:\n\n```bash\nsuperduper bootstrap <template_name> --destination templates/my-template\n```\n\n**Edit** the `build.ipynb` notebook, to build your own functionality.\n\n## Currently supported datastores\n\n- [MongoDB](https://www.mongodb.com)\n- [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)\n- [Snowflake](https://www.snowflake.com)\n- [PostgreSQL](https://www.postgresql.org)\n- [MySQL](https://www.mysql.com)\n- [SQLite](https://www.sqlite.org)\n- [DuckDB](https://duckdb.org)\n- [Google BigQuery](https://cloud.google.com/bigquery)\n- [Microsoft SQL Server (MSSQL)](https://www.microsoft.com/en-us/sql-server)\n- [ClickHouse](https://clickhouse.com)\n\n## Community & getting help \n\nIf you have any problems, questions, comments, or ideas:\n- Join <a href=\"https://join.slack.com/t/superduper-public/shared_invite/zt-1yodhtx8y-KxzECued5QBtT6JFnsSNrQ\">our Slack</a> (we look forward to seeing you there).\n- Search through <a href=\"https://github.com/superduper-io/superduper/discussions\">our GitHub Discussions</a>, or <a href=\"https://github.com/superduper-io/superduper/discussions/new/choose\">add a new question</a>.\n- Comment <a href=\"https://github.com/superduper-io/superduper/issues/\">an existing issue</a> or create <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">a new one</a>.\n- Help us to improve Superduper by providing your valuable feedback <a href=\"https://github.com/superduper-io/superduper/discussions/new/choose\">here</a>!\n- Email us at `gethelp@superduper.io`.\n- Visit our [YouTube channel](https://www.youtube.com/@superduper-io).\n- Follow us on [Twitter (now X)](https://twitter.com/superduperdb).\n- Connect with us on [LinkedIn](https://www.linkedin.com/company/superduper-io).\n- Feel free to contact a maintainer or community volunteer directly! \n\n\n## Contributing \nThere are many ways to contribute, and they are not limited to writing code. We welcome all contributions such as:\n\n- <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">Bug reports</a>\n- <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">Documentation improvements</a>\n- <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">Enhancement suggestions</a>\n- <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">Feature requests</a>\n- <a href=\"https://github.com/superduper-io/superduper/issues/new/choose\">Expanding the tutorials and use case examples</a>\n\nPlease see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n\n## Contributors\nThanks goes to these wonderful people:\n\n<a href=\"https://github.com/superduper-io/superduper/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=superduperdb/superduper\" />\n</a>\n\n\n## License \n\nSuperduper is open-source and intended to be a community effort, and it wouldn't be possible without your support and enthusiasm.\nIt is distributed under the terms of the Apache 2.0 license. Any contribution made to this project will be subject to the same provisions.\n\n## Join Us \nWe are looking for nice people who are invested in the problem we are trying to solve to join us full-time. Find roles that we are trying to fill <a href=\"https://join.com/companies/superduper\">here</a>!\n",
"bugtrack_url": null,
"license": " Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License. \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\" \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives. Copyright [2023] [SuperDuperDB, Inc.] Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ",
"summary": "\ud83d\udd2e Bring AI to your favourite database \ud83d\udd2e",
"version": "0.4.5",
"project_urls": {
"documentation": "https://docs.superduper.io/docs/intro",
"homepage": "https://superduper.io",
"source": "https://github.com/superduper-io/superduper"
},
"split_keywords": [
"databases",
" mongodb",
" data-science",
" machine-learning",
" mlops",
" vector-database",
" ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cbc4acd46c0d99ce3fa3177b9e3236d9d2cc4b787d4f077fb5a3462d373afaa6",
"md5": "0382f6b6c368ca8c3b88b38c2defc1f2",
"sha256": "f61a028f06359acf612a90bb02556a79be1393b2ea4a82bf0a2100d835069ee5"
},
"downloads": -1,
"filename": "superduper_framework-0.4.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0382f6b6c368ca8c3b88b38c2defc1f2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 1865234,
"upload_time": "2024-11-13T10:30:07",
"upload_time_iso_8601": "2024-11-13T10:30:07.606064Z",
"url": "https://files.pythonhosted.org/packages/cb/c4/acd46c0d99ce3fa3177b9e3236d9d2cc4b787d4f077fb5a3462d373afaa6/superduper_framework-0.4.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f627cc25d89efc438506c5f65aeeafa3b6aa18fb0bf2f443ee415f006a874004",
"md5": "be2f09fdb5386f114c8388db4bc56104",
"sha256": "b69d17688bca1a8b1e22a22910450da34d3df0f6a63f13709c771f1a70f6eca1"
},
"downloads": -1,
"filename": "superduper_framework-0.4.5.tar.gz",
"has_sig": false,
"md5_digest": "be2f09fdb5386f114c8388db4bc56104",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 1713124,
"upload_time": "2024-11-13T10:30:09",
"upload_time_iso_8601": "2024-11-13T10:30:09.261403Z",
"url": "https://files.pythonhosted.org/packages/f6/27/cc25d89efc438506c5f65aeeafa3b6aa18fb0bf2f443ee415f006a874004/superduper_framework-0.4.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-13 10:30:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "superduper-io",
"github_project": "superduper",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "superduper-framework"
}