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 התקנות+3 ב-7 ימים39 כוכביםסונכרן לפני 10 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/vec2textנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילה6ce47e2e…412ca165
6ce47e2ec25d…01e0412ca165קובץ אחד · 1.1 KBסריקהבינוניממצא אחד
- לא נמצא רישיון
מקורgithub.com/AeonDave/malskill/tree/main/ai/vec2text@21cd568
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
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.
הקבצים בגרסה הזו
- SKILL.md2.2 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | לא | לא |
| משתמש ברשת | לא | לא |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- בינוניתרישיון · לא נמצא רישיון
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 בנוב׳ 2026 | 21cd568 | 6ce47e2e | חתומה | – |
עוד מ-AeonDave
הכול מהמפרסם הזהעוד בקטגוריה AI, סוכנים ו-MCP
לקטגוריה- 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
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login