swarmauri_vectorstore_doc2vec 0.9.0.dev50__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.
@@ -0,0 +1,7 @@
1
+ swarmauri_vectorstore_doc2vec
2
+
3
+ Distribution: swarmauri_vectorstore_doc2vec
4
+ Repository: https://github.com/swarmauri/swarmauri-sdk
5
+
6
+ Author attribution: Jacob Stewart.
7
+ Licensed under Apache-2.0; see LICENSE.
@@ -0,0 +1,347 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_vectorstore_doc2vec
3
+ Version: 0.11.0
4
+ Summary: A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: swarmauri,sdk,standards,vectorstore,doc2vec,machine-learning
9
+ Author: Jacob Stewart
10
+ Author-email: jacob@swarmauri.com
11
+ Requires-Python: >=3.10,<3.15
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Requires-Dist: swarmauri_base
21
+ Requires-Dist: swarmauri_core
22
+ Requires-Dist: swarmauri_embedding_doc2vec
23
+ Requires-Dist: swarmauri_standard
24
+ Description-Content-Type: text/markdown
25
+
26
+ # swarmauri_vectorstore_doc2vec
27
+
28
+ <!-- readme-standards:begin branding -->
29
+ <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>
30
+ <p align="center"><strong>swarmauri_vectorstore_doc2vec</strong></p>
31
+ <p align="center">A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.</p>
32
+ <p align="center">
33
+ <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/"><img alt="pypi: swarmauri_vectorstore_doc2vec" src="https://img.shields.io/pypi/v/swarmauri_vectorstore_doc2vec?labelColor=1E293B&amp;color=1D4ED8"></a>
34
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.11.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
35
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.15" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.15&amp;labelColor=1E293B&amp;color=0F766E"></a>
36
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Layer: standards" src="https://img.shields.io/static/v1?label=Layer&amp;message=standards&amp;labelColor=1E293B&amp;color=6D28D9"></a>
37
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
38
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
39
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
40
+ </p>
41
+ <p align="center">
42
+ <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/"><img alt="Monthly PyPI downloads: swarmauri_vectorstore_doc2vec" src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_doc2vec?labelColor=1E293B&amp;color=0E7490"></a>
43
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md"><img alt="README hits: swarmauri_vectorstore_doc2vec" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
44
+ </p>
45
+ <p align="center">
46
+ <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&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
47
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
48
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;color=92400E"></a>
49
+ <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&amp;message=repository%20policy&amp;labelColor=1E293B&amp;color=4338CA"></a>
50
+ <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&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;color=6D28D9"></a>
51
+ </p>
52
+ <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>
53
+ <!-- readme-standards:end branding -->
54
+
55
+ ---
56
+
57
+ ## Overview
58
+
59
+ ### Summary
60
+
61
+ A vector store implementation using Doc2Vec for document embedding and similarity search.
62
+
63
+ ### Why This Package
64
+
65
+ `swarmauri_vectorstore_doc2vec` isolates this responsibility: A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) exposes `Doc2VecVectorStore`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
66
+
67
+ ### When to Use
68
+
69
+ Choose `swarmauri_vectorstore_doc2vec` when your integration needs a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Match the imports below to your application boundary and install its declared dependencies before using the example.
70
+
71
+ ### Features
72
+
73
+ - `Doc2VecVectorStore`: declared in swarmauri_vectorstore_doc2vec/Doc2VecVectorStore.py
74
+
75
+ ### Non-Goals
76
+
77
+ `swarmauri_vectorstore_doc2vec` owns a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. 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.
78
+
79
+ ---
80
+
81
+ ## Getting Started
82
+
83
+ ### Prerequisites
84
+
85
+ Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-embedding-doc2vec`, `swarmauri-standard`. Read the example’s inputs and service requirements before execution.
86
+
87
+ ### Installation
88
+
89
+ ```bash
90
+ pip install swarmauri_vectorstore_doc2vec
91
+ ```
92
+
93
+ #### uv
94
+
95
+ <!-- readme-standards:begin installation.uv -->
96
+ ```bash
97
+ uv add swarmauri_vectorstore_doc2vec
98
+ ```
99
+ <!-- readme-standards:end installation.uv -->
100
+
101
+ #### pip
102
+
103
+ <!-- readme-standards:begin installation.pip -->
104
+ ```bash
105
+ python -m pip install swarmauri_vectorstore_doc2vec
106
+ ```
107
+ <!-- readme-standards:end installation.pip -->
108
+
109
+ #### Poetry
110
+
111
+ <!-- readme-standards:begin installation.poetry -->
112
+ ```bash
113
+ poetry add swarmauri_vectorstore_doc2vec
114
+ ```
115
+ <!-- readme-standards:end installation.poetry -->
116
+
117
+ ### Quick Start
118
+
119
+ #### Example
120
+
121
+ <!-- readme-standards:begin example.quick-start -->
122
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/docs/readme/quick_start.py).
123
+
124
+ ```python
125
+ from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
126
+ from swarmauri.documents.Document import Document
127
+
128
+
129
+ # Initialize vector store
130
+ vector_store = Doc2VecVectorStore()
131
+
132
+ # Add documents
133
+ documents = [
134
+ Document(content="This is the first document"),
135
+ Document(content="Here is another document"),
136
+ Document(content="And a third document"),
137
+ ]
138
+ vector_store.add_documents(documents)
139
+
140
+ # Retrieve similar documents
141
+ results = vector_store.retrieve(query="document", top_k=2)
142
+ ```
143
+ <!-- readme-standards:end example.quick-start -->
144
+
145
+ #### Expected Result
146
+
147
+ The example demonstrates the documented `swarmauri_vectorstore_doc2vec` 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.
148
+
149
+ ---
150
+
151
+ ## Usage
152
+
153
+ ### Common Workflows
154
+
155
+ <!-- readme-standards:begin example.usage -->
156
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/docs/readme/usage.py).
157
+
158
+ ```python
159
+ from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
160
+ from swarmauri.documents.Document import Document
161
+
162
+
163
+ # Initialize vector store
164
+ vector_store = Doc2VecVectorStore()
165
+
166
+ # Add documents
167
+ documents = [
168
+ Document(content="This is the first document"),
169
+ Document(content="Here is another document"),
170
+ Document(content="And a third document"),
171
+ ]
172
+ vector_store.add_documents(documents)
173
+
174
+ # Retrieve similar documents
175
+ results = vector_store.retrieve(query="document", top_k=2)
176
+ ```
177
+ <!-- readme-standards:end example.usage -->
178
+
179
+ ### Configuration
180
+
181
+ Configure `swarmauri_vectorstore_doc2vec` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
182
+
183
+ ### Error Handling
184
+
185
+ The inspected `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py).
186
+
187
+ ### Best Practices
188
+
189
+ Use the explicit `swarmauri_vectorstore_doc2vec` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `Doc2VecVectorStore`; an import or successful installation alone does not establish its runtime guarantees.
190
+
191
+ ---
192
+
193
+ ## Package Boundary
194
+
195
+ ### What It Owns
196
+
197
+ `swarmauri_vectorstore_doc2vec` is located in `standards` and owns a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Source-declared APIs include `Doc2VecVectorStore`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) records its direct dependency boundary.
198
+
199
+ ### Public API and Import Surfaces
200
+
201
+ Import namespace: `swarmauri_vectorstore_doc2vec`.
202
+
203
+ Source-declared exports or types: `Doc2VecVectorStore`.
204
+
205
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
206
+
207
+ ### Entry Points
208
+
209
+ <!-- readme-standards:begin entry-points -->
210
+ - `swarmauri.vector_stores` → `Doc2VecVectorStore` → `swarmauri_vectorstore_doc2vec:Doc2VecVectorStore`
211
+ <!-- readme-standards:end entry-points -->
212
+
213
+ ### Injected Dependencies
214
+
215
+ The direct installation dependencies of `swarmauri_vectorstore_doc2vec` are `swarmauri-core`, `swarmauri-base`, `swarmauri-embedding-doc2vec`, `swarmauri-standard`. 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py).
216
+
217
+ ### Protocol Consumers
218
+
219
+ No direct package-manifest dependency on `swarmauri_vectorstore_doc2vec` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
220
+
221
+ ### Extensions
222
+
223
+ For `swarmauri_vectorstore_doc2vec`, use the source-declared public interfaces (`Doc2VecVectorStore`) 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.
224
+
225
+ ---
226
+
227
+ ## Operations and Readiness
228
+
229
+ ### Operational Requirements
230
+
231
+ Operate `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
232
+
233
+ ### Health and Observability
234
+
235
+ This README does not establish a standalone health endpoint for `swarmauri_vectorstore_doc2vec`. 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.
236
+
237
+ ### Security and Resource Limits
238
+
239
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py). The `swarmauri_vectorstore_doc2vec` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
240
+
241
+ ### Compatibility
242
+
243
+ This source version of `swarmauri_vectorstore_doc2vec` 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.
244
+
245
+ ---
246
+
247
+ ## Verification
248
+
249
+ ### Tests
250
+
251
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_vectorstore_doc2vec` 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 a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.
252
+
253
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
254
+
255
+ ### Certification Status
256
+
257
+ No external certification is asserted for `swarmauri_vectorstore_doc2vec` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
258
+
259
+ ### Evidence
260
+
261
+ 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
262
+
263
+ ---
264
+
265
+ ## FAQ
266
+
267
+ ### Why
268
+
269
+ **Why select this package?** `swarmauri_vectorstore_doc2vec` provides a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
270
+
271
+ ### How
272
+
273
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_vectorstore_doc2vec`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) for the exact types and signatures involved.
274
+
275
+ ### When
276
+
277
+ **When should I validate an upgrade?** Recheck `swarmauri_vectorstore_doc2vec` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
278
+
279
+ ---
280
+
281
+ ## Documentation and Related Packages
282
+
283
+ ### More Documentation
284
+
285
+ 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) provide the supporting context for `swarmauri_vectorstore_doc2vec`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
286
+
287
+ ### Related Packages
288
+
289
+ - [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.
290
+ - [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.
291
+ - [swarmauri_embedding_doc2vec](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_embedding_doc2vec/README.md): A Doc2Vec based Embedding Model.
292
+ - [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.
293
+
294
+ ### Project Links
295
+
296
+ <!-- readme-standards:begin project-links -->
297
+ - [pypi: swarmauri_vectorstore_doc2vec](https://pypi.org/project/swarmauri_vectorstore_doc2vec/)
298
+ <!-- readme-standards:end project-links -->
299
+
300
+ ---
301
+
302
+ ## Contributing
303
+
304
+ ### How to Contribute
305
+
306
+ 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.
307
+
308
+ ### Development Setup
309
+
310
+ Work from the `pkgs/40-standards/swarmauri_vectorstore_doc2vec` 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.
311
+
312
+ ### Notes for Maintainers
313
+
314
+ Edit authored prose directly in this `swarmauri_vectorstore_doc2vec` 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.
315
+
316
+ ---
317
+
318
+ ## Governance
319
+
320
+ ### Ownership and Decision Making
321
+
322
+ Changes to `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml); this README does not assign new publishing or administrative authority.
323
+
324
+ ### Standards and Policies
325
+
326
+ `swarmauri_vectorstore_doc2vec` 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.
327
+
328
+ ### Lifecycle and Migration
329
+
330
+ The `swarmauri_vectorstore_doc2vec` source version is `0.11.0`.
331
+
332
+ ---
333
+
334
+ ## License and Attribution
335
+
336
+ ### License
337
+
338
+ <!-- readme-standards:begin license -->
339
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/LICENSE).
340
+ <!-- readme-standards:end license -->
341
+
342
+ ### Notices
343
+
344
+ <!-- readme-standards:begin notices -->
345
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/NOTICE) for attribution.
346
+ <!-- readme-standards:end notices -->
347
+
@@ -0,0 +1,321 @@
1
+ # swarmauri_vectorstore_doc2vec
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_doc2vec</strong></p>
6
+ <p align="center">A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.</p>
7
+ <p align="center">
8
+ <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/"><img alt="pypi: swarmauri_vectorstore_doc2vec" src="https://img.shields.io/pypi/v/swarmauri_vectorstore_doc2vec?labelColor=1E293B&amp;color=1D4ED8"></a>
9
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.11.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
10
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.15" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.15&amp;labelColor=1E293B&amp;color=0F766E"></a>
11
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml"><img alt="Layer: standards" src="https://img.shields.io/static/v1?label=Layer&amp;message=standards&amp;labelColor=1E293B&amp;color=6D28D9"></a>
12
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
13
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
14
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
15
+ </p>
16
+ <p align="center">
17
+ <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/"><img alt="Monthly PyPI downloads: swarmauri_vectorstore_doc2vec" src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_doc2vec?labelColor=1E293B&amp;color=0E7490"></a>
18
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md"><img alt="README hits: swarmauri_vectorstore_doc2vec" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;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&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
22
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
23
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;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&amp;message=repository%20policy&amp;labelColor=1E293B&amp;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&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;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 vector store implementation using Doc2Vec for document embedding and similarity search.
37
+
38
+ ### Why This Package
39
+
40
+ `swarmauri_vectorstore_doc2vec` isolates this responsibility: A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) exposes `Doc2VecVectorStore`, 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_doc2vec` when your integration needs a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Match the imports below to your application boundary and install its declared dependencies before using the example.
45
+
46
+ ### Features
47
+
48
+ - `Doc2VecVectorStore`: declared in swarmauri_vectorstore_doc2vec/Doc2VecVectorStore.py
49
+
50
+ ### Non-Goals
51
+
52
+ `swarmauri_vectorstore_doc2vec` owns a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. 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/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-embedding-doc2vec`, `swarmauri-standard`. Read the example’s inputs and service requirements before execution.
61
+
62
+ ### Installation
63
+
64
+ ```bash
65
+ pip install swarmauri_vectorstore_doc2vec
66
+ ```
67
+
68
+ #### uv
69
+
70
+ <!-- readme-standards:begin installation.uv -->
71
+ ```bash
72
+ uv add swarmauri_vectorstore_doc2vec
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_doc2vec
81
+ ```
82
+ <!-- readme-standards:end installation.pip -->
83
+
84
+ #### Poetry
85
+
86
+ <!-- readme-standards:begin installation.poetry -->
87
+ ```bash
88
+ poetry add swarmauri_vectorstore_doc2vec
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/40-standards/swarmauri_vectorstore_doc2vec/docs/readme/quick_start.py).
98
+
99
+ ```python
100
+ from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
101
+ from swarmauri.documents.Document import Document
102
+
103
+
104
+ # Initialize vector store
105
+ vector_store = Doc2VecVectorStore()
106
+
107
+ # Add documents
108
+ documents = [
109
+ Document(content="This is the first document"),
110
+ Document(content="Here is another document"),
111
+ Document(content="And a third document"),
112
+ ]
113
+ vector_store.add_documents(documents)
114
+
115
+ # Retrieve similar documents
116
+ results = vector_store.retrieve(query="document", top_k=2)
117
+ ```
118
+ <!-- readme-standards:end example.quick-start -->
119
+
120
+ #### Expected Result
121
+
122
+ The example demonstrates the documented `swarmauri_vectorstore_doc2vec` 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.
123
+
124
+ ---
125
+
126
+ ## Usage
127
+
128
+ ### Common Workflows
129
+
130
+ <!-- readme-standards:begin example.usage -->
131
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/docs/readme/usage.py).
132
+
133
+ ```python
134
+ from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
135
+ from swarmauri.documents.Document import Document
136
+
137
+
138
+ # Initialize vector store
139
+ vector_store = Doc2VecVectorStore()
140
+
141
+ # Add documents
142
+ documents = [
143
+ Document(content="This is the first document"),
144
+ Document(content="Here is another document"),
145
+ Document(content="And a third document"),
146
+ ]
147
+ vector_store.add_documents(documents)
148
+
149
+ # Retrieve similar documents
150
+ results = vector_store.retrieve(query="document", top_k=2)
151
+ ```
152
+ <!-- readme-standards:end example.usage -->
153
+
154
+ ### Configuration
155
+
156
+ Configure `swarmauri_vectorstore_doc2vec` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
157
+
158
+ ### Error Handling
159
+
160
+ The inspected `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py).
161
+
162
+ ### Best Practices
163
+
164
+ Use the explicit `swarmauri_vectorstore_doc2vec` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `Doc2VecVectorStore`; an import or successful installation alone does not establish its runtime guarantees.
165
+
166
+ ---
167
+
168
+ ## Package Boundary
169
+
170
+ ### What It Owns
171
+
172
+ `swarmauri_vectorstore_doc2vec` is located in `standards` and owns a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model. Source-declared APIs include `Doc2VecVectorStore`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) records its direct dependency boundary.
173
+
174
+ ### Public API and Import Surfaces
175
+
176
+ Import namespace: `swarmauri_vectorstore_doc2vec`.
177
+
178
+ Source-declared exports or types: `Doc2VecVectorStore`.
179
+
180
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
181
+
182
+ ### Entry Points
183
+
184
+ <!-- readme-standards:begin entry-points -->
185
+ - `swarmauri.vector_stores` → `Doc2VecVectorStore` → `swarmauri_vectorstore_doc2vec:Doc2VecVectorStore`
186
+ <!-- readme-standards:end entry-points -->
187
+
188
+ ### Injected Dependencies
189
+
190
+ The direct installation dependencies of `swarmauri_vectorstore_doc2vec` are `swarmauri-core`, `swarmauri-base`, `swarmauri-embedding-doc2vec`, `swarmauri-standard`. 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py).
191
+
192
+ ### Protocol Consumers
193
+
194
+ No direct package-manifest dependency on `swarmauri_vectorstore_doc2vec` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
195
+
196
+ ### Extensions
197
+
198
+ For `swarmauri_vectorstore_doc2vec`, use the source-declared public interfaces (`Doc2VecVectorStore`) 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.
199
+
200
+ ---
201
+
202
+ ## Operations and Readiness
203
+
204
+ ### Operational Requirements
205
+
206
+ Operate `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
207
+
208
+ ### Health and Observability
209
+
210
+ This README does not establish a standalone health endpoint for `swarmauri_vectorstore_doc2vec`. 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.
211
+
212
+ ### Security and Resource Limits
213
+
214
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py). The `swarmauri_vectorstore_doc2vec` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
215
+
216
+ ### Compatibility
217
+
218
+ This source version of `swarmauri_vectorstore_doc2vec` 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.
219
+
220
+ ---
221
+
222
+ ## Verification
223
+
224
+ ### Tests
225
+
226
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_vectorstore_doc2vec` 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 a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.
227
+
228
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
229
+
230
+ ### Certification Status
231
+
232
+ No external certification is asserted for `swarmauri_vectorstore_doc2vec` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
233
+
234
+ ### Evidence
235
+
236
+ 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
237
+
238
+ ---
239
+
240
+ ## FAQ
241
+
242
+ ### Why
243
+
244
+ **Why select this package?** `swarmauri_vectorstore_doc2vec` provides a Doc2Vec based Vector Store and Doc2Vec Based Embedding Model; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
245
+
246
+ ### How
247
+
248
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_vectorstore_doc2vec`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py) for the exact types and signatures involved.
249
+
250
+ ### When
251
+
252
+ **When should I validate an upgrade?** Recheck `swarmauri_vectorstore_doc2vec` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
253
+
254
+ ---
255
+
256
+ ## Documentation and Related Packages
257
+
258
+ ### More Documentation
259
+
260
+ 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/40-standards/swarmauri_vectorstore_doc2vec/swarmauri_vectorstore_doc2vec/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml) provide the supporting context for `swarmauri_vectorstore_doc2vec`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
261
+
262
+ ### Related Packages
263
+
264
+ - [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.
265
+ - [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.
266
+ - [swarmauri_embedding_doc2vec](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_embedding_doc2vec/README.md): A Doc2Vec based Embedding Model.
267
+ - [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.
268
+
269
+ ### Project Links
270
+
271
+ <!-- readme-standards:begin project-links -->
272
+ - [pypi: swarmauri_vectorstore_doc2vec](https://pypi.org/project/swarmauri_vectorstore_doc2vec/)
273
+ <!-- readme-standards:end project-links -->
274
+
275
+ ---
276
+
277
+ ## Contributing
278
+
279
+ ### How to Contribute
280
+
281
+ 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.
282
+
283
+ ### Development Setup
284
+
285
+ Work from the `pkgs/40-standards/swarmauri_vectorstore_doc2vec` 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.
286
+
287
+ ### Notes for Maintainers
288
+
289
+ Edit authored prose directly in this `swarmauri_vectorstore_doc2vec` 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.
290
+
291
+ ---
292
+
293
+ ## Governance
294
+
295
+ ### Ownership and Decision Making
296
+
297
+ Changes to `swarmauri_vectorstore_doc2vec` 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/40-standards/swarmauri_vectorstore_doc2vec/pyproject.toml); this README does not assign new publishing or administrative authority.
298
+
299
+ ### Standards and Policies
300
+
301
+ `swarmauri_vectorstore_doc2vec` 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.
302
+
303
+ ### Lifecycle and Migration
304
+
305
+ The `swarmauri_vectorstore_doc2vec` source version is `0.11.0`.
306
+
307
+ ---
308
+
309
+ ## License and Attribution
310
+
311
+ ### License
312
+
313
+ <!-- readme-standards:begin license -->
314
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/LICENSE).
315
+ <!-- readme-standards:end license -->
316
+
317
+ ### Notices
318
+
319
+ <!-- readme-standards:begin notices -->
320
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/NOTICE) for attribution.
321
+ <!-- readme-standards:end notices -->
@@ -1,19 +1,20 @@
1
1
  [project]
2
2
  name = "swarmauri_vectorstore_doc2vec"
3
- version = "0.9.0.dev50"
3
+ version = "0.11.0"
4
4
  description = "A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
7
7
  repository = "http://github.com/swarmauri/swarmauri-sdk"
8
- requires-python = ">=3.10,<3.13"
8
+ requires-python = ">=3.10,<3.15"
9
9
  classifiers = [
10
- "License :: OSI Approved :: Apache Software License",
11
- "Programming Language :: Python :: 3.10",
12
- "Programming Language :: Python :: 3.11",
13
- "Programming Language :: Python :: 3.12",
14
10
  "Programming Language :: Python",
15
11
  "Programming Language :: Python :: 3",
16
12
  "Programming Language :: Python :: 3 :: Only",
13
+ "Programming Language :: Python :: 3.10",
14
+ "Programming Language :: Python :: 3.11",
15
+ "Programming Language :: Python :: 3.12",
16
+ "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.14",
17
18
  ]
18
19
  authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
19
20
  dependencies = [
@@ -30,6 +31,7 @@ keywords = [
30
31
  'doc2vec',
31
32
  'machine-learning',
32
33
  ]
34
+ license-files = ["LICENSE", "NOTICE"]
33
35
 
34
36
  [tool.uv.sources]
35
37
  swarmauri_core = { workspace = true }
@@ -57,6 +59,54 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
57
59
  log_cli_date_format = "%Y-%m-%d %H:%M:%S"
58
60
  asyncio_default_fixture_loop_scope = "function"
59
61
 
62
+ [tool.readme_standards]
63
+ policy = "package-guide-v1"
64
+ readme = "README.md"
65
+ brand = "swarmauri"
66
+ brand_catalog = "../../../tools/readme/brands.toml"
67
+ repository = "https://github.com/swarmauri/swarmauri-sdk"
68
+ ref = "master"
69
+ package_path = "pkgs/40-standards/swarmauri_vectorstore_doc2vec"
70
+ layer = "standards"
71
+ lifecycle = "active"
72
+ license_file = "LICENSE"
73
+ notice_file = "NOTICE"
74
+
75
+ [tool.readme_standards.distributions.pypi]
76
+ name = "swarmauri_vectorstore_doc2vec"
77
+ published = true
78
+
79
+ [tool.readme_standards.examples.quick_start]
80
+ source = "docs/readme/quick_start.py"
81
+ test = "tests/unit/test_readme_sources.py"
82
+ language = "python"
83
+ expected_exit_code = 0
84
+
85
+ [tool.readme_standards.examples.usage]
86
+ source = "docs/readme/usage.py"
87
+ test = "tests/unit/test_readme_sources.py"
88
+ language = "python"
89
+ expected_exit_code = 0
90
+
91
+ [tool.readme_standards.statuses.readme]
92
+ label = "CI gate"
93
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
94
+
95
+ [tool.readme_standards.statuses.tests]
96
+ label = "example source"
97
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/tests/unit/test_readme_sources.py"
98
+
99
+ [tool.readme_standards.statuses.certification]
100
+ label = "not certified"
101
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_vectorstore_doc2vec/README.md#certification-status"
102
+
103
+ [tool.readme_standards.statuses.governance]
104
+ label = "repository policy"
105
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"
106
+
107
+ [tool.readme_standards.statuses.evidence]
108
+ label = "source and CI"
109
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
60
110
  [project.entry-points.'swarmauri.vector_stores']
61
111
  Doc2VecVectorStore = "swarmauri_vectorstore_doc2vec:Doc2VecVectorStore"
62
112
 
@@ -71,9 +121,10 @@ dev = [
71
121
  "pytest-xdist>=3.6.1",
72
122
  "pytest-json-report>=1.5.0",
73
123
  "python-dotenv",
74
- "requests>=2.32.3",
124
+ "httpx>=0.27",
75
125
  "flake8>=7.0",
76
126
  "pytest-timeout>=2.3.1",
77
127
  "ruff>=0.9.9",
78
128
  "pytest-benchmark>=4.0.0",
129
+ "readme-standards==0.1.3; python_version >= \"3.11\"",
79
130
  ]
@@ -1,7 +1,6 @@
1
1
  from typing import List, Union, Literal
2
2
 
3
3
  from swarmauri_standard.documents.Document import Document
4
- from swarmauri_standard.distances.CosineDistance import CosineDistance
5
4
  from swarmauri_base.vector_stores.VectorStoreBase import VectorStoreBase
6
5
  from swarmauri_base.vector_stores.VectorStoreRetrieveMixin import (
7
6
  VectorStoreRetrieveMixin,
@@ -13,6 +12,9 @@ from swarmauri_embedding_doc2vec.Doc2VecEmbedding import (
13
12
  Doc2VecEmbedding,
14
13
  )
15
14
  from swarmauri_base.ComponentBase import ComponentBase
15
+ from swarmauri_standard.vector_stores.CosineSimilarityComparator import (
16
+ CosineSimilarityComparator,
17
+ )
16
18
 
17
19
 
18
20
  @ComponentBase.register_type(VectorStoreBase, "Doc2VecVectorStore")
@@ -24,7 +26,7 @@ class Doc2VecVectorStore(
24
26
  def __init__(self, **kwargs):
25
27
  super().__init__(**kwargs)
26
28
  self._embedder = Doc2VecEmbedding()
27
- self._distance = CosineDistance()
29
+ self._comparator = CosineSimilarityComparator()
28
30
 
29
31
  def add_document(self, document: Document) -> None:
30
32
  self._embedder.fit([document.content])
@@ -47,13 +49,10 @@ class Doc2VecVectorStore(
47
49
  [doc.content for doc in self.documents]
48
50
  )
49
51
 
50
- # Calculate cosine distances between the query vector and document vectors
51
- distances = self._distance.distances(query_vector, document_vectors)
52
-
53
- # Get the indices of the top_k closest documents
54
- top_k_indices = sorted(range(len(distances)), key=lambda i: distances[i])[
55
- :top_k
56
- ]
52
+ # Rank documents by descending cosine similarity.
53
+ top_k_indices = self._comparator.top_k_indices(
54
+ query_vector, document_vectors, top_k
55
+ )
57
56
 
58
57
  return [self.documents[i] for i in top_k_indices]
59
58
 
@@ -1,78 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_vectorstore_doc2vec
3
- Version: 0.9.0.dev50
4
- Summary: A Doc2Vec based Vector Store and Doc2Vec Based Embedding Model.
5
- License-Expression: Apache-2.0
6
- License-File: LICENSE
7
- Keywords: swarmauri,sdk,standards,vectorstore,doc2vec,machine-learning
8
- Author: Jacob Stewart
9
- Author-email: jacob@swarmauri.com
10
- Requires-Python: >=3.10,<3.13
11
- Classifier: License :: OSI Approved :: Apache Software License
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3 :: Only
18
- Requires-Dist: swarmauri_base
19
- Requires-Dist: swarmauri_core
20
- Requires-Dist: swarmauri_embedding_doc2vec
21
- Requires-Dist: swarmauri_standard
22
- Description-Content-Type: text/markdown
23
-
24
-
25
- ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
26
-
27
- <p align="center">
28
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
29
- <img src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_doc2vec" alt="PyPI - Downloads"/></a>
30
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_vectorstore_doc2vec/">
31
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_vectorstore_doc2vec.svg"/></a>
32
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
33
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_vectorstore_doc2vec" alt="PyPI - Python Version"/></a>
34
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
35
- <img src="https://img.shields.io/pypi/l/swarmauri_vectorstore_doc2vec" alt="PyPI - License"/></a>
36
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
37
- <img src="https://img.shields.io/pypi/v/swarmauri_vectorstore_doc2vec?label=swarmauri_vectorstore_doc2vec&color=green" alt="PyPI - swarmauri_vectorstore_doc2vec"/></a>
38
- </p>
39
-
40
- ---
41
-
42
- # Swarmauri Vectorstore Doc2vec
43
-
44
- A vector store implementation using Doc2Vec for document embedding and similarity search.
45
-
46
- ## Installation
47
-
48
- ```bash
49
- pip install swarmauri_vectorstore_doc2vec
50
- ```
51
-
52
- ## Usage
53
-
54
- ```python
55
- from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
56
- from swarmauri.documents.Document import Document
57
-
58
-
59
- # Initialize vector store
60
- vector_store = Doc2VecVectorStore()
61
-
62
- # Add documents
63
- documents = [
64
- Document(content="This is the first document"),
65
- Document(content="Here is another document"),
66
- Document(content="And a third document")
67
- ]
68
- vector_store.add_documents(documents)
69
-
70
- # Retrieve similar documents
71
- results = vector_store.retrieve(query="document", top_k=2)
72
- ```
73
-
74
- ## Want to help?
75
-
76
- 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.
77
-
78
-
@@ -1,54 +0,0 @@
1
-
2
- ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
3
-
4
- <p align="center">
5
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
6
- <img src="https://img.shields.io/pypi/dm/swarmauri_vectorstore_doc2vec" alt="PyPI - Downloads"/></a>
7
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_vectorstore_doc2vec/">
8
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_vectorstore_doc2vec.svg"/></a>
9
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
10
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_vectorstore_doc2vec" alt="PyPI - Python Version"/></a>
11
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
12
- <img src="https://img.shields.io/pypi/l/swarmauri_vectorstore_doc2vec" alt="PyPI - License"/></a>
13
- <a href="https://pypi.org/project/swarmauri_vectorstore_doc2vec/">
14
- <img src="https://img.shields.io/pypi/v/swarmauri_vectorstore_doc2vec?label=swarmauri_vectorstore_doc2vec&color=green" alt="PyPI - swarmauri_vectorstore_doc2vec"/></a>
15
- </p>
16
-
17
- ---
18
-
19
- # Swarmauri Vectorstore Doc2vec
20
-
21
- A vector store implementation using Doc2Vec for document embedding and similarity search.
22
-
23
- ## Installation
24
-
25
- ```bash
26
- pip install swarmauri_vectorstore_doc2vec
27
- ```
28
-
29
- ## Usage
30
-
31
- ```python
32
- from swarmauri.vectorstores.Doc2VecVectorStore import Doc2VecVectorStore
33
- from swarmauri.documents.Document import Document
34
-
35
-
36
- # Initialize vector store
37
- vector_store = Doc2VecVectorStore()
38
-
39
- # Add documents
40
- documents = [
41
- Document(content="This is the first document"),
42
- Document(content="Here is another document"),
43
- Document(content="And a third document")
44
- ]
45
- vector_store.add_documents(documents)
46
-
47
- # Retrieve similar documents
48
- results = vector_store.retrieve(query="document", top_k=2)
49
- ```
50
-
51
- ## Want to help?
52
-
53
- 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.
54
-