vecshift 0.1.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.
- vecshift/__init__.py +15 -0
- vecshift/assets/bench.css +39 -0
- vecshift/assets/eval.css +91 -0
- vecshift/assets/report.css +252 -0
- vecshift/assets/report.js +50 -0
- vecshift/bench/__init__.py +18 -0
- vecshift/bench/corpus.py +175 -0
- vecshift/bench/generate.py +106 -0
- vecshift/bench/html.py +325 -0
- vecshift/bench/metrics.py +50 -0
- vecshift/bench/runner.py +183 -0
- vecshift/cli.py +236 -0
- vecshift/cli_apply.py +283 -0
- vecshift/cli_bench.py +354 -0
- vecshift/cli_cutover.py +431 -0
- vecshift/cli_eval.py +591 -0
- vecshift/cli_plan.py +335 -0
- vecshift/cli_style.py +57 -0
- vecshift/connectors/__init__.py +1 -0
- vecshift/connectors/pgvector/__init__.py +29 -0
- vecshift/connectors/pgvector/connection.py +155 -0
- vecshift/connectors/pgvector/documents.py +96 -0
- vecshift/connectors/pgvector/inspect.py +427 -0
- vecshift/connectors/pgvector/search.py +240 -0
- vecshift/connectors/pgvector/switch.py +481 -0
- vecshift/connectors/pgvector/target.py +195 -0
- vecshift/connectors/pgvector/writer.py +431 -0
- vecshift/core/__init__.py +4 -0
- vecshift/core/capabilities.py +33 -0
- vecshift/core/contracts.py +57 -0
- vecshift/core/fingerprint.py +57 -0
- vecshift/core/record.py +75 -0
- vecshift/doctor/__init__.py +15 -0
- vecshift/doctor/checks.py +490 -0
- vecshift/doctor/findings.py +78 -0
- vecshift/doctor/html.py +493 -0
- vecshift/doctor/profile.py +69 -0
- vecshift/embeddings/__init__.py +22 -0
- vecshift/embeddings/cache.py +86 -0
- vecshift/embeddings/providers.py +244 -0
- vecshift/embeddings/spec.py +240 -0
- vecshift/eval/__init__.py +20 -0
- vecshift/eval/html.py +444 -0
- vecshift/eval/metrics.py +81 -0
- vecshift/eval/queries.py +97 -0
- vecshift/eval/runner.py +394 -0
- vecshift/html_kit.py +143 -0
- vecshift/jobs/__init__.py +5 -0
- vecshift/jobs/spec.py +202 -0
- vecshift/migrate/__init__.py +6 -0
- vecshift/migrate/engine.py +272 -0
- vecshift/migrate/state.py +50 -0
- vecshift/planning/__init__.py +14 -0
- vecshift/planning/plan.py +87 -0
- vecshift/planning/planner.py +493 -0
- vecshift/py.typed +0 -0
- vecshift-0.1.0.dist-info/METADATA +264 -0
- vecshift-0.1.0.dist-info/RECORD +62 -0
- vecshift-0.1.0.dist-info/WHEEL +4 -0
- vecshift-0.1.0.dist-info/entry_points.txt +2 -0
- vecshift-0.1.0.dist-info/licenses/LICENSE +202 -0
- vecshift-0.1.0.dist-info/licenses/NOTICE +4 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: vecshift
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Zero-downtime embedding model migrations for pgvector and Supabase: plan, re-embed, evaluate, and cut over safely.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Osamamu64/vecshift
|
|
6
|
+
Project-URL: Repository, https://github.com/Osamamu64/vecshift
|
|
7
|
+
Project-URL: Issues, https://github.com/Osamamu64/vecshift/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/Osamamu64/vecshift/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Documentation, https://github.com/Osamamu64/vecshift/tree/main/docs
|
|
10
|
+
Author: Osama Elshareef
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: embedding-migration,embeddings,pgvector,postgresql,rag,semantic-search,supabase,vector-database
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Intended Audience :: System Administrators
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Topic :: Database
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
+
Classifier: Typing :: Typed
|
|
28
|
+
Requires-Python: >=3.11
|
|
29
|
+
Requires-Dist: httpx>=0.27
|
|
30
|
+
Requires-Dist: numpy>=1.26
|
|
31
|
+
Requires-Dist: psycopg[binary]>=3.2
|
|
32
|
+
Requires-Dist: pydantic>=2.6
|
|
33
|
+
Requires-Dist: pyyaml>=6
|
|
34
|
+
Requires-Dist: typer>=0.12
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
<h1>
|
|
38
|
+
<picture>
|
|
39
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Osamamu64/vecshift/main/docs/images/logo/vecshift-dark.svg">
|
|
40
|
+
<img src="https://raw.githubusercontent.com/Osamamu64/vecshift/main/docs/images/logo/vecshift-light.svg" alt="vecshift" height="56">
|
|
41
|
+
</picture>
|
|
42
|
+
</h1>
|
|
43
|
+
|
|
44
|
+
**Safe, observable embedding migrations for any vector store, with any embedding model.**
|
|
45
|
+
|
|
46
|
+
[](https://github.com/Osamamu64/vecshift/actions/workflows/ci.yml)
|
|
47
|
+
[](https://github.com/Osamamu64/vecshift/blob/main/LICENSE)
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
> [!WARNING]
|
|
51
|
+
> VecShift is in early development. The full pgvector workflow works today: `doctor`,
|
|
52
|
+
> `bench`, `plan`, `apply`, `eval`, and `cutover`. Watch the repo or read the
|
|
53
|
+
> [roadmap](https://github.com/Osamamu64/vecshift/blob/main/docs/roadmap.md) to follow along.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Why
|
|
58
|
+
|
|
59
|
+
Every team running RAG or semantic search eventually wants a better or cheaper embedding
|
|
60
|
+
model, different dimensions, new chunking, or a different vector store. Today each of those
|
|
61
|
+
is a one-off project: a re-embed script, rate-limit workarounds, a new index, a manual
|
|
62
|
+
cutover, and no real answer to two questions:
|
|
63
|
+
|
|
64
|
+
1. **Is the new model actually better on *our* data?**
|
|
65
|
+
2. **What's actually in our index right now?** Which model made these vectors? Is it mixed?
|
|
66
|
+
Do we still have the text to re-embed it?
|
|
67
|
+
|
|
68
|
+
VecShift answers those first, then makes the migration itself safe and repeatable.
|
|
69
|
+
|
|
70
|
+
## What it will do
|
|
71
|
+
|
|
72
|
+
| Command | Purpose | Status |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `vecshift fingerprint` | Print a stable tag identifying an embedding configuration's vector space | ✅ Available |
|
|
75
|
+
| `vecshift doctor` | Inspect an index: mixed models or sizes, zero and unnormalized vectors, duplicates, missing text, indexing and change-tracking gaps | ✅ pgvector and Supabase |
|
|
76
|
+
| `vecshift bench` | Compare embedding models on a sample of *your* data: recall, latency, cost, storage | ✅ Available |
|
|
77
|
+
| `vecshift init` / `plan` | Write a migration job, then check it and estimate tokens, cost, time, and storage | ✅ Available |
|
|
78
|
+
| `vecshift apply` | Re-embed into a side-by-side column with resume, a spend cap, live-write sync, and a concurrent index build | ✅ pgvector and Supabase |
|
|
79
|
+
| `vecshift eval` | Compare old and new vectors on your data, per language, with latency vs accuracy, and a go/no-go verdict | ✅ pgvector and Supabase |
|
|
80
|
+
| `vecshift cutover` / `rollback` | Switch searches to the new vectors under the same name, with instant rollback | ✅ pgvector and Supabase |
|
|
81
|
+
|
|
82
|
+
Initial targets are **pgvector** and **Qdrant**, with an **OpenAI-compatible** embedding
|
|
83
|
+
provider (which covers OpenAI, vLLM, Ollama, TEI, and most hosted inference) plus a free
|
|
84
|
+
mock provider for trying things out.
|
|
85
|
+
|
|
86
|
+
## Design principles
|
|
87
|
+
|
|
88
|
+
- **Look before you leap.** Read-only diagnosis and benchmarking come before any write.
|
|
89
|
+
- **Never lose data.** Idempotent upserts guarded by `updated_at`, checkpoints, a dead-letter queue.
|
|
90
|
+
- **Know your vector space.** Every vector carries a fingerprint of the model configuration
|
|
91
|
+
that produced it, so mixed or stale vectors are detectable.
|
|
92
|
+
- **Data stays home.** Runs inside your network. Nothing leaves except to the embedding
|
|
93
|
+
provider you choose.
|
|
94
|
+
- **Free first run.** Mock embeddings and a local store, so you can try it without an API key.
|
|
95
|
+
|
|
96
|
+
## Install
|
|
97
|
+
|
|
98
|
+
Requires Python 3.11 or newer.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
pip install vecshift # or: uv tool install vecshift
|
|
102
|
+
vecshift --help
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Or run it without installing, with [uv](https://docs.astral.sh/uv/) or Docker:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uvx vecshift --help
|
|
109
|
+
docker run --rm -e VECSHIFT_DSN ghcr.io/osamamu64/vecshift doctor --table public.documents
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Try it in two minutes
|
|
113
|
+
|
|
114
|
+
The demo runs a whole migration on a sample table of English and Arabic articles: check
|
|
115
|
+
the index, plan, re-embed without locking the table, compare old and new, then switch.
|
|
116
|
+
It runs offline with vecshift's built-in test model, so there's no API key and nothing
|
|
117
|
+
leaves your machine.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://github.com/Osamamu64/vecshift.git
|
|
121
|
+
cd vecshift/demo
|
|
122
|
+
docker compose up --build --abort-on-container-exit
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The reports land in `demo/out/`. See [the demo guide](https://github.com/Osamamu64/vecshift/blob/main/docs/demo.md) for what each step
|
|
126
|
+
shows.
|
|
127
|
+
|
|
128
|
+
## Usage
|
|
129
|
+
|
|
130
|
+
### Check an existing pgvector or Supabase index
|
|
131
|
+
|
|
132
|
+
`doctor` is read-only and never downloads your vectors, so it's safe against production.
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
export VECSHIFT_DSN='postgresql://postgres.<project-ref>:<password>@<region>.pooler.supabase.com:5432/postgres'
|
|
136
|
+
vecshift doctor --table public.documents
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Abridged output:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
vecshift doctor · pgvector via Supabase session pooler
|
|
143
|
+
Target public.documents.embedding vector
|
|
144
|
+
Rows ~1,001 (inspected 1,001, full table)
|
|
145
|
+
|
|
146
|
+
✖ ERROR Vectors of different sizes in one index
|
|
147
|
+
Sampled vectors have 2 different sizes: 1536 (901), 3072 (100). They
|
|
148
|
+
come from different models and can't be compared with each other.
|
|
149
|
+
✖ ERROR Vectors from more than one model
|
|
150
|
+
`metadata->>'model'` records 2 different models: text-embedding-ada-002
|
|
151
|
+
(900), text-embedding-3-small (100). ...
|
|
152
|
+
⚠ WARNING No way to track writes during a migration
|
|
153
|
+
There's no logical replication and no updated-at timestamp column, ...
|
|
154
|
+
✔ OK Source text available
|
|
155
|
+
Every sampled row has text in `content`, so the index can be re-embedded.
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Add `--html report.html` for a shareable dashboard of the same results, `--json` for scripts,
|
|
159
|
+
or `--fail-on error` to fail a CI job.
|
|
160
|
+
|
|
161
|
+
[](https://raw.githubusercontent.com/Osamamu64/vecshift/main/docs/images/doctor-report.png)
|
|
162
|
+
|
|
163
|
+
The HTML report is a single file that works offline and follows your light or dark theme. It
|
|
164
|
+
holds statistics only, never vectors or row text, so it's safe to attach to a ticket. See the
|
|
165
|
+
[pgvector and Supabase guide](https://github.com/Osamamu64/vecshift/blob/main/docs/connectors/pgvector.md) for connection strings, row-level
|
|
166
|
+
security, and a read-only role recipe.
|
|
167
|
+
|
|
168
|
+
### Find the best embedding model for your data
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
vecshift bench --docs docs.jsonl \
|
|
172
|
+
-m openai/text-embedding-3-small -m openai/text-embedding-3-large,dims=256 \
|
|
173
|
+
-m ollama/nomic-embed-text --html leaderboard.html
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
It samples your documents (from a JSONL file or a pgvector table), builds queries with
|
|
177
|
+
known answers, and ranks each model by retrieval quality, query latency, cost per million
|
|
178
|
+
documents, and storage. It asks before sending anything to a paid API, and caches
|
|
179
|
+
embeddings so re-runs are cheap. Run it with no `-m` for a free, offline first try. See
|
|
180
|
+
the [benchmarking guide](https://github.com/Osamamu64/vecshift/blob/main/docs/bench.md).
|
|
181
|
+
|
|
182
|
+
### Plan a migration
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
vecshift init --table public.documents --model openai/text-embedding-3-large,dims=1024
|
|
186
|
+
vecshift plan
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
`init` writes a commented `vecshift.yaml`. `plan` checks it against the database without
|
|
190
|
+
changing anything: the SQL it would run, rows, tokens, cost, duration, and storage, plus
|
|
191
|
+
anything that would make the migration fail.
|
|
192
|
+
|
|
193
|
+
### Run it
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
vecshift apply
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
`apply` adds the new column next to the old one, embeds every row, and builds the index
|
|
200
|
+
concurrently, while your application keeps reading and writing. It stops cleanly on
|
|
201
|
+
Ctrl-C, at your budget, or part way with `--until 50`, and running it again resumes.
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
vecshift eval # better on your data, and how fast? GO / NO-GO
|
|
205
|
+
vecshift cutover --check # safe to switch?
|
|
206
|
+
vecshift cutover # searches use the new vectors, under the same column name
|
|
207
|
+
vecshift rollback # undo, instantly
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Your application's SQL doesn't change: cutover gives the new vectors the column name it
|
|
211
|
+
already uses, in one transaction. Switch the model your app embeds queries with at the
|
|
212
|
+
same time. See [Running a migration](https://github.com/Osamamu64/vecshift/blob/main/docs/migrations.md) and
|
|
213
|
+
[Evaluating a migration](https://github.com/Osamamu64/vecshift/blob/main/docs/eval.md).
|
|
214
|
+
|
|
215
|
+
#### Tested at scale
|
|
216
|
+
|
|
217
|
+
The full workflow has been run on a **2-million-row** table (PostgreSQL 17, 4 vCPUs, 15 GB
|
|
218
|
+
of RAM) while an application kept updating and inserting rows about 14 times a second:
|
|
219
|
+
|
|
220
|
+
| Step | Time | Application writes meanwhile |
|
|
221
|
+
|---|---|---|
|
|
222
|
+
| `apply`: embed 2 million rows | depends on your embedding model and its rate limits | 60K+ writes, p99 36 ms, no errors |
|
|
223
|
+
| `apply`: catch up and build the HNSW index | 4.6 min | p99 33 ms, no errors |
|
|
224
|
+
| `cutover`, including rows changed during the run | 30 s | longest pause 0.29 s |
|
|
225
|
+
| `rollback` | 1.7 s | longest pause 0.99 s |
|
|
226
|
+
| `eval`, 200 queries | 29 s | p99 13 ms |
|
|
227
|
+
|
|
228
|
+
Details in [Running a migration](https://github.com/Osamamu64/vecshift/blob/main/docs/migrations.md#at-scale).
|
|
229
|
+
|
|
230
|
+
### Fingerprint an embedding configuration
|
|
231
|
+
|
|
232
|
+
Get the fingerprint of an embedding configuration:
|
|
233
|
+
|
|
234
|
+
```console
|
|
235
|
+
$ vecshift fingerprint --provider openai --model text-embedding-3-small --dimensions 1536
|
|
236
|
+
openai/text-embedding-3-small@1536#a3ac94a82eca
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Any change to the provider, model, dimensions, version, task type, prefix, or normalization
|
|
240
|
+
produces a different tag, because it's a different vector space.
|
|
241
|
+
|
|
242
|
+
## Documentation
|
|
243
|
+
|
|
244
|
+
- [Demo](https://github.com/Osamamu64/vecshift/blob/main/docs/demo.md): a full migration on sample data, offline, with Docker
|
|
245
|
+
- [Running a migration](https://github.com/Osamamu64/vecshift/blob/main/docs/migrations.md): the job file, `plan`, `apply`, `cutover`, and `rollback`
|
|
246
|
+
- [Evaluating a migration](https://github.com/Osamamu64/vecshift/blob/main/docs/eval.md): quality per language, latency vs accuracy, and the verdict
|
|
247
|
+
- [Benchmarking embedding models](https://github.com/Osamamu64/vecshift/blob/main/docs/bench.md): sources, model specs, query types, and metrics
|
|
248
|
+
- [pgvector and Supabase](https://github.com/Osamamu64/vecshift/blob/main/docs/connectors/pgvector.md): connecting, what `doctor` checks, and safety
|
|
249
|
+
- [Architecture](https://github.com/Osamamu64/vecshift/blob/main/docs/architecture.md): the canonical record, plugin contracts, and capability flags
|
|
250
|
+
- [Roadmap](https://github.com/Osamamu64/vecshift/blob/main/docs/roadmap.md): what's being built, in what order, and why
|
|
251
|
+
- [Security model](https://github.com/Osamamu64/vecshift/blob/main/docs/security.md): what vecshift sends, stores, and touches
|
|
252
|
+
- [Prior art](https://github.com/Osamamu64/vecshift/blob/main/docs/prior-art.md): related tools and how VecShift relates to them
|
|
253
|
+
|
|
254
|
+
## Contributing
|
|
255
|
+
|
|
256
|
+
Contributions are welcome, especially new connectors and embedding providers once the
|
|
257
|
+
contracts settle. Start with [CONTRIBUTING.md](https://github.com/Osamamu64/vecshift/blob/main/CONTRIBUTING.md). Everyone taking part is
|
|
258
|
+
expected to follow the [Code of Conduct](https://github.com/Osamamu64/vecshift/blob/main/CODE_OF_CONDUCT.md).
|
|
259
|
+
|
|
260
|
+
To report a security issue, see [SECURITY.md](https://github.com/Osamamu64/vecshift/blob/main/SECURITY.md). Please don't open a public issue.
|
|
261
|
+
|
|
262
|
+
## License
|
|
263
|
+
|
|
264
|
+
Licensed under the [Apache License 2.0](https://github.com/Osamamu64/vecshift/blob/main/LICENSE).
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
vecshift/__init__.py,sha256=VRf_RAa09DfJ89J-8VGjZFTbIcCPdj4yMfy_iV0QWpM,377
|
|
2
|
+
vecshift/cli.py,sha256=QM6aNIe4yKdUmlHv8VGpI9P-wqAOAtaAaS2Vzec4xEI,8131
|
|
3
|
+
vecshift/cli_apply.py,sha256=6D4_RrRmukkVSxSVPFy-Nh1Qg1cUzbbOnnPsQC6WocY,10549
|
|
4
|
+
vecshift/cli_bench.py,sha256=IMBmvT34Ase867U6D0BYDWF8pXtw7Zz4t4QzNyIaxVM,12816
|
|
5
|
+
vecshift/cli_cutover.py,sha256=Pl9nxc6wlihFhR_pzSPMIMFQGgz0sNr7fxQECV9XCSs,16490
|
|
6
|
+
vecshift/cli_eval.py,sha256=TMB8n9vFsC0PfsI9vPqrmdoXnDGvIu7LmCjJPD1H-tk,22594
|
|
7
|
+
vecshift/cli_plan.py,sha256=VoFDCxTJmNF3ZNOXQv8xayV_zLuhISc5vJow_4mklc0,11596
|
|
8
|
+
vecshift/cli_style.py,sha256=lcpqIX3wYnDJEb1xYaTfTV-5TF6JKuvJNGYTd95aOAw,2165
|
|
9
|
+
vecshift/html_kit.py,sha256=X1c4h64i64lhMhnmAZHHHjs6MRbtqwBr9TwFHJkhpIE,4379
|
|
10
|
+
vecshift/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
vecshift/assets/bench.css,sha256=y5Okn0GC-dIxLzANp_sTQTfZbm6Vj3oBMIZYvDYG8p4,2307
|
|
12
|
+
vecshift/assets/eval.css,sha256=3kqG8l614k0oh1qAeHpNrqnz4MlrYQIE07VGcD4QeZQ,5415
|
|
13
|
+
vecshift/assets/report.css,sha256=URAKO3PtXHtMHFabLQor--sSIMeK8dQ7J-cwKwszIeQ,11373
|
|
14
|
+
vecshift/assets/report.js,sha256=vFXknZa2B46cXGip4e2l71YwuRrWrDfP3tXdxIBl8Wo,1828
|
|
15
|
+
vecshift/bench/__init__.py,sha256=AcuKoj2dcWiR1QJPXCsFBVdfZW0my9aeRWG93ww-9NI,449
|
|
16
|
+
vecshift/bench/corpus.py,sha256=SAb7fTNfryknSOLvUOZO4qHpmv5O6kE1cL2wR0iap3E,6506
|
|
17
|
+
vecshift/bench/generate.py,sha256=ked3gg3sF9UBreTS8599XBQuy40DbSKyn2QSmGBZkRY,4293
|
|
18
|
+
vecshift/bench/html.py,sha256=b9mN5ZTX05IFA_juQ6MRCcBUiuy-qQYaijqgNhlVlHs,12670
|
|
19
|
+
vecshift/bench/metrics.py,sha256=qTm2WXAV7rxZQHxe6xp4gfP5iPT-uI2Gd1UGAoCI-pA,1603
|
|
20
|
+
vecshift/bench/runner.py,sha256=wL2tTGitTuWxwSPHU5Q98Zagr3MsEvHyCRO62p9hS9U,6285
|
|
21
|
+
vecshift/connectors/__init__.py,sha256=2KYu1Vu02ztfar7Dvn4mekS6bsKlwbJnxybgZH5GWsA,36
|
|
22
|
+
vecshift/connectors/pgvector/__init__.py,sha256=BzMor9XN2T-ZfdIX_bpB6FXkx515GibLpb24HjpGb_s,587
|
|
23
|
+
vecshift/connectors/pgvector/connection.py,sha256=pTNNjKwOGOQ2pYOiYSTTFQ87xGzZCalT6RqAb-MISfA,6092
|
|
24
|
+
vecshift/connectors/pgvector/documents.py,sha256=olQMg1QvWq-0nYvE5DgHcvZZcWy-imN_woQuEMyH7Mc,3257
|
|
25
|
+
vecshift/connectors/pgvector/inspect.py,sha256=SPXHnwz1FexFN8Rnq--LFLPgHAf63aqPxS1BlKgzZQw,15244
|
|
26
|
+
vecshift/connectors/pgvector/search.py,sha256=IrKvKAaePiXWIg3KKFxANxLp8ubp2KbwoVFOa7LjIFQ,10061
|
|
27
|
+
vecshift/connectors/pgvector/switch.py,sha256=E4ocVyON9kg_t7w2_LS7zA3NKMf9lBE-24XDbawJCcE,19239
|
|
28
|
+
vecshift/connectors/pgvector/target.py,sha256=ZDwccCDUu5gCClPQorWr8t4v9MEwM8U8DiQkSzs4az0,8236
|
|
29
|
+
vecshift/connectors/pgvector/writer.py,sha256=GgMImnHtL03ctBXn5b_WnNSa8IDgjEkMP1aGRFLfEeE,17242
|
|
30
|
+
vecshift/core/__init__.py,sha256=eqipvY_nj17vWj8Cbwvo4O-UxMQY1LRcErpZNSMJOLA,103
|
|
31
|
+
vecshift/core/capabilities.py,sha256=ZGX-2JIuasREQ4CEYZMdj_GZgngQ0y9_8raCZvZpr1M,958
|
|
32
|
+
vecshift/core/contracts.py,sha256=sBywy3c_VS1Q4S2ALO3201n69WbcqST0JlUWE4bDOyk,1612
|
|
33
|
+
vecshift/core/fingerprint.py,sha256=b-ZkjFN_sC2Ur3c2UvZJlBkG72ppv7jmsZMMCiRZhPQ,2063
|
|
34
|
+
vecshift/core/record.py,sha256=3hDjQZaNTolIOIy55rmDnp7UdDRZyy4bHaP7b_5pmt4,2751
|
|
35
|
+
vecshift/doctor/__init__.py,sha256=vSoXVYBhrqLjqHYBbyDwF56o9wa3OdS_6PDpoJTNCVk,381
|
|
36
|
+
vecshift/doctor/checks.py,sha256=oNm6Zfbu8EMy8mDk05-zHPX7AVNBfk_YdqJo4dGXv4I,17864
|
|
37
|
+
vecshift/doctor/findings.py,sha256=Ehw6IYYj3c50FVpMyG-pZd_o3LMrufhl3TZUFd4aVFs,2271
|
|
38
|
+
vecshift/doctor/html.py,sha256=ECm2qahha5S2bIMlzt46YT16mFSKalLNXG181DhNDz8,18438
|
|
39
|
+
vecshift/doctor/profile.py,sha256=bwbRGXqAhTvjKBe2mlYOFEA2s5f6EgiDdwNg-Kv8bk0,2385
|
|
40
|
+
vecshift/embeddings/__init__.py,sha256=Yt_Fvimsseu7Ag6z-LNlSJp8wmMU_NEyQcEPCgCoHN4,532
|
|
41
|
+
vecshift/embeddings/cache.py,sha256=tex2WML9e9cp67JvEqIQGsBu1GJLxgS0WLlQDj7Fhnk,3330
|
|
42
|
+
vecshift/embeddings/providers.py,sha256=YCHr_X1JPxtUUJekfI1xRtGayk375nJCZtQ7F2tHXqQ,9659
|
|
43
|
+
vecshift/embeddings/spec.py,sha256=rx0Frj93tgx5Jmu40EWobo2GsWFcwQkDVnGR6HH_bt4,8355
|
|
44
|
+
vecshift/eval/__init__.py,sha256=AOejzn5M8pd15YqxkES5rHhxcErexYJIatuQ5rOY1rg,503
|
|
45
|
+
vecshift/eval/html.py,sha256=z8gnJfn7RLA5N2pThisBejTRONeea-kMgUxHn-DoxhI,18610
|
|
46
|
+
vecshift/eval/metrics.py,sha256=e8L07qce-p1odyEAnuCzmknPrrVIVtHp0q7y7DYsCFg,2513
|
|
47
|
+
vecshift/eval/queries.py,sha256=Seb1witln9iVyjwv3LOn8ESRz9Qwteu4Igq-QOFB6Js,3590
|
|
48
|
+
vecshift/eval/runner.py,sha256=oWXMX-y_VGrG3zzxmmIZjLtmHq5qG3_bCL7H1mGdRuY,15480
|
|
49
|
+
vecshift/jobs/__init__.py,sha256=9eUkwthz0Re46YOJvW9uhX19qzhySuvBWQqKf-N_Xjs,217
|
|
50
|
+
vecshift/jobs/spec.py,sha256=SRV8KikonfZYEHfu9pA_miPwgedzLbNKxT4HflL4Kbw,6939
|
|
51
|
+
vecshift/migrate/__init__.py,sha256=OoCgGGvKVnJrk4t-cPUdWrWzZnkB9mQ5WwauMOmNoyM,239
|
|
52
|
+
vecshift/migrate/engine.py,sha256=aWC1uu5qUEoGdiVjkz2bIc3ulF6Zjb5deyIin5tMiQY,11195
|
|
53
|
+
vecshift/migrate/state.py,sha256=JMhYw17Fuy-qstvzOVNhQ6EGiP5Kwu60jCuxCmh5PBw,2032
|
|
54
|
+
vecshift/planning/__init__.py,sha256=2SJORc2M405cEZFeBLNv-3ftETxj2C4OyOA07rZeLLc,377
|
|
55
|
+
vecshift/planning/plan.py,sha256=rIiRCgYXy8j1VpihlxRmawqssmMnNI0nMaPAnlrN_xI,2539
|
|
56
|
+
vecshift/planning/planner.py,sha256=LoRO0Iw1Rb-wV5lq42cDLojzyk5CGdR_IkT3X9CK0wQ,19745
|
|
57
|
+
vecshift-0.1.0.dist-info/METADATA,sha256=kkkT94HrJlcoOeC84iwWh3C7zmzM1glqtY75E8EeS0I,12911
|
|
58
|
+
vecshift-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
59
|
+
vecshift-0.1.0.dist-info/entry_points.txt,sha256=Yc53vIbCkbnUdZ09A8l3fDzNt2D_B2tVE5TqU7MEu6Y,46
|
|
60
|
+
vecshift-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
61
|
+
vecshift-0.1.0.dist-info/licenses/NOTICE,sha256=cIW01zBiJS8leFEo1ZvBQsvPPryEN8iRl07kKmYZw8s,105
|
|
62
|
+
vecshift-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|