swarmauri_vectorstore_cloudweaviate 0.10.1.dev2__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- swarmauri_vectorstore_cloudweaviate-0.11.0/NOTICE +7 -0
- swarmauri_vectorstore_cloudweaviate-0.11.0/PKG-INFO +379 -0
- swarmauri_vectorstore_cloudweaviate-0.11.0/README.md +347 -0
- {swarmauri_vectorstore_cloudweaviate-0.10.1.dev2 → swarmauri_vectorstore_cloudweaviate-0.11.0}/pyproject.toml +53 -3
- {swarmauri_vectorstore_cloudweaviate-0.10.1.dev2 → swarmauri_vectorstore_cloudweaviate-0.11.0}/swarmauri_vectorstore_cloudweaviate/CloudWeaviateVectorStore.py +3 -1
- swarmauri_vectorstore_cloudweaviate-0.10.1.dev2/PKG-INFO +0 -93
- swarmauri_vectorstore_cloudweaviate-0.10.1.dev2/README.md +0 -62
- {swarmauri_vectorstore_cloudweaviate-0.10.1.dev2 → swarmauri_vectorstore_cloudweaviate-0.11.0}/LICENSE +0 -0
- {swarmauri_vectorstore_cloudweaviate-0.10.1.dev2 → swarmauri_vectorstore_cloudweaviate-0.11.0}/swarmauri_vectorstore_cloudweaviate/__init__.py +0 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_vectorstore_cloudweaviate
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: Swarmauri Weaviate Vector Store
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: swarmauri,vectorstore,cloudweaviate,weaviate,vector,store
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.15
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Requires-Dist: grpcio (>=1.72.0)
|
|
25
|
+
Requires-Dist: swarmauri_base
|
|
26
|
+
Requires-Dist: swarmauri_core
|
|
27
|
+
Requires-Dist: swarmauri_embedding_doc2vec
|
|
28
|
+
Requires-Dist: swarmauri_standard
|
|
29
|
+
Requires-Dist: weaviate-client (>=4.9.2)
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# swarmauri_vectorstore_cloudweaviate
|
|
33
|
+
|
|
34
|
+
<!-- readme-standards:begin branding -->
|
|
35
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
36
|
+
<p align="center"><strong>swarmauri_vectorstore_cloudweaviate</strong></p>
|
|
37
|
+
<p align="center">Swarmauri Weaviate Vector Store</p>
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/"><img alt="pypi: swarmauri_vectorstore_cloudweaviate" src="https://img.shields.io/pypi/v/swarmauri_vectorstore_cloudweaviate?labelColor=1E293B&color=1D4ED8"></a>
|
|
40
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.11.0&labelColor=1E293B&color=4338CA"></a>
|
|
41
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
42
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Layer: community" src="https://img.shields.io/static/v1?label=Layer&message=community&labelColor=1E293B&color=6D28D9"></a>
|
|
43
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
44
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
45
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
46
|
+
</p>
|
|
47
|
+
<p align="center">
|
|
48
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/"><img alt="Monthly PyPI downloads: swarmauri_vectorstore_cloudweaviate" src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_cloudweaviate?labelColor=1E293B&color=0E7490"></a>
|
|
49
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md"><img alt="README hits: swarmauri_vectorstore_cloudweaviate" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
50
|
+
</p>
|
|
51
|
+
<p align="center">
|
|
52
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
53
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
54
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
55
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
56
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
57
|
+
</p>
|
|
58
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
59
|
+
<!-- readme-standards:end branding -->
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Overview
|
|
64
|
+
|
|
65
|
+
### Summary
|
|
66
|
+
|
|
67
|
+
A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.
|
|
68
|
+
|
|
69
|
+
### Why This Package
|
|
70
|
+
|
|
71
|
+
`swarmauri_vectorstore_cloudweaviate` isolates this responsibility: Swarmauri Weaviate Vector Store. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) exposes `CloudWeaviateVectorStore`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
|
|
72
|
+
|
|
73
|
+
### When to Use
|
|
74
|
+
|
|
75
|
+
Choose `swarmauri_vectorstore_cloudweaviate` when your integration needs swarmauri Weaviate Vector Store. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- `CloudWeaviateVectorStore`: declared in swarmauri_vectorstore_cloudweaviate/CloudWeaviateVectorStore.py
|
|
80
|
+
|
|
81
|
+
### Non-Goals
|
|
82
|
+
|
|
83
|
+
`swarmauri_vectorstore_cloudweaviate` owns swarmauri Weaviate Vector Store. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Getting Started
|
|
88
|
+
|
|
89
|
+
### Prerequisites
|
|
90
|
+
|
|
91
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) declares runtime dependencies including `weaviate-client`, `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `swarmauri-embedding-doc2vec`. Read the example’s inputs and service requirements before execution.
|
|
92
|
+
|
|
93
|
+
### Installation
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pip install swarmauri_vectorstore_cloudweaviate
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
#### uv
|
|
100
|
+
|
|
101
|
+
<!-- readme-standards:begin installation.uv -->
|
|
102
|
+
```bash
|
|
103
|
+
uv add swarmauri_vectorstore_cloudweaviate
|
|
104
|
+
```
|
|
105
|
+
<!-- readme-standards:end installation.uv -->
|
|
106
|
+
|
|
107
|
+
#### pip
|
|
108
|
+
|
|
109
|
+
<!-- readme-standards:begin installation.pip -->
|
|
110
|
+
```bash
|
|
111
|
+
python -m pip install swarmauri_vectorstore_cloudweaviate
|
|
112
|
+
```
|
|
113
|
+
<!-- readme-standards:end installation.pip -->
|
|
114
|
+
|
|
115
|
+
#### Poetry
|
|
116
|
+
|
|
117
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
118
|
+
```bash
|
|
119
|
+
poetry add swarmauri_vectorstore_cloudweaviate
|
|
120
|
+
```
|
|
121
|
+
<!-- readme-standards:end installation.poetry -->
|
|
122
|
+
|
|
123
|
+
### Quick Start
|
|
124
|
+
|
|
125
|
+
#### Example
|
|
126
|
+
|
|
127
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
128
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/docs/readme/quick_start.py).
|
|
129
|
+
|
|
130
|
+
```python
|
|
131
|
+
from swarmauri.vector_stores.CloudWeaviateVectorStore import (
|
|
132
|
+
CloudWeaviateVectorStore,
|
|
133
|
+
)
|
|
134
|
+
from swarmauri.documents.Document import Document
|
|
135
|
+
|
|
136
|
+
# Initialize the vector store
|
|
137
|
+
vector_store = CloudWeaviateVectorStore(
|
|
138
|
+
url="your-weaviate-url",
|
|
139
|
+
api_key="your-api-key",
|
|
140
|
+
collection_name="example",
|
|
141
|
+
vector_size=100,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
# Connect to Weaviate
|
|
145
|
+
vector_store.connect()
|
|
146
|
+
|
|
147
|
+
# Add documents
|
|
148
|
+
document = Document(
|
|
149
|
+
id="doc-001",
|
|
150
|
+
content="This is a sample document content.",
|
|
151
|
+
metadata={"author": "Alice", "date": "2024-01-01"},
|
|
152
|
+
)
|
|
153
|
+
vector_store.add_document(document)
|
|
154
|
+
|
|
155
|
+
# Retrieve similar documents
|
|
156
|
+
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
157
|
+
|
|
158
|
+
# Clean up
|
|
159
|
+
vector_store.disconnect()
|
|
160
|
+
```
|
|
161
|
+
<!-- readme-standards:end example.quick-start -->
|
|
162
|
+
|
|
163
|
+
#### Expected Result
|
|
164
|
+
|
|
165
|
+
The example demonstrates the documented `swarmauri_vectorstore_cloudweaviate` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Usage
|
|
170
|
+
|
|
171
|
+
### Common Workflows
|
|
172
|
+
|
|
173
|
+
<!-- readme-standards:begin example.usage -->
|
|
174
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/docs/readme/usage.py).
|
|
175
|
+
|
|
176
|
+
```python
|
|
177
|
+
from swarmauri.vector_stores.CloudWeaviateVectorStore import (
|
|
178
|
+
CloudWeaviateVectorStore,
|
|
179
|
+
)
|
|
180
|
+
from swarmauri.documents.Document import Document
|
|
181
|
+
|
|
182
|
+
# Initialize the vector store
|
|
183
|
+
vector_store = CloudWeaviateVectorStore(
|
|
184
|
+
url="your-weaviate-url",
|
|
185
|
+
api_key="your-api-key",
|
|
186
|
+
collection_name="example",
|
|
187
|
+
vector_size=100,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
# Connect to Weaviate
|
|
191
|
+
vector_store.connect()
|
|
192
|
+
|
|
193
|
+
# Add documents
|
|
194
|
+
document = Document(
|
|
195
|
+
id="doc-001",
|
|
196
|
+
content="This is a sample document content.",
|
|
197
|
+
metadata={"author": "Alice", "date": "2024-01-01"},
|
|
198
|
+
)
|
|
199
|
+
vector_store.add_document(document)
|
|
200
|
+
|
|
201
|
+
# Retrieve similar documents
|
|
202
|
+
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
203
|
+
|
|
204
|
+
# Clean up
|
|
205
|
+
vector_store.disconnect()
|
|
206
|
+
```
|
|
207
|
+
<!-- readme-standards:end example.usage -->
|
|
208
|
+
|
|
209
|
+
Here's a basic example of how to use the CloudWeaviateVectorStore:
|
|
210
|
+
|
|
211
|
+
### Configuration
|
|
212
|
+
|
|
213
|
+
Configure `swarmauri_vectorstore_cloudweaviate` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
214
|
+
|
|
215
|
+
### Error Handling
|
|
216
|
+
|
|
217
|
+
The inspected `swarmauri_vectorstore_cloudweaviate` source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py).
|
|
218
|
+
|
|
219
|
+
### Best Practices
|
|
220
|
+
|
|
221
|
+
Use the explicit `swarmauri_vectorstore_cloudweaviate` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `CloudWeaviateVectorStore`; an import or successful installation alone does not establish its runtime guarantees.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Package Boundary
|
|
226
|
+
|
|
227
|
+
### What It Owns
|
|
228
|
+
|
|
229
|
+
`swarmauri_vectorstore_cloudweaviate` is located in `community` and owns swarmauri Weaviate Vector Store. Source-declared APIs include `CloudWeaviateVectorStore`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) records its direct dependency boundary.
|
|
230
|
+
|
|
231
|
+
### Public API and Import Surfaces
|
|
232
|
+
|
|
233
|
+
Import namespace: `swarmauri_vectorstore_cloudweaviate`.
|
|
234
|
+
|
|
235
|
+
Source-declared exports or types: `CloudWeaviateVectorStore`.
|
|
236
|
+
|
|
237
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
238
|
+
|
|
239
|
+
### Entry Points
|
|
240
|
+
|
|
241
|
+
<!-- readme-standards:begin entry-points -->
|
|
242
|
+
- `swarmauri.vector_stores` → `CloudWeaviateVectorStore` → `swarmauri_vectorstore_cloudweaviate.CloudWeaviateVectorStore:CloudWeaviateVectorStore`
|
|
243
|
+
<!-- readme-standards:end entry-points -->
|
|
244
|
+
|
|
245
|
+
### Injected Dependencies
|
|
246
|
+
|
|
247
|
+
The direct installation dependencies of `swarmauri_vectorstore_cloudweaviate` are `weaviate-client`, `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `swarmauri-embedding-doc2vec`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py).
|
|
248
|
+
|
|
249
|
+
### Protocol Consumers
|
|
250
|
+
|
|
251
|
+
No direct package-manifest dependency on `swarmauri_vectorstore_cloudweaviate` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
|
|
252
|
+
|
|
253
|
+
### Extensions
|
|
254
|
+
|
|
255
|
+
For `swarmauri_vectorstore_cloudweaviate`, use the source-declared public interfaces (`CloudWeaviateVectorStore`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Operations and Readiness
|
|
260
|
+
|
|
261
|
+
### Operational Requirements
|
|
262
|
+
|
|
263
|
+
Operate `swarmauri_vectorstore_cloudweaviate` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
264
|
+
|
|
265
|
+
### Health and Observability
|
|
266
|
+
|
|
267
|
+
This README does not establish a standalone health endpoint for `swarmauri_vectorstore_cloudweaviate`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
268
|
+
|
|
269
|
+
### Security and Resource Limits
|
|
270
|
+
|
|
271
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py). The `swarmauri_vectorstore_cloudweaviate` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
272
|
+
|
|
273
|
+
### Compatibility
|
|
274
|
+
|
|
275
|
+
This source version of `swarmauri_vectorstore_cloudweaviate` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Verification
|
|
280
|
+
|
|
281
|
+
### Tests
|
|
282
|
+
|
|
283
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_vectorstore_cloudweaviate` package directory for the maintained example source checks (Python compilation and non-Python file presence). Behavioral tests may live in the repository’s shared suites; the new README syntax test is not presented as runtime coverage for swarmauri Weaviate Vector Store.
|
|
284
|
+
|
|
285
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
286
|
+
|
|
287
|
+
### Certification Status
|
|
288
|
+
|
|
289
|
+
No external certification is asserted for `swarmauri_vectorstore_cloudweaviate` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
290
|
+
|
|
291
|
+
### Evidence
|
|
292
|
+
|
|
293
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## FAQ
|
|
298
|
+
|
|
299
|
+
### Why
|
|
300
|
+
|
|
301
|
+
**Why select this package?** `swarmauri_vectorstore_cloudweaviate` provides swarmauri Weaviate Vector Store; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
|
|
302
|
+
|
|
303
|
+
### How
|
|
304
|
+
|
|
305
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_vectorstore_cloudweaviate`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) for the exact types and signatures involved.
|
|
306
|
+
|
|
307
|
+
### When
|
|
308
|
+
|
|
309
|
+
**When should I validate an upgrade?** Recheck `swarmauri_vectorstore_cloudweaviate` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Documentation and Related Packages
|
|
314
|
+
|
|
315
|
+
### More Documentation
|
|
316
|
+
|
|
317
|
+
The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) provide the supporting context for `swarmauri_vectorstore_cloudweaviate`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
|
|
318
|
+
|
|
319
|
+
### Related Packages
|
|
320
|
+
|
|
321
|
+
- [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
|
|
322
|
+
- [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
|
|
323
|
+
- [swarmauri_embedding_doc2vec](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_embedding_doc2vec/README.md): A Doc2Vec based Embedding Model.
|
|
324
|
+
- [swarmauri_standard](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/30-standard-kernel/swarmauri_standard/README.md): First-party Swarmauri standard components for agents, tools, parsers, vectors, model adapters, and composable intelligence workflows.
|
|
325
|
+
|
|
326
|
+
### Project Links
|
|
327
|
+
|
|
328
|
+
<!-- readme-standards:begin project-links -->
|
|
329
|
+
- [pypi: swarmauri_vectorstore_cloudweaviate](https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/)
|
|
330
|
+
<!-- readme-standards:end project-links -->
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Contributing
|
|
335
|
+
|
|
336
|
+
### How to Contribute
|
|
337
|
+
|
|
338
|
+
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
339
|
+
|
|
340
|
+
### Development Setup
|
|
341
|
+
|
|
342
|
+
Work from the `pkgs/50-community/swarmauri_vectorstore_cloudweaviate` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
343
|
+
|
|
344
|
+
### Notes for Maintainers
|
|
345
|
+
|
|
346
|
+
Edit authored prose directly in this `swarmauri_vectorstore_cloudweaviate` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Governance
|
|
351
|
+
|
|
352
|
+
### Ownership and Decision Making
|
|
353
|
+
|
|
354
|
+
Changes to `swarmauri_vectorstore_cloudweaviate` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
355
|
+
|
|
356
|
+
### Standards and Policies
|
|
357
|
+
|
|
358
|
+
`swarmauri_vectorstore_cloudweaviate` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
359
|
+
|
|
360
|
+
### Lifecycle and Migration
|
|
361
|
+
|
|
362
|
+
The `swarmauri_vectorstore_cloudweaviate` source version is `0.11.0`.
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## License and Attribution
|
|
367
|
+
|
|
368
|
+
### License
|
|
369
|
+
|
|
370
|
+
<!-- readme-standards:begin license -->
|
|
371
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/LICENSE).
|
|
372
|
+
<!-- readme-standards:end license -->
|
|
373
|
+
|
|
374
|
+
### Notices
|
|
375
|
+
|
|
376
|
+
<!-- readme-standards:begin notices -->
|
|
377
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/NOTICE) for attribution.
|
|
378
|
+
<!-- readme-standards:end notices -->
|
|
379
|
+
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# swarmauri_vectorstore_cloudweaviate
|
|
2
|
+
|
|
3
|
+
<!-- readme-standards:begin branding -->
|
|
4
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
5
|
+
<p align="center"><strong>swarmauri_vectorstore_cloudweaviate</strong></p>
|
|
6
|
+
<p align="center">Swarmauri Weaviate Vector Store</p>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/"><img alt="pypi: swarmauri_vectorstore_cloudweaviate" src="https://img.shields.io/pypi/v/swarmauri_vectorstore_cloudweaviate?labelColor=1E293B&color=1D4ED8"></a>
|
|
9
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.11.0&labelColor=1E293B&color=4338CA"></a>
|
|
10
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
11
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml"><img alt="Layer: community" src="https://img.shields.io/static/v1?label=Layer&message=community&labelColor=1E293B&color=6D28D9"></a>
|
|
12
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
13
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
14
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
15
|
+
</p>
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/"><img alt="Monthly PyPI downloads: swarmauri_vectorstore_cloudweaviate" src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_cloudweaviate?labelColor=1E293B&color=0E7490"></a>
|
|
18
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md"><img alt="README hits: swarmauri_vectorstore_cloudweaviate" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
19
|
+
</p>
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
22
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
23
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
24
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
25
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
26
|
+
</p>
|
|
27
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
28
|
+
<!-- readme-standards:end branding -->
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Overview
|
|
33
|
+
|
|
34
|
+
### Summary
|
|
35
|
+
|
|
36
|
+
A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.
|
|
37
|
+
|
|
38
|
+
### Why This Package
|
|
39
|
+
|
|
40
|
+
`swarmauri_vectorstore_cloudweaviate` isolates this responsibility: Swarmauri Weaviate Vector Store. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) exposes `CloudWeaviateVectorStore`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
|
|
41
|
+
|
|
42
|
+
### When to Use
|
|
43
|
+
|
|
44
|
+
Choose `swarmauri_vectorstore_cloudweaviate` when your integration needs swarmauri Weaviate Vector Store. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- `CloudWeaviateVectorStore`: declared in swarmauri_vectorstore_cloudweaviate/CloudWeaviateVectorStore.py
|
|
49
|
+
|
|
50
|
+
### Non-Goals
|
|
51
|
+
|
|
52
|
+
`swarmauri_vectorstore_cloudweaviate` owns swarmauri Weaviate Vector Store. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Getting Started
|
|
57
|
+
|
|
58
|
+
### Prerequisites
|
|
59
|
+
|
|
60
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) declares runtime dependencies including `weaviate-client`, `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `swarmauri-embedding-doc2vec`. Read the example’s inputs and service requirements before execution.
|
|
61
|
+
|
|
62
|
+
### Installation
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install swarmauri_vectorstore_cloudweaviate
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
#### uv
|
|
69
|
+
|
|
70
|
+
<!-- readme-standards:begin installation.uv -->
|
|
71
|
+
```bash
|
|
72
|
+
uv add swarmauri_vectorstore_cloudweaviate
|
|
73
|
+
```
|
|
74
|
+
<!-- readme-standards:end installation.uv -->
|
|
75
|
+
|
|
76
|
+
#### pip
|
|
77
|
+
|
|
78
|
+
<!-- readme-standards:begin installation.pip -->
|
|
79
|
+
```bash
|
|
80
|
+
python -m pip install swarmauri_vectorstore_cloudweaviate
|
|
81
|
+
```
|
|
82
|
+
<!-- readme-standards:end installation.pip -->
|
|
83
|
+
|
|
84
|
+
#### Poetry
|
|
85
|
+
|
|
86
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
87
|
+
```bash
|
|
88
|
+
poetry add swarmauri_vectorstore_cloudweaviate
|
|
89
|
+
```
|
|
90
|
+
<!-- readme-standards:end installation.poetry -->
|
|
91
|
+
|
|
92
|
+
### Quick Start
|
|
93
|
+
|
|
94
|
+
#### Example
|
|
95
|
+
|
|
96
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
97
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/docs/readme/quick_start.py).
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
from swarmauri.vector_stores.CloudWeaviateVectorStore import (
|
|
101
|
+
CloudWeaviateVectorStore,
|
|
102
|
+
)
|
|
103
|
+
from swarmauri.documents.Document import Document
|
|
104
|
+
|
|
105
|
+
# Initialize the vector store
|
|
106
|
+
vector_store = CloudWeaviateVectorStore(
|
|
107
|
+
url="your-weaviate-url",
|
|
108
|
+
api_key="your-api-key",
|
|
109
|
+
collection_name="example",
|
|
110
|
+
vector_size=100,
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# Connect to Weaviate
|
|
114
|
+
vector_store.connect()
|
|
115
|
+
|
|
116
|
+
# Add documents
|
|
117
|
+
document = Document(
|
|
118
|
+
id="doc-001",
|
|
119
|
+
content="This is a sample document content.",
|
|
120
|
+
metadata={"author": "Alice", "date": "2024-01-01"},
|
|
121
|
+
)
|
|
122
|
+
vector_store.add_document(document)
|
|
123
|
+
|
|
124
|
+
# Retrieve similar documents
|
|
125
|
+
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
126
|
+
|
|
127
|
+
# Clean up
|
|
128
|
+
vector_store.disconnect()
|
|
129
|
+
```
|
|
130
|
+
<!-- readme-standards:end example.quick-start -->
|
|
131
|
+
|
|
132
|
+
#### Expected Result
|
|
133
|
+
|
|
134
|
+
The example demonstrates the documented `swarmauri_vectorstore_cloudweaviate` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Usage
|
|
139
|
+
|
|
140
|
+
### Common Workflows
|
|
141
|
+
|
|
142
|
+
<!-- readme-standards:begin example.usage -->
|
|
143
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/docs/readme/usage.py).
|
|
144
|
+
|
|
145
|
+
```python
|
|
146
|
+
from swarmauri.vector_stores.CloudWeaviateVectorStore import (
|
|
147
|
+
CloudWeaviateVectorStore,
|
|
148
|
+
)
|
|
149
|
+
from swarmauri.documents.Document import Document
|
|
150
|
+
|
|
151
|
+
# Initialize the vector store
|
|
152
|
+
vector_store = CloudWeaviateVectorStore(
|
|
153
|
+
url="your-weaviate-url",
|
|
154
|
+
api_key="your-api-key",
|
|
155
|
+
collection_name="example",
|
|
156
|
+
vector_size=100,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
# Connect to Weaviate
|
|
160
|
+
vector_store.connect()
|
|
161
|
+
|
|
162
|
+
# Add documents
|
|
163
|
+
document = Document(
|
|
164
|
+
id="doc-001",
|
|
165
|
+
content="This is a sample document content.",
|
|
166
|
+
metadata={"author": "Alice", "date": "2024-01-01"},
|
|
167
|
+
)
|
|
168
|
+
vector_store.add_document(document)
|
|
169
|
+
|
|
170
|
+
# Retrieve similar documents
|
|
171
|
+
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
172
|
+
|
|
173
|
+
# Clean up
|
|
174
|
+
vector_store.disconnect()
|
|
175
|
+
```
|
|
176
|
+
<!-- readme-standards:end example.usage -->
|
|
177
|
+
|
|
178
|
+
Here's a basic example of how to use the CloudWeaviateVectorStore:
|
|
179
|
+
|
|
180
|
+
### Configuration
|
|
181
|
+
|
|
182
|
+
Configure `swarmauri_vectorstore_cloudweaviate` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
183
|
+
|
|
184
|
+
### Error Handling
|
|
185
|
+
|
|
186
|
+
The inspected `swarmauri_vectorstore_cloudweaviate` source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py).
|
|
187
|
+
|
|
188
|
+
### Best Practices
|
|
189
|
+
|
|
190
|
+
Use the explicit `swarmauri_vectorstore_cloudweaviate` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `CloudWeaviateVectorStore`; an import or successful installation alone does not establish its runtime guarantees.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Package Boundary
|
|
195
|
+
|
|
196
|
+
### What It Owns
|
|
197
|
+
|
|
198
|
+
`swarmauri_vectorstore_cloudweaviate` is located in `community` and owns swarmauri Weaviate Vector Store. Source-declared APIs include `CloudWeaviateVectorStore`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) records its direct dependency boundary.
|
|
199
|
+
|
|
200
|
+
### Public API and Import Surfaces
|
|
201
|
+
|
|
202
|
+
Import namespace: `swarmauri_vectorstore_cloudweaviate`.
|
|
203
|
+
|
|
204
|
+
Source-declared exports or types: `CloudWeaviateVectorStore`.
|
|
205
|
+
|
|
206
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
207
|
+
|
|
208
|
+
### Entry Points
|
|
209
|
+
|
|
210
|
+
<!-- readme-standards:begin entry-points -->
|
|
211
|
+
- `swarmauri.vector_stores` → `CloudWeaviateVectorStore` → `swarmauri_vectorstore_cloudweaviate.CloudWeaviateVectorStore:CloudWeaviateVectorStore`
|
|
212
|
+
<!-- readme-standards:end entry-points -->
|
|
213
|
+
|
|
214
|
+
### Injected Dependencies
|
|
215
|
+
|
|
216
|
+
The direct installation dependencies of `swarmauri_vectorstore_cloudweaviate` are `weaviate-client`, `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `swarmauri-embedding-doc2vec`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py).
|
|
217
|
+
|
|
218
|
+
### Protocol Consumers
|
|
219
|
+
|
|
220
|
+
No direct package-manifest dependency on `swarmauri_vectorstore_cloudweaviate` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
|
|
221
|
+
|
|
222
|
+
### Extensions
|
|
223
|
+
|
|
224
|
+
For `swarmauri_vectorstore_cloudweaviate`, use the source-declared public interfaces (`CloudWeaviateVectorStore`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Operations and Readiness
|
|
229
|
+
|
|
230
|
+
### Operational Requirements
|
|
231
|
+
|
|
232
|
+
Operate `swarmauri_vectorstore_cloudweaviate` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
233
|
+
|
|
234
|
+
### Health and Observability
|
|
235
|
+
|
|
236
|
+
This README does not establish a standalone health endpoint for `swarmauri_vectorstore_cloudweaviate`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
237
|
+
|
|
238
|
+
### Security and Resource Limits
|
|
239
|
+
|
|
240
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py). The `swarmauri_vectorstore_cloudweaviate` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
241
|
+
|
|
242
|
+
### Compatibility
|
|
243
|
+
|
|
244
|
+
This source version of `swarmauri_vectorstore_cloudweaviate` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## Verification
|
|
249
|
+
|
|
250
|
+
### Tests
|
|
251
|
+
|
|
252
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_vectorstore_cloudweaviate` package directory for the maintained example source checks (Python compilation and non-Python file presence). Behavioral tests may live in the repository’s shared suites; the new README syntax test is not presented as runtime coverage for swarmauri Weaviate Vector Store.
|
|
253
|
+
|
|
254
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
255
|
+
|
|
256
|
+
### Certification Status
|
|
257
|
+
|
|
258
|
+
No external certification is asserted for `swarmauri_vectorstore_cloudweaviate` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
259
|
+
|
|
260
|
+
### Evidence
|
|
261
|
+
|
|
262
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## FAQ
|
|
267
|
+
|
|
268
|
+
### Why
|
|
269
|
+
|
|
270
|
+
**Why select this package?** `swarmauri_vectorstore_cloudweaviate` provides swarmauri Weaviate Vector Store; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
|
|
271
|
+
|
|
272
|
+
### How
|
|
273
|
+
|
|
274
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_vectorstore_cloudweaviate`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py) for the exact types and signatures involved.
|
|
275
|
+
|
|
276
|
+
### When
|
|
277
|
+
|
|
278
|
+
**When should I validate an upgrade?** Recheck `swarmauri_vectorstore_cloudweaviate` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Documentation and Related Packages
|
|
283
|
+
|
|
284
|
+
### More Documentation
|
|
285
|
+
|
|
286
|
+
The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/swarmauri_vectorstore_cloudweaviate/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml) provide the supporting context for `swarmauri_vectorstore_cloudweaviate`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
|
|
287
|
+
|
|
288
|
+
### Related Packages
|
|
289
|
+
|
|
290
|
+
- [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
|
|
291
|
+
- [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
|
|
292
|
+
- [swarmauri_embedding_doc2vec](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_embedding_doc2vec/README.md): A Doc2Vec based Embedding Model.
|
|
293
|
+
- [swarmauri_standard](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/30-standard-kernel/swarmauri_standard/README.md): First-party Swarmauri standard components for agents, tools, parsers, vectors, model adapters, and composable intelligence workflows.
|
|
294
|
+
|
|
295
|
+
### Project Links
|
|
296
|
+
|
|
297
|
+
<!-- readme-standards:begin project-links -->
|
|
298
|
+
- [pypi: swarmauri_vectorstore_cloudweaviate](https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/)
|
|
299
|
+
<!-- readme-standards:end project-links -->
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Contributing
|
|
304
|
+
|
|
305
|
+
### How to Contribute
|
|
306
|
+
|
|
307
|
+
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
308
|
+
|
|
309
|
+
### Development Setup
|
|
310
|
+
|
|
311
|
+
Work from the `pkgs/50-community/swarmauri_vectorstore_cloudweaviate` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
312
|
+
|
|
313
|
+
### Notes for Maintainers
|
|
314
|
+
|
|
315
|
+
Edit authored prose directly in this `swarmauri_vectorstore_cloudweaviate` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## Governance
|
|
320
|
+
|
|
321
|
+
### Ownership and Decision Making
|
|
322
|
+
|
|
323
|
+
Changes to `swarmauri_vectorstore_cloudweaviate` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
324
|
+
|
|
325
|
+
### Standards and Policies
|
|
326
|
+
|
|
327
|
+
`swarmauri_vectorstore_cloudweaviate` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
328
|
+
|
|
329
|
+
### Lifecycle and Migration
|
|
330
|
+
|
|
331
|
+
The `swarmauri_vectorstore_cloudweaviate` source version is `0.11.0`.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## License and Attribution
|
|
336
|
+
|
|
337
|
+
### License
|
|
338
|
+
|
|
339
|
+
<!-- readme-standards:begin license -->
|
|
340
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/LICENSE).
|
|
341
|
+
<!-- readme-standards:end license -->
|
|
342
|
+
|
|
343
|
+
### Notices
|
|
344
|
+
|
|
345
|
+
<!-- readme-standards:begin notices -->
|
|
346
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/NOTICE) for attribution.
|
|
347
|
+
<!-- readme-standards:end notices -->
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_vectorstore_cloudweaviate"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0"
|
|
4
4
|
description = "Swarmauri Weaviate Vector Store"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
repository = "http://github.com/swarmauri/swarmauri-sdk"
|
|
8
8
|
requires-python = ">=3.10,<3.15"
|
|
9
9
|
classifiers = [
|
|
10
|
-
"License :: OSI Approved :: Apache Software License",
|
|
11
10
|
"Natural Language :: English",
|
|
12
11
|
"Development Status :: 3 - Alpha",
|
|
13
12
|
"Intended Audience :: Developers",
|
|
@@ -24,6 +23,7 @@ classifiers = [
|
|
|
24
23
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
25
24
|
dependencies = [
|
|
26
25
|
"weaviate-client>=4.9.2",
|
|
26
|
+
"grpcio>=1.72.0",
|
|
27
27
|
"swarmauri_core",
|
|
28
28
|
"swarmauri_base",
|
|
29
29
|
"swarmauri_standard",
|
|
@@ -37,6 +37,7 @@ keywords = [
|
|
|
37
37
|
"vector",
|
|
38
38
|
"store",
|
|
39
39
|
]
|
|
40
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
40
41
|
|
|
41
42
|
[tool.uv.sources]
|
|
42
43
|
swarmauri_core = { workspace = true }
|
|
@@ -64,6 +65,54 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
|
|
|
64
65
|
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
|
65
66
|
asyncio_default_fixture_loop_scope = "function"
|
|
66
67
|
|
|
68
|
+
[tool.readme_standards]
|
|
69
|
+
policy = "package-guide-v1"
|
|
70
|
+
readme = "README.md"
|
|
71
|
+
brand = "swarmauri"
|
|
72
|
+
brand_catalog = "../../../tools/readme/brands.toml"
|
|
73
|
+
repository = "https://github.com/swarmauri/swarmauri-sdk"
|
|
74
|
+
ref = "master"
|
|
75
|
+
package_path = "pkgs/50-community/swarmauri_vectorstore_cloudweaviate"
|
|
76
|
+
layer = "community"
|
|
77
|
+
lifecycle = "active"
|
|
78
|
+
license_file = "LICENSE"
|
|
79
|
+
notice_file = "NOTICE"
|
|
80
|
+
|
|
81
|
+
[tool.readme_standards.distributions.pypi]
|
|
82
|
+
name = "swarmauri_vectorstore_cloudweaviate"
|
|
83
|
+
published = true
|
|
84
|
+
|
|
85
|
+
[tool.readme_standards.examples.quick_start]
|
|
86
|
+
source = "docs/readme/quick_start.py"
|
|
87
|
+
test = "tests/unit/test_readme_sources.py"
|
|
88
|
+
language = "python"
|
|
89
|
+
expected_exit_code = 0
|
|
90
|
+
|
|
91
|
+
[tool.readme_standards.examples.usage]
|
|
92
|
+
source = "docs/readme/usage.py"
|
|
93
|
+
test = "tests/unit/test_readme_sources.py"
|
|
94
|
+
language = "python"
|
|
95
|
+
expected_exit_code = 0
|
|
96
|
+
|
|
97
|
+
[tool.readme_standards.statuses.readme]
|
|
98
|
+
label = "CI gate"
|
|
99
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
|
|
100
|
+
|
|
101
|
+
[tool.readme_standards.statuses.tests]
|
|
102
|
+
label = "example source"
|
|
103
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/tests/unit/test_readme_sources.py"
|
|
104
|
+
|
|
105
|
+
[tool.readme_standards.statuses.certification]
|
|
106
|
+
label = "not certified"
|
|
107
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_vectorstore_cloudweaviate/README.md#certification-status"
|
|
108
|
+
|
|
109
|
+
[tool.readme_standards.statuses.governance]
|
|
110
|
+
label = "repository policy"
|
|
111
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"
|
|
112
|
+
|
|
113
|
+
[tool.readme_standards.statuses.evidence]
|
|
114
|
+
label = "source and CI"
|
|
115
|
+
url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
|
|
67
116
|
[project.entry-points.'swarmauri.vector_stores']
|
|
68
117
|
CloudWeaviateVectorStore = "swarmauri_vectorstore_cloudweaviate.CloudWeaviateVectorStore:CloudWeaviateVectorStore"
|
|
69
118
|
|
|
@@ -78,9 +127,10 @@ dev = [
|
|
|
78
127
|
"pytest-xdist>=3.6.1",
|
|
79
128
|
"pytest-json-report>=1.5.0",
|
|
80
129
|
"python-dotenv",
|
|
81
|
-
"
|
|
130
|
+
"httpx>=0.27",
|
|
82
131
|
"flake8>=7.0",
|
|
83
132
|
"pytest-timeout>=2.3.1",
|
|
84
133
|
"ruff>=0.9.9",
|
|
85
134
|
"pytest-benchmark>=4.0.0",
|
|
135
|
+
"readme-standards==0.1.3; python_version >= \"3.11\"",
|
|
86
136
|
]
|
|
@@ -18,7 +18,9 @@ from swarmauri_base.vector_stores.VectorStoreRetrieveMixin import (
|
|
|
18
18
|
from swarmauri_base.vector_stores.VectorStoreSaveLoadMixin import (
|
|
19
19
|
VectorStoreSaveLoadMixin,
|
|
20
20
|
)
|
|
21
|
-
from swarmauri_base.vector_stores.VectorStoreCloudMixin import
|
|
21
|
+
from swarmauri_base.vector_stores.VectorStoreCloudMixin import (
|
|
22
|
+
VectorStoreCloudMixin,
|
|
23
|
+
)
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
@ComponentBase.register_type(VectorStoreBase, "CloudWeaviateVectorStore")
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: swarmauri_vectorstore_cloudweaviate
|
|
3
|
-
Version: 0.10.1.dev2
|
|
4
|
-
Summary: Swarmauri Weaviate Vector Store
|
|
5
|
-
License-Expression: Apache-2.0
|
|
6
|
-
License-File: LICENSE
|
|
7
|
-
Keywords: swarmauri,vectorstore,cloudweaviate,weaviate,vector,store
|
|
8
|
-
Author: Jacob Stewart
|
|
9
|
-
Author-email: jacob@swarmauri.com
|
|
10
|
-
Requires-Python: >=3.10,<3.15
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
-
Classifier: Natural Language :: English
|
|
13
|
-
Classifier: Development Status :: 3 - Alpha
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
16
|
-
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
-
Requires-Dist: swarmauri_base
|
|
25
|
-
Requires-Dist: swarmauri_core
|
|
26
|
-
Requires-Dist: swarmauri_embedding_doc2vec
|
|
27
|
-
Requires-Dist: swarmauri_standard
|
|
28
|
-
Requires-Dist: weaviate-client (>=4.9.2)
|
|
29
|
-
Description-Content-Type: text/markdown
|
|
30
|
-
|
|
31
|
-

|
|
32
|
-
|
|
33
|
-
<p align="center">
|
|
34
|
-
<a href="https://pepy.tech/project/swarmauri_vectorstore_cloudweaviate/">
|
|
35
|
-
<img src="https://static.pepy.tech/badge/swarmauri_vectorstore_cloudweaviate/month" alt="PyPI - Downloads"/></a>
|
|
36
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_vectorstore_cloudweaviate/">
|
|
37
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_vectorstore_cloudweaviate.svg"/></a>
|
|
38
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
39
|
-
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
40
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
41
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_vectorstore_cloudweaviate" alt="PyPI - License"/></a>
|
|
42
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
43
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_vectorstore_cloudweaviate?label=swarmauri_vectorstore_cloudweaviate&color=green" alt="PyPI - swarmauri_vectorstore_cloudweaviate"/></a>
|
|
44
|
-
</p>
|
|
45
|
-
|
|
46
|
-
# Swarmauri Vectorstore CloudWeaviate
|
|
47
|
-
|
|
48
|
-
A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.
|
|
49
|
-
|
|
50
|
-
## Installation
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
pip install swarmauri_vectorstore_cloudweaviate
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Usage
|
|
57
|
-
Here's a basic example of how to use the CloudWeaviateVectorStore:
|
|
58
|
-
|
|
59
|
-
```python
|
|
60
|
-
from swarmauri.vector_stores.CloudWeaviateVectorStore import CloudWeaviateVectorStore
|
|
61
|
-
from swarmauri.documents.Document import Document
|
|
62
|
-
|
|
63
|
-
# Initialize the vector store
|
|
64
|
-
vector_store = CloudWeaviateVectorStore(
|
|
65
|
-
url="your-weaviate-url",
|
|
66
|
-
api_key="your-api-key",
|
|
67
|
-
collection_name="example",
|
|
68
|
-
vector_size=100
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
# Connect to Weaviate
|
|
72
|
-
vector_store.connect()
|
|
73
|
-
|
|
74
|
-
# Add documents
|
|
75
|
-
document = Document(
|
|
76
|
-
id="doc-001",
|
|
77
|
-
content="This is a sample document content.",
|
|
78
|
-
metadata={"author": "Alice", "date": "2024-01-01"}
|
|
79
|
-
)
|
|
80
|
-
vector_store.add_document(document)
|
|
81
|
-
|
|
82
|
-
# Retrieve similar documents
|
|
83
|
-
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
84
|
-
|
|
85
|
-
# Clean up
|
|
86
|
-
vector_store.disconnect()
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Want to help?
|
|
90
|
-
|
|
91
|
-
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
92
|
-
|
|
93
|
-
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://pepy.tech/project/swarmauri_vectorstore_cloudweaviate/">
|
|
5
|
-
<img src="https://static.pepy.tech/badge/swarmauri_vectorstore_cloudweaviate/month" alt="PyPI - Downloads"/></a>
|
|
6
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_vectorstore_cloudweaviate/">
|
|
7
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_vectorstore_cloudweaviate.svg"/></a>
|
|
8
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
9
|
-
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
10
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
11
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_vectorstore_cloudweaviate" alt="PyPI - License"/></a>
|
|
12
|
-
<a href="https://pypi.org/project/swarmauri_vectorstore_cloudweaviate/">
|
|
13
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_vectorstore_cloudweaviate?label=swarmauri_vectorstore_cloudweaviate&color=green" alt="PyPI - swarmauri_vectorstore_cloudweaviate"/></a>
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
# Swarmauri Vectorstore CloudWeaviate
|
|
17
|
-
|
|
18
|
-
A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.
|
|
19
|
-
|
|
20
|
-
## Installation
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
pip install swarmauri_vectorstore_cloudweaviate
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
Here's a basic example of how to use the CloudWeaviateVectorStore:
|
|
28
|
-
|
|
29
|
-
```python
|
|
30
|
-
from swarmauri.vector_stores.CloudWeaviateVectorStore import CloudWeaviateVectorStore
|
|
31
|
-
from swarmauri.documents.Document import Document
|
|
32
|
-
|
|
33
|
-
# Initialize the vector store
|
|
34
|
-
vector_store = CloudWeaviateVectorStore(
|
|
35
|
-
url="your-weaviate-url",
|
|
36
|
-
api_key="your-api-key",
|
|
37
|
-
collection_name="example",
|
|
38
|
-
vector_size=100
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
# Connect to Weaviate
|
|
42
|
-
vector_store.connect()
|
|
43
|
-
|
|
44
|
-
# Add documents
|
|
45
|
-
document = Document(
|
|
46
|
-
id="doc-001",
|
|
47
|
-
content="This is a sample document content.",
|
|
48
|
-
metadata={"author": "Alice", "date": "2024-01-01"}
|
|
49
|
-
)
|
|
50
|
-
vector_store.add_document(document)
|
|
51
|
-
|
|
52
|
-
# Retrieve similar documents
|
|
53
|
-
results = vector_store.retrieve(query="sample content", top_k=5)
|
|
54
|
-
|
|
55
|
-
# Clean up
|
|
56
|
-
vector_store.disconnect()
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Want to help?
|
|
60
|
-
|
|
61
|
-
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
62
|
-
|
|
File without changes
|