swarmauri_vectorstore_doc2vec 0.9.0.dev52__py3-none-any.whl → 0.11.0__py3-none-any.whl

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.
@@ -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
 
@@ -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,8 @@
1
+ swarmauri_vectorstore_doc2vec/Doc2VecVectorStore.py,sha256=lcr7Hm6Kc6EnCl2lycLA8BJbX79cJbW6wwXmEXFQARY,2831
2
+ swarmauri_vectorstore_doc2vec/__init__.py,sha256=BojUVydgSj0C2yc6-ZGfK97I3PnxTrnTxu9635TOkQ8,515
3
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/METADATA,sha256=OF_tPKoS8VOlCgVV1k1RD_rn4E32oaQ_ZuCm9Om3-JU,21111
4
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
5
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/entry_points.txt,sha256=3e0jR1vegYY6F7fGR-wa12zbIZVOna1VbTqWbMFci-4,95
6
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
7
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/licenses/NOTICE,sha256=qDBNcQxYEWIUfLg3u4TkyUc8P7aYPEj-xznUMpJ6jKc,206
8
+ swarmauri_vectorstore_doc2vec-0.11.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.3.1
2
+ Generator: poetry-core 2.5.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -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.
@@ -1,78 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_vectorstore_doc2vec
3
- Version: 0.9.0.dev52
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,7 +0,0 @@
1
- swarmauri_vectorstore_doc2vec/Doc2VecVectorStore.py,sha256=MS_YBacwsWwnqztqg64KDXI-rHox_2PpyliWVqAczCI,2936
2
- swarmauri_vectorstore_doc2vec/__init__.py,sha256=BojUVydgSj0C2yc6-ZGfK97I3PnxTrnTxu9635TOkQ8,515
3
- swarmauri_vectorstore_doc2vec-0.9.0.dev52.dist-info/METADATA,sha256=LtvZ5l-piW9Rd4Dkstjg5IV4DsAYIVEV9tO1yXTytYU,3073
4
- swarmauri_vectorstore_doc2vec-0.9.0.dev52.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
5
- swarmauri_vectorstore_doc2vec-0.9.0.dev52.dist-info/entry_points.txt,sha256=3e0jR1vegYY6F7fGR-wa12zbIZVOna1VbTqWbMFci-4,95
6
- swarmauri_vectorstore_doc2vec-0.9.0.dev52.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
7
- swarmauri_vectorstore_doc2vec-0.9.0.dev52.dist-info/RECORD,,