xberg-extracting-keywords
यह क्या करती है
यह स्किल बताती है कि YAKE या RAKE तरीकों से दस्तावेज़ों के कीवर्ड कैसे लें, और दस्तावेज़ की भाषा कैसे पहचानें। यह उन लोगों के लिए है जिन्हें त्वरित विषय टैग या भाषा जाँच चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी रिपोर्ट या पेपर से मुख्य विषय या कीवर्ड चाहें।
- ✓जब आपको जानना हो कि दस्तावेज़ किस भाषा में लिखा है।
- ✓जब आप सर्च बना रहे हों और दस्तावेज़ों से वेक्टर एम्बेडिंग चाहिए।
Skill का लिंक
https://github.com/xberg-io/xberg/blob/main/plugin/.ai-rulez/skills/xberg-extracting-keywords/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस शोध पत्र से मुख्य कीवर्ड निकालिए और बताइए कि यह किस भाषा में है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट निष्कर्षण विकल्पों में कीवर्ड सेटिंग चालू करता है और YAKE या RAKE चुनता है। फिर कीवर्ड नतीजे में दिखते हैं। एम्बेडिंग एक अलग embed कमांड से बनती हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Extracting keywords, language, and embeddings
Use this for the enrichment surface around extraction: statistical keyword
extraction, language detection, and vector embeddings. Keywords and
language detection ride along with extraction and land on the result;
embeddings are produced by a dedicated embed command.
Keywords (YAKE / RAKE)
Keyword extraction is configured via the [keywords] config block (or
inline JSON) — there is no single --keywords CLI flag. When enabled,
extracted keywords appear on result.extracted_keywords (extractedKeywords
in Node.js; the CLI JSON field is extracted_keywords). Two algorithms are
available:
- YAKE (
"yake") — statistical, unsupervised single-document extraction. Good general default. - RAKE (
"rake") — co-occurrence / phrase-based. Favors multi-word key phrases.
Feature-gated: keyword extraction requires the CLI to be built with the
keywords-yakeand/orkeywords-rakeCargo features (both are in the default/fullbuild). If the CLI was built without them, the[keywords]config block is silently ignored —result.extracted_keywordssimply stays empty rather than erroring. The"yake"algorithm needskeywords-yake;"rake"needskeywords-rake.
Enable via inline JSON on the CLI:
xberg extract paper.pdf --format json \
--config-json '{"keywords":{"algorithm":"yake","max_keywords":15,"language":"en"}}' \
| jq '.result.extracted_keywords'
Or in a config file:
[keywords]
algorithm = "rake" # "yake" or "rake"
max_keywords = 10 # default 10
min_score = 0.0 # filter below this score (normalized 0.0-1.0 for both algorithms)
ngram_range = [1, 3] # unigrams..trigrams (default); config-file only
language = "en" # stopword language; omit to skip stopword filtering
xberg extract report.pdf --config xberg.toml --format json | jq '.result.extracted_keywords'
Field notes:
max_keywordscaps how many keywords are returned (default 10).min_scorefilters low-scoring keywords. Both YAKE and RAKE normalize their scores to the0.0-1.0range with higher-is-better, somin_scoreretains keywords withscore >= min_scoreidentically for either algorithm.ngram_rangeis[min, max]:[1,1]unigrams only,[1,2]adds bigrams,[1,3](default) adds trigrams. Config-file only — it is not a field on the language bindings'KeywordConfig.languageenables stopword filtering for that language; omit it to disable stopword filtering entirely.
Language detection
Language detection is a real CLI flag: --detect-language. Detected
languages appear on result.detected_languages:
xberg extract multilingual.pdf --detect-language true --format json \
| jq '.result.detected_languages'
In a config file it lives under [language_detection]:
[language_detection]
enabled = true
min_confidence = 0.8
detect_multiple = false
The CLI flag enables detection with min_confidence = 0.8 and
single-language mode; use the config block to detect multiple languages or
tune confidence.
Embeddings (embed command)
The standalone embed command produces vector embeddings for text from
--text (repeatable) or stdin. It does not run extraction — pipe
extracted content in if you want document embeddings.
# Local ONNX preset model (default provider)
xberg embed --text "first passage" --text "second passage" --preset balanced
# Embed extracted document text
xberg extract report.pdf | xberg embed --preset quality
Presets for the local provider: fast, balanced (default), quality,
multilingual. Output defaults to JSON (--format json).
--provider selects the embedding source:
| Provider | Flag | Notes |
|---|---|---|
local |
--preset <fast|balanced|quality|multilingual> |
Default. ONNX model, no API key. |
llm |
--model <id> --api-key <key> |
liter-llm routing, e.g. openai/text-embedding-3-small. |
plugin |
--plugin <name> |
A backend pre-registered in-process via the plugin API. |
# Provider-hosted embeddings via an LLM
xberg embed --text "query text" \
--provider llm --model openai/text-embedding-3-small --api-key "$OPENAI_API_KEY"
Local embedding presets must be down
अक्सर पूछे जाने वाले सवाल
YAKE और RAKE में क्या अंतर है?
YAKE एक सांख्यिकीय तरीका है जो सामान्य डिफ़ॉल्ट के रूप में अच्छा काम करता है, जबकि RAKE कई शब्दों वाले वाक्यांशों को पसंद करता है।
मेरे कीवर्ड क्यों गायब हैं?
कीवर्ड फ़ीचर टूल में बना होना चाहिए। अगर न हो, तो सेटिंग अनदेखी हो जाती है और सूची बिना त्रुटि के खाली रहती है।
एम्बेडिंग कहाँ बनती हैं?
एक अलग embed कमांड उन्हें बनाता है, सामान्य निष्कर्षण से अलग।
जानकारी
लेखक का मूल विवरण
Use when extracting keywords (YAKE/RAKE) from documents — and, secondarily, when detecting document language or generating embeddings for RAG and search. Covers the keyword config (and its feature gating), `--detect-language`, and the standalone `embed` command with real flags.
repo: xberg-io/xberg
लोकप्रियता
- GitHub स्टार
- 9.5k
- रैंकिंग में स्थान
- #12270
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
xberg-batch-extraction
9.5kआपके एजेंट को Xberg के साथ एक साथ कई दस्तावेज़ प्रोसेस करने में मदद करती है। विकल्पों का एक सेट साझा होता है, समानांतर काम सीमित रहता है, और विफल फ़ाइलें पूरे रन को नहीं रोकतीं।
xberg-chunking
9.5kआपके एजेंट को लंबे दस्तावेज़ों का टेक्स्ट AI प्रॉम्प्ट या सर्च इंडेक्स के लिए छोटे टुकड़ों में बाँटने में मदद करती है, तय आकार और वैकल्पिक ओवरलैप के साथ।
xberg-extracting-tables
9.5kआपके एजेंट को PDF, स्प्रेडशीट और छवियों से तालिकाएँ निकालने में मदद करती है, पंक्तियाँ और कॉलम markdown या संरचित डेटा के रूप में सही रखते हुए।
xberg-extracting-with-ocr
9.5kआपके एजेंट को स्कैन की गई PDF, फ़ोटो और ऐसी छवियों से टेक्स्ट पढ़ने में मदद करती है जिनमें टेक्स्ट परत नहीं है, वैकल्पिक भाषा पैक के साथ OCR का उपयोग करके।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।