target-weaviate
Singer target for Weaviate vector database.
Built with the Meltano Singer SDK.
Capabilities
aboutstream-mapsschema-flatteningbatch
Settings
| Setting | Required | Default | Description |
|---|---|---|---|
| weaviate_url | True | None | Weaviate instance URL (e.g., https://my-cluster.weaviate.network) |
| weaviate_api_key | False | None | Weaviate API key for authentication. Required for Weaviate Cloud. |
| collection_name | False | None | Weaviate collection name. If not provided, uses the stream name. |
| load_method | False | append-only | Load method: append-only, upsert, or overwrite. |
| primary_key | False | None | List of property names to use as composite primary key for upsert operations. Required when load_method is upsert. Example: ["id"] or ["user_id", "timestamp"] |
| batch_size | False | 100 | Maximum number of records to write in one batch. |
| add_record_metadata | False | None | Additional metadata to add to all records. |
| vectorizer | False | None | Vectorizer to use when creating a new collection (e.g., text2vec-cohere, text2vec-openai, none). Only used if the collection doesn't exist. |
| create_collection_if_missing | False | True | Automatically create the collection if it doesn't exist. |
| stream_maps | False | None | Config object for stream maps capability. For more information check out Stream Maps. |
| stream_map_config | False | None | User-defined config values to be used within map expressions. |
| flattening_enabled | False | None | 'True' to enable schema flattening and automatically expand nested properties. |
| flattening_max_depth | False | None | The max depth to flatten schemas. |
A full list of supported settings and capabilities is available by running: target-weaviate --about
Load Methods
append-only (Default)
Simply appends all records to the collection. No deduplication or updates.
Use case: Event logs, time-series data, append-only datasets
upsert
Updates existing records based on primary_key and inserts new records.
Requirements: Must specify primary_key in configuration.
Use case: Dimensional data, master records, updating existing datasets
Example configuration:
target-weaviate:
config:
load_method: upsert
primary_key: [user_id, timestamp]
overwrite
Deletes all existing records in the collection before inserting new data.
Use case: Full refresh, small datasets, snapshot replacements
Warning: This will delete all data in the collection before loading!
Supported Python Versions
- 3.11
- 3.12
- 3.13
- 3.14
Installation
From PyPI (when published)
pipx install target-weaviate
From GitHub
pipx install git+https://github.com/yourusername/target-weaviate.git
For Development
git clone https://github.com/yourusername/target-weaviate.git
cd target-weaviate
poetry install
Usage
Executing the Target Directly
target-weaviate --version
target-weaviate --help
# Test with sample data
cat sample_data.singer | target-weaviate --config config.json
Configuration File Example
{
"weaviate_url": "https://my-cluster.weaviate.network",
"weaviate_api_key": "your-api-key",
"collection_name": "MyCollection",
"load_method": "upsert",
"primary_key": ["id"],
"batch_size": 100,
"vectorizer": "text2vec-cohere"
}
With Meltano
Add to your meltano.yml:
plugins:
loaders:
- name: target-weaviate
namespace: target_weaviate
pip_url: target-weaviate
executable: target-weaviate
config:
weaviate_url: ${WEAVIATE_URL}
weaviate_api_key: ${WEAVIATE_API_KEY}
collection_name: MyCollection
load_method: upsert
primary_key: [id]
Then run:
meltano run tap-example target-weaviate
Examples
Example 1: Simple Append
config:
weaviate_url: http://localhost:8080
collection_name: Documents
load_method: append-only
Example 2: Upsert with Composite Key
config:
weaviate_url: https://my-cluster.weaviate.network
weaviate_api_key: ${WEAVIATE_API_KEY}
collection_name: UserEvents
load_method: upsert
primary_key: [user_id, event_type, timestamp]
batch_size: 200
Example 3: Overwrite with Vectorizer
config:
weaviate_url: https://my-cluster.weaviate.network
weaviate_api_key: ${WEAVIATE_API_KEY}
collection_name: Articles
load_method: overwrite
vectorizer: text2vec-openai
create_collection_if_missing: true
Developer Resources
Initialize Development Environment
poetry install
Run Tests
poetry run pytest
Linting
poetry run ruff check target_weaviate
poetry run ruff format target_weaviate
Testing with Meltano
# Install meltano
pipx install meltano
# Initialize meltano within this directory
meltano install
# Test invocation
meltano invoke target-weaviate --version
# Run a test pipeline
meltano run tap-example target-weaviate
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
Apache License 2.0
Resources
Metadata
Release files for target-weaviate 0.2.0
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 |
|---|---|---|---|---|
| target_weaviate-0.2.0.tar.gz | 7.0 kB | With provenance | Details for target_weaviate-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| target_weaviate-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for target_weaviate-0.2.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / target_weaviate-0.2.0.tar.gz
| Download URL | target_weaviate-0.2.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df2b98eca93d8d566fb0da9431ac54d4d57631b7820061675e7ef572af64acd3
|
|
BLAKE2b-256 checksum How to use checksums |
9d835a7d55bf7a8ecd01a5a95ebddd79a6efd9139da6893c7bdeab56031d74ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / target_weaviate-0.2.0-py3-none-any.whl
| Download URL | target_weaviate-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97ac9e8c8dd1f2b2ade82028ecffc59c89c7f55e6d12cec6b14bff7f34b4b363
|
|
BLAKE2b-256 checksum How to use checksums |
0196a98bbce1a44fab693e93e22b8db80589f867d2825db9f07aeb66e66687c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for target-weaviate 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for target_weaviate-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA 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.