vec2text
vec2text: embedding-inversion library for reconstructing approximate text from sentence embeddings. Use when working with saved embedding tensors, privacy/inversion research, or AI/ML challenge workflows where you need to load a corrector model and invert strings or embeddings directly.
v2026.11.13-21cd5683 installs+3 in 7 days39 Starssynced 10 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/vec2textWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Package6ce47e2e…412ca165
6ce47e2ec25d…01e0412ca1651 file · 1.1 KBScanMedium1 finding
- No license found
Sourcegithub.com/AeonDave/malskill/tree/main/ai/vec2text@21cd568
On this page
Use vec2text when embeddings are the artifact and text recovery is the question.
When to use vec2text
Use vec2text when you need to:
- invert sentence embeddings back into approximate text
- load a pretrained corrector for supported embedding families
- work from saved embedding tensors rather than original source text
- tune inversion quality with multiple refinement steps or beam search
Quick Start
import vec2text
corrector = vec2text.load_pretrained_corrector("gtr-base")High-Value Workflows
Invert known strings through the matching embedder workflow
vec2text.invert_strings(
["example text"],
corrector=corrector,
num_steps=20,
sequence_beam_width=4,
)Invert embeddings directly
import torch
embeddings = torch.load("embeddings.pt", map_location="cpu")
texts = vec2text.invert_embeddings(
embeddings=embeddings,
corrector=corrector,
num_steps=20,
)
print(texts)Practical Notes
- Corrector choice must match the embedding family; mismatched models produce garbage.
num_stepsimproves refinement quality, whilesequence_beam_widthimproves search at higher memory cost.- The project supports both direct string inversion workflows and embedding-only inversion workflows.
Caveats
- Reconstruction is approximate, not guaranteed exact text recovery.
- Beam search raises memory usage quickly.
- Model support and pretrained aliases evolve; prefer current upstream docs over old examples.
Resources
No bundled scripts/, references/, or assets/.
Use the upstream vec2text README for current pretrained corrector aliases, API entry points, and embedding-family matching guidance.
Files in this version
- SKILL.md2.2 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | No | No |
| Writes files | No | No |
| Runs shell commands | No | No |
| Uses the network | No | No |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
- MediumLicense · No license found
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | Nov 13, 2026 | 21cd568 | 6ce47e2e | Signed | – |
More from AeonDave
All from this publisherMore in AI, agents and MCP
See the category- fal-assetsrehan-remade/fal-assets5
- ai-system-prompt-leakagenoorqureshi/ai-system-prompt-leakage4
- ai-prompt-injectionnoorqureshi/ai-prompt-injection4
- testing-prompt-injection-in-rag-pipelinesmukul975/testing-prompt-injection-in-rag-pipelines4
- implementing-llm-guardrails-for-securitymukul975/implementing-llm-guardrails-for-security4
- defending-llms-with-guardrailsmukul975/defending-llms-with-guardrails4
Ask anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login