dynavec 0.2.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.
- dynavec-0.2.0/.env.example +19 -0
- dynavec-0.2.0/.github/workflows/ci.yml +26 -0
- dynavec-0.2.0/.github/workflows/pages.yml +38 -0
- dynavec-0.2.0/.github/workflows/publish.yml +37 -0
- dynavec-0.2.0/.gitignore +25 -0
- dynavec-0.2.0/ARCHITECTURE.md +71 -0
- dynavec-0.2.0/LICENSE +190 -0
- dynavec-0.2.0/PKG-INFO +317 -0
- dynavec-0.2.0/README.md +248 -0
- dynavec-0.2.0/benchmarks/README.md +55 -0
- dynavec-0.2.0/benchmarks/__init__.py +1 -0
- dynavec-0.2.0/benchmarks/cost_model.py +165 -0
- dynavec-0.2.0/benchmarks/datasets.py +70 -0
- dynavec-0.2.0/benchmarks/out/comparison.md +12 -0
- dynavec-0.2.0/benchmarks/out/cost_by_scale.png +0 -0
- dynavec-0.2.0/benchmarks/out/quality_latency.png +0 -0
- dynavec-0.2.0/benchmarks/report.py +348 -0
- dynavec-0.2.0/benchmarks/run_benchmark.py +155 -0
- dynavec-0.2.0/docs/DEPLOY.md +151 -0
- dynavec-0.2.0/docs/assets/comparison.md +12 -0
- dynavec-0.2.0/docs/assets/cost_by_dimension.png +0 -0
- dynavec-0.2.0/docs/assets/cost_by_scale.png +0 -0
- dynavec-0.2.0/docs/assets/cost_matrix_by_dim.png +0 -0
- dynavec-0.2.0/docs/assets/quality_latency.png +0 -0
- dynavec-0.2.0/docs/assets/scaling.md +63 -0
- dynavec-0.2.0/docs/assets/storage_footprint.png +0 -0
- dynavec-0.2.0/docs/iam-policy.json +45 -0
- dynavec-0.2.0/examples/langchain_rag.py +38 -0
- dynavec-0.2.0/examples/openai_1536_retrieval.py +94 -0
- dynavec-0.2.0/examples/pinecone_vs_dynavec.py +111 -0
- dynavec-0.2.0/examples/quickstart.py +43 -0
- dynavec-0.2.0/examples/verify_provisioning.py +98 -0
- dynavec-0.2.0/opensource/dynavec/README.md +47 -0
- dynavec-0.2.0/opensource/dynavec/images/cost_by_dimension.png +0 -0
- dynavec-0.2.0/opensource/dynavec/images/cost_by_scale.png +0 -0
- dynavec-0.2.0/opensource/dynavec/images/cost_matrix_by_dim.png +0 -0
- dynavec-0.2.0/opensource/dynavec/images/quality_latency.png +0 -0
- dynavec-0.2.0/opensource/dynavec/images/storage_footprint.png +0 -0
- dynavec-0.2.0/opensource/dynavec/index.html +396 -0
- dynavec-0.2.0/opensource/dynavec/script.js +0 -0
- dynavec-0.2.0/opensource/dynavec/styles.css +223 -0
- dynavec-0.2.0/pyproject.toml +96 -0
- dynavec-0.2.0/src/dynavec/__init__.py +74 -0
- dynavec-0.2.0/src/dynavec/cache.py +182 -0
- dynavec-0.2.0/src/dynavec/client.py +566 -0
- dynavec-0.2.0/src/dynavec/config.py +84 -0
- dynavec-0.2.0/src/dynavec/credentials.py +90 -0
- dynavec-0.2.0/src/dynavec/embeddings/__init__.py +47 -0
- dynavec-0.2.0/src/dynavec/embeddings/base.py +32 -0
- dynavec-0.2.0/src/dynavec/embeddings/bedrock.py +71 -0
- dynavec-0.2.0/src/dynavec/embeddings/gemini.py +56 -0
- dynavec-0.2.0/src/dynavec/embeddings/openai.py +58 -0
- dynavec-0.2.0/src/dynavec/embeddings/sentence_transformers.py +51 -0
- dynavec-0.2.0/src/dynavec/exceptions.py +40 -0
- dynavec-0.2.0/src/dynavec/graph.py +120 -0
- dynavec-0.2.0/src/dynavec/ingest.py +153 -0
- dynavec-0.2.0/src/dynavec/integrations/__init__.py +1 -0
- dynavec-0.2.0/src/dynavec/integrations/langchain.py +143 -0
- dynavec-0.2.0/src/dynavec/integrations/llamaindex.py +90 -0
- dynavec-0.2.0/src/dynavec/integrations/tools.py +87 -0
- dynavec-0.2.0/src/dynavec/metadata.py +99 -0
- dynavec-0.2.0/src/dynavec/metrics.py +90 -0
- dynavec-0.2.0/src/dynavec/models.py +62 -0
- dynavec-0.2.0/src/dynavec/namespace.py +51 -0
- dynavec-0.2.0/src/dynavec/provisioning.py +94 -0
- dynavec-0.2.0/src/dynavec/quantization.py +140 -0
- dynavec-0.2.0/src/dynavec/retrieval.py +118 -0
- dynavec-0.2.0/src/dynavec/stores/__init__.py +6 -0
- dynavec-0.2.0/src/dynavec/stores/dynamodb.py +108 -0
- dynavec-0.2.0/src/dynavec/stores/s3vectors.py +144 -0
- dynavec-0.2.0/src/dynavec/transforms.py +106 -0
- dynavec-0.2.0/src/dynavec/utils.py +103 -0
- dynavec-0.2.0/tests/integration/test_live_aws.py +120 -0
- dynavec-0.2.0/tests/test_cache.py +51 -0
- dynavec-0.2.0/tests/test_client_inmemory.py +357 -0
- dynavec-0.2.0/tests/test_ingest.py +73 -0
- dynavec-0.2.0/tests/test_metadata.py +62 -0
- dynavec-0.2.0/tests/test_metrics.py +63 -0
- dynavec-0.2.0/tests/test_quantization.py +57 -0
- dynavec-0.2.0/tests/test_retrieval.py +64 -0
- dynavec-0.2.0/tests/test_utils_transforms.py +75 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Copy to .env and fill in. .env is gitignored — never commit real secrets.
|
|
2
|
+
# dynavec reads AWS creds via the standard boto3 chain, so exporting these
|
|
3
|
+
# (or loading them with python-dotenv) is enough — no code changes needed.
|
|
4
|
+
|
|
5
|
+
# ---- AWS credentials (the IAM user/role that owns your dynavec resources) ----
|
|
6
|
+
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
|
|
7
|
+
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
|
8
|
+
AWS_REGION=us-east-1
|
|
9
|
+
# AWS_SESSION_TOKEN= # only if you use temporary/STS credentials
|
|
10
|
+
|
|
11
|
+
# ---- Embedder API key (pick the provider you use) ----
|
|
12
|
+
OPENAI_API_KEY=sk-...
|
|
13
|
+
# GOOGLE_API_KEY=
|
|
14
|
+
# COHERE_API_KEY=
|
|
15
|
+
|
|
16
|
+
# ---- dynavec resource names (used by the example scripts) ----
|
|
17
|
+
DYNAVEC_VECTOR_BUCKET=dynavec-demo
|
|
18
|
+
DYNAVEC_INDEX=docs
|
|
19
|
+
DYNAVEC_TABLE=dynavec_docs
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [development, main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.9", "3.11", "3.12"]
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Install uv
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python-version }}
|
|
21
|
+
- name: Install (with dev extras)
|
|
22
|
+
run: uv pip install -e ".[dev]"
|
|
23
|
+
- name: Lint
|
|
24
|
+
run: uv run --no-sync ruff check src benchmarks
|
|
25
|
+
- name: Test
|
|
26
|
+
run: uv run --no-sync pytest -q
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Deploy landing page to GitHub Pages
|
|
2
|
+
|
|
3
|
+
# Publishes opensource/dynavec/ to GitHub Pages.
|
|
4
|
+
# One-time: repo Settings -> Pages -> Build and deployment -> Source: "GitHub Actions".
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [development]
|
|
9
|
+
paths:
|
|
10
|
+
- "opensource/dynavec/**"
|
|
11
|
+
- ".github/workflows/pages.yml"
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
concurrency:
|
|
20
|
+
group: pages
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
deploy:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
environment:
|
|
27
|
+
name: github-pages
|
|
28
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
- uses: actions/configure-pages@v5
|
|
32
|
+
with:
|
|
33
|
+
enablement: true
|
|
34
|
+
- uses: actions/upload-pages-artifact@v3
|
|
35
|
+
with:
|
|
36
|
+
path: opensource/dynavec
|
|
37
|
+
- id: deployment
|
|
38
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Publishes on a GitHub Release. Uses PyPI Trusted Publishing (OIDC) — no token
|
|
4
|
+
# is stored. One-time: create a pending publisher on PyPI for project "dynavec",
|
|
5
|
+
# repo "codeforstartups/dynavec", workflow "publish.yml", environment "pypi".
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- name: Install uv
|
|
17
|
+
uses: astral-sh/setup-uv@v5
|
|
18
|
+
- name: Build sdist + wheel
|
|
19
|
+
run: uv build
|
|
20
|
+
- uses: actions/upload-artifact@v4
|
|
21
|
+
with:
|
|
22
|
+
name: dist
|
|
23
|
+
path: dist/
|
|
24
|
+
|
|
25
|
+
publish:
|
|
26
|
+
needs: build
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment: pypi
|
|
29
|
+
permissions:
|
|
30
|
+
id-token: write # required for OIDC trusted publishing
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/download-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: dist
|
|
35
|
+
path: dist/
|
|
36
|
+
- name: Publish to PyPI
|
|
37
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
dynavec-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
env/
|
|
11
|
+
|
|
12
|
+
# Test / coverage
|
|
13
|
+
.pytest_cache/
|
|
14
|
+
.coverage
|
|
15
|
+
htmlcov/
|
|
16
|
+
.ruff_cache/
|
|
17
|
+
|
|
18
|
+
# Editors / OS
|
|
19
|
+
.vscode/
|
|
20
|
+
.idea/
|
|
21
|
+
.DS_Store
|
|
22
|
+
|
|
23
|
+
# Local config / secrets
|
|
24
|
+
.env
|
|
25
|
+
*.local
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# dynavec architecture
|
|
2
|
+
|
|
3
|
+
## The core idea: two stores, one client
|
|
4
|
+
|
|
5
|
+
A vector search returns **ids fast**; hydrating the **actual documents** is what usually costs latency and money. dynavec splits those two jobs across the AWS primitive best suited to each:
|
|
6
|
+
|
|
7
|
+
| Concern | Store | Why |
|
|
8
|
+
|---------|-------|-----|
|
|
9
|
+
| Approximate nearest-neighbor over the embedding | **Amazon S3 Vectors** | AWS-managed ANN, serverless, scales to billions, 90%+ recall, storage priced like S3 (cheap). |
|
|
10
|
+
| Full document text + rich metadata, fetched by id | **Amazon DynamoDB** | Single-digit-ms `BatchGetItem`, no per-item size cap, on-demand billing, partition-key scaling. |
|
|
11
|
+
|
|
12
|
+
The vector's **key** is shared between the two stores (`"{namespace}#{id}"`), which is the join. S3 Vectors answers "which ids are nearest"; DynamoDB answers "give me those documents, now."
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
query text ──embed──▶ query_vectors (S3 Vectors) ──▶ [ (id, distance) × fetch_k ]
|
|
16
|
+
│
|
|
17
|
+
▼
|
|
18
|
+
BatchGetItem (DynamoDB) ──▶ full docs
|
|
19
|
+
│
|
|
20
|
+
▼
|
|
21
|
+
MMR rerank / RRF fusion ──▶ SearchResults
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Why not put everything in one store?
|
|
25
|
+
|
|
26
|
+
- **All in S3 Vectors:** metadata has a per-vector filterable-size cap and it's not built to be your document-of-record; reading large text back through the vector API is wasteful.
|
|
27
|
+
- **All in DynamoDB:** DynamoDB has no native ANN; you'd brute-force or bolt on a secondary index and lose the serverless-ANN economics.
|
|
28
|
+
- **Hybrid:** each store does the one thing it's best at. That's the whole pitch.
|
|
29
|
+
|
|
30
|
+
## The metadata split
|
|
31
|
+
|
|
32
|
+
On upsert, `split_metadata()` produces two payloads:
|
|
33
|
+
|
|
34
|
+
- **S3 Vectors** gets a **small filterable subset** (`DynavecConfig.filterable_keys`, or all scalar keys by default) plus a namespace tag `_dv_ns`. These are the keys you can pre-filter on during ANN (`filter={"topic": "biology"}`), using the S3 Vectors MongoDB-style operators (`$eq`, `$gte`, `$in`, `$and`, `$or`, …).
|
|
35
|
+
- **DynamoDB** gets the **full, untouched metadata** + the source text. Numbers are stored natively (float→Decimal) so future Global Secondary Indexes can support DynamoDB-side access patterns.
|
|
36
|
+
|
|
37
|
+
Keep the filterable set small — it's the one thing with a hard size limit.
|
|
38
|
+
|
|
39
|
+
## Namespaces & partitioning
|
|
40
|
+
|
|
41
|
+
Every operation takes a `namespace`. It:
|
|
42
|
+
- tags each vector (`_dv_ns`) so **one index can host many tenants/collections** with query-time isolation, and
|
|
43
|
+
- prefixes the DynamoDB partition key (`"{namespace}#{id}"`) so load spreads evenly across partitions and hydration stays O(1) per document.
|
|
44
|
+
|
|
45
|
+
This is the "DynamoDB access-pattern + partitioning logic connected to the vector store" the design calls for.
|
|
46
|
+
|
|
47
|
+
## Retrieval algorithms dynavec owns
|
|
48
|
+
|
|
49
|
+
S3 Vectors owns the ANN. dynavec owns everything around it:
|
|
50
|
+
|
|
51
|
+
- **Score normalization** — raw distance → "higher = more similar" regardless of metric.
|
|
52
|
+
- **MMR reranking** (`rerank="mmr"`) — relevance + diversity. dynavec over-fetches `top_k × over_fetch` candidates, pulls their vectors via `get_vectors`, and re-ranks.
|
|
53
|
+
- **RRF hybrid fusion** (`reciprocal_rank_fusion`) — combine dense results with a sparse/keyword ranking (or several indexes) without score-scale alignment. This is the seam for hybrid search.
|
|
54
|
+
|
|
55
|
+
## Multi-dimension / multi-index routing
|
|
56
|
+
|
|
57
|
+
Different embedding models produce different dimensions. Because a `Dynavec` client is bound to one `(bucket, index, dimension)`, you run **one client per dimension/model** and route at the application layer (or fuse their results with RRF). Multiple S3 vector buckets → multiple dimensions, connected through the shared DynamoDB access patterns.
|
|
58
|
+
|
|
59
|
+
## Roadmap: the hot tier (v0.2)
|
|
60
|
+
|
|
61
|
+
This is where user-controlled ANN algorithms actually live. An optional in-process **`hnswlib`** index caches frequently-accessed partitions in memory for **sub-10-ms** queries, backed by DynamoDB for durability and S3 Vectors for the cold/scale tier. Reads check hot → warm → cold; writes fan out. SPFresh-style incremental rebalancing is the research direction for keeping the hot index fresh without full rebuilds.
|
|
62
|
+
|
|
63
|
+
Also planned: async client (`aioboto3`), sparse/BM25 hybrid computed from DynamoDB, cross-encoder reranking, and LlamaIndex / CrewAI / Strands adapters.
|
|
64
|
+
|
|
65
|
+
## Security & compliance
|
|
66
|
+
|
|
67
|
+
- **Data residency:** DynamoDB and S3 Vectors are regional. dynavec never sends your vectors or documents anywhere except those two services in *your* account and region. Embedding is the only step that may leave the account — and only if you choose a hosted embedder (OpenAI/Gemini/Cohere). Choose `BedrockEmbedder` or `SentenceTransformerEmbedder` to keep embedding in-account/offline.
|
|
68
|
+
- **IAM (least privilege):** the client needs, scoped to your specific resources:
|
|
69
|
+
- `s3vectors:PutVectors`, `s3vectors:QueryVectors`, `s3vectors:GetVectors`, `s3vectors:DeleteVectors` (+ `CreateVectorBucket`/`CreateIndex` only if using `auto_provision`)
|
|
70
|
+
- `dynamodb:BatchGetItem`, `dynamodb:BatchWriteItem`, `dynamodb:PutItem`, `dynamodb:DeleteItem` (+ `CreateTable`/`DescribeTable` for provisioning)
|
|
71
|
+
- **Encryption:** both services support encryption at rest with your KMS keys; enable SSE-KMS on the table and bucket.
|
dynavec-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 dynavec contributors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|