azure-ai-document-intelligence-ts
यह क्या करती है
यह टूल दस्तावेज़ों से ज़रूरी जानकारी निकालता है, जैसे टेक्स्ट, टेबल और स्ट्रक्चर्ड डेटा। यह इनवॉइस और रसीद जैसे अलग-अलग दस्तावेज़ों को समझ सकता है, या किसी खास तरह के दस्तावेज़ को समझने के लिए ट्रेन भी किया जा सकता है।
कब इस्तेमाल करें
- ✓जब आपको इनवॉइस और रसीदों से डेटा अपने-आप निकालना हो।
- ✓बड़ी संख्या में दस्तावेज़ों में जानकारी व्यवस्थित करने और खोजने के लिए।
- ✓ऐसा सिस्टम बनाते समय जिसे किसी खास दस्तावेज़ का कंटेंट समझना हो।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-ai-document-intelligence-ts/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस लिंक से इनवॉइस का डेटा निकालो: [invoice link]”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप लिंक या फ़ाइल के ज़रिए टूल को दस्तावेज़ भेजते हैं। यह पहले से ट्रेन किए गए या कस्टम मॉडल का इस्तेमाल करके आपको चाहिए वाली जानकारी पहचानता है, जैसे रकम, तारीख और नाम।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Azure Document Intelligence REST SDK for TypeScript
Extract text, tables, and structured data from documents using prebuilt and custom models.
Installation
npm install @azure-rest/ai-document-intelligence @azure/identity
Environment Variables
DOCUMENT_INTELLIGENCE_ENDPOINT=https://<resource>.cognitiveservices.azure.com
DOCUMENT_INTELLIGENCE_API_KEY=<api-key>
Authentication
Important: This is a REST client. DocumentIntelligence is a function, not a class.
DefaultAzureCredential
import DocumentIntelligence from "@azure-rest/ai-document-intelligence";
import { DefaultAzureCredential } from "@azure/identity";
const client = DocumentIntelligence(
process.env.DOCUMENT_INTELLIGENCE_ENDPOINT!,
new DefaultAzureCredential()
);
API Key
import DocumentIntelligence from "@azure-rest/ai-document-intelligence";
const client = DocumentIntelligence(
process.env.DOCUMENT_INTELLIGENCE_ENDPOINT!,
{ key: process.env.DOCUMENT_INTELLIGENCE_API_KEY! }
);
Analyze Document https://example.com
import DocumentIntelligence, {
isUnexpected,
getLongRunningPoller,
AnalyzeOperationOutput
} from "@azure-rest/ai-document-intelligence";
const initialResponse = await client
.path("/documentModels/{modelId}:analyze", "prebuilt-layout")
.post({
contentType: "application/json",
body: {
urlSource: "https://example.com/document.pdf"
},
queryParameters: { locale: "en-US" }
});
if (isUnexpected(initialResponse)) {
throw initialResponse.body.error;
}
const poller = getLongRunningPoller(client, initialResponse);
const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;
console.log("Pages:", result.analyzeResult?.pages?.length);
console.log("Tables:", result.analyzeResult?.tables?.length);
Analyze Document (Local File)
import { readFile } from "node:fs/promises";
const fileBuffer = await readFile("./document.pdf");
const base64Source = fileBuffer.toString("base64");
const initialResponse = await client
.path("/documentModels/{modelId}:analyze", "prebuilt-invoice")
.post({
contentType: "application/json",
body: { base64Source }
});
if (isUnexpected(initialResponse)) {
throw initialResponse.body.error;
}
const poller = getLongRunningPoller(client, initialResponse);
const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;
Prebuilt Models
| Model ID | Description |
|---|---|
prebuilt-read |
OCR - text and language extraction |
prebuilt-layout |
Text, tables, selection marks, structure |
prebuilt-invoice |
Invoice fields |
prebuilt-receipt |
Receipt fields |
prebuilt-idDocument |
ID document fields |
prebuilt-tax.us.w2 |
W-2 tax form fields |
prebuilt-healthInsuranceCard.us |
Health insurance card fields |
prebuilt-contract |
Contract fields |
prebuilt-bankStatement.us |
Bank statement fields |
Extract Invoice Fields
const initialResponse = await client
.path("/documentModels/{modelId}:analyze", "prebuilt-invoice")
.post({
contentType: "application/json",
body: { urlSource: invoiceUrl }
});
if (isUnexpected(initialResponse)) {
throw initialResponse.body.error;
}
const poller = getLongRunningPoller(client, initialResponse);
const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;
const invoice = result.analyzeResult?.documents?.[0];
if (invoice) {
console.log("Vendor:", invoice.fields?.VendorName?.content);
console.log("Total:", invoice.fields?.InvoiceTotal?.content);
console.log("Due Date:", invoice.fields?.DueDate?.content);
}
Extract Receipt Fields
const initialResponse = await client
.path("/documentModels/{modelId}:analyze", "prebuilt-receipt")
.post({
contentType: "application/json",
body: { urlSource: receiptUrl }
});
const poller = getLongRunningPoller(client, initialResponse);
const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput;
const receipt = result.analyzeResult?.documents?.[0];
if (receipt) {
console.log("Merchant:", receipt.fields?.MerchantName?.content);
console.log("Total:", receipt.fields?.Total?.content);
for (const item of receipt.fields?.Items?.values || []) {
console.log("Item:", item.properties?.Description?.content);
console.log("Price:", item.properties?.TotalPrice?.content);
}
}
…
अक्सर पूछे जाने वाले सवाल
मैं किस तरह के दस्तावेज़ प्रोसेस कर सकता हूँ?
आप कई तरह के दस्तावेज़ प्रोसेस कर सकते हैं, जैसे इनवॉइस, रसीद, ID दस्तावेज़, स्वास्थ्य बीमा कार्ड, कॉन्ट्रैक्ट और टैक्स फॉर्म। टूल को कस्टम दस्तावेज़ समझने के लिए भी ट्रेन किया जा सकता है।
टूल को कैसे पता चलता है कि क्या निकालना है?
यह AI मॉडल का इस्तेमाल करता है। कुछ मॉडल आम दस्तावेज़ों (जैसे इनवॉइस) को पहले से समझते हैं, और दूसरे मॉडल आपके अपने उदाहरणों से ट्रेन किए जा सकते हैं ताकि खास जानकारी निकाली जा सके।
क्या इसे इस्तेमाल करने के लिए कोडिंग आनी चाहिए?
यह टूल एक प्रोग्रामिंग सर्विस है, लेकिन आप इसे ऐसे इंटरफ़ेस या टूल के ज़रिए इस्तेमाल कर सकते हैं जो प्रक्रिया को आसान बना देते हैं, इसलिए जटिल कोड लिखना ज़रूरी नहीं।
जानकारी
लेखक का मूल विवरण
Extract text, tables, and structured data from documents using prebuilt and custom models.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #3885
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।