ai newsFr., 4. Dez.
EilmeldungGoogle AI Releases MedGemma 2: Open Medical AI Model With Tool Calling

Claude mit osFoundry-Wissensbasis koppeln und Antworten mit Artikel-Quellen belegen

Die Anleitung erklärt, wie Claude per Connector in claude.ai oder über Claude Code im Terminal auf eine osFoundry-Knowledge-Base zugreift. Antworten auf Support- und Produktfragen belegen jede Aussage mit Artikel-ID und Zeitstempel der letzten Aktualisierung.

dev.toMontag 09:03 · 09.11.DE7 Min. Lesezeit
Bild: dev.to

इस गाइड के अंत तक Claude (connector वाली claude.ai chat, या आपके terminal में Claude Code) आपके किसी एक osFoundry knowledge base से support और product के सवालों के जवाब देगा। उसके जवाब का हर दावा एक article ID और उस article के आखिरी update के समय की ओर इशारा करता है। अगले दिन Claude osFoundry से पूछ सकता है कि तब से क्या बदला है, और आपको बता सकता है कि कल के कौन-से जवाब ऐसे article पर टिके हैं जिसे बीच में किसी ने दोबारा लिख दिया है। अगर article खुद गलत है, तो Claude उसे ठीक कर सकता है, लेकिन सिर्फ उसी exact version से जो उसने पढ़ा था, और सिर्फ तब जब आप उस call की अनुमति दें।

पहले osFoundry में connection बनाएं: key icon → Connected → Assistant: Claude → Add assistant। जो server address दिखे, उसे copy करें:

https://api.osfoundry.io/api/v1/external-mcp Enter fullscreen mode Exit fullscreen mode claude.ai में इस URL को custom connector के रूप में जोड़ें। Claude Code में इसे shell से जोड़ें और फिर session के अंदर से sign in करें:

claude mcp add --transport http osfoundry https://api.osfoundry.io/api/v1/external-mcp # then, in Claude Code: /mcp # pick osfoundry → Authenticate Enter fullscreen mode Exit fullscreen mode दोनों तरीकों में browser osFoundry का "Connect an agent" page खोलता है। वह एक workspace चुनें, approval box पर tick करें और connect करें। Claude Code में tools फिर mcp__osfoundry__search_knowledge_base जैसे नामों से दिखते हैं।

नया connection कुछ भी नहीं देखता। key icon → Connected में उसे चुनें, Projects के नीचे project चुनें और Add to project पर click करें।

उदाहरण: एक connection का Projects section, जिसमें एक project जुड़ा है

अगर knowledge base अभी उस project में नहीं है, तो उसे खोलें, दाईं ओर के panel → Settings में जाएं और Project field में project चुनें। चुनते ही field save हो जाता है।

उदाहरण: Knowledge base का Settings tab, जिसमें Project field सेट है

कोई article चुनें और दाईं ओर के panel में Publishing tab खोलें। Status में Published या Draft लिखा होता है। हर उस article के लिए Publish Article पर click करें जिसे Claude को देखना चाहिए। Panel का अपना note बताता है कि इसका मतलब क्या है: "Published articles are used by this workspace's AI assistant and search. They are not visible outside the workspace." यानी published articles उस workspace का AI assistant और search इस्तेमाल करते हैं, और workspace के बाहर वे दिखते नहीं। Drafts जानबूझकर Claude की पहुंच से बाहर रहते हैं, ताकि आधा लिखा article कभी quote न हो।

उदाहरण: एक article का Publishing tab, जिसमें Status: Published और सिर्फ workspace में दिखने वाला note है

Connection के Tools में ये tools बाकी सबके साथ default रूप से चालू रहते हैं:

read search_knowledge_base read_knowledge_article poll_resource_events write edit_knowledge_article Enter fullscreen mode Exit fullscreen mode

उदाहरण: एक Claude connection की Tools checklist, जिसमें knowledge base tools tick हैं

अगर आपको सिर्फ जवाब चाहिए, तो edit knowledge article से tick हटाएं और Save tools पर click करें। Search, read और polling चलते रहेंगे।

जब आप बताते हैं कि citation कैसी दिखनी चाहिए, तो Claude ज़्यादा भरोसेमंद तरीके से cite करता है:

Answer from the "Support" knowledge base in osFoundry only. After each claim, add [article_id · updated_at] from read_knowledge_article. If no published article covers it, say so instead of guessing. Enter fullscreen mode Exit fullscreen mode एक असली run नीचे दिए articles, IDs और तारीखें उदाहरण के तौर पर दिया गया content हैं। Tool के नाम और arguments वही हैं जो live server tools/list में दिखाता है, जैसे Claude Code उन्हें दिखाता है।

Example You: A customer on a monthly plan asks how long they have to request a refund, and whether SSO users get the same window. ● mcp__osfoundry__list_project_resources {"project_id": "…", "resource_type": "knowledge_base"} ← "Support" (knowledge base) ● mcp__osfoundry__search_knowledge_base {"knowledge_base_id": "…", "query": "refund window monthly plan", "limit": 5} ← 5 results, each with article_id and updated time "Refund policy" updated 2026-11-03 09:41 "SSO and billing owners" updated 2026-10-28 16:02 ● mcp__osfoundry__read_knowledge_article {"knowledge_base_id": "…", "article_id": "9c1e…"} ← "Refund policy", citation 9c1e… · 2026-11-03T09:41:12.408211Z ● mcp__osfoundry__read_knowledge_article {"knowledge_base_id": "…", "article_id": "4b70…"} ← "SSO and billing owners", citation 4b70… · 2026-10-28T16:02:55.019874Z Claude: Monthly plans can be refunded within 14 days of the charge [9c1e… · 2026-11-03T09:41:12Z]. SSO doesn't change that: refund requests go through the billing owner, not the SSO account [4b70… · 2026-10-28T16:02:55Z]. Enter fullscreen mode Exit fullscreen mode अगली सुबह, उसी conversation में:

You: Are any of the answers you gave yesterday out of date? ● mcp__osfoundry__poll_resource_events {"resource_type": "knowledge_base", "resource_id": "…", "after_sequence": 1182} ← 3 events; one touches 9c1e… ● mcp__osfoundry__read_knowledge_article {"knowledge_base_id": "…", "article_id": "9c1e…"} ← "Refund policy", citation 9c1e… · 2026-11-04T08:15:30.112054Z now says 30 days for monthly plans Claude: One answer changed. "Refund policy" was updated this morning and now gives 30 days, not 14 [9c1e… · 2026-11-04T08:15:30Z]. The SSO part still stands; that article hasn't changed.

You: The FAQ article still says 14 days. Fix it to match. ● mcp__osfoundry__read_knowledge_article {"knowledge_base_id": "…", "article_id": "e27a…"} ← "Refund FAQ", version 2026-11-01T10:03:44.250911Z ● mcp__osfoundry__edit_knowledge_article {"knowledge_base_id": "…", "article_id": "e27a…", "content": "…30 days…", "expected_version": "2026-11-01T10:03:44.250911Z", "idempotency_key": "faq-refund-30d"} [Claude Code asks: allow this tool? → Yes] ← saved, version 2026-11-04T08:22:09.871530Z Enter fullscreen mode Exit fullscreen mode यहां तीन चीज़ें होती हैं जो किसी आम chat में नहीं होतीं।

Citation में सिर्फ ID नहीं, समय भी होता है। अकेला ID बताता है कि Claude ने कौन-सा article इस्तेमाल किया। Update का समय बताता है कि वह article किस हालत में था। इसी से Claude "क्या यह अब भी सही है?" का जवाब दे पाता है, बिना हर उस article को दोबारा पढ़े जिसे उसने कभी cite किया था।

Polling सस्ती है क्योंकि यह एक log है। Claude को कल से सिर्फ एक number याद रखना था, यानी आखिरी event sequence जो उसने देखा था। एक poll_resource_events call ने तब से हुए बदलाव लौटा दिए, और Claude ने सिर्फ वही article दोबारा पढ़ा जो बदला था।

Edit में एक version दिया जाता है। edit_knowledge_article article का content (और title, अगर आप भेजें) तभी बदलता है जब article अब भी expected_version पर हो। Claude ने लिखने से कुछ सेकंड पहले FAQ पढ़ा था, इसलिए version मेल खा गया। अगर बीच में किसी ने FAQ save कर दिया होता, तो osFoundry write को reject कर देता और Claude उसे दोबारा पढ़ता। कल की citation वाला version फिर से इस्तेमाल करना reject होने का सबसे आम कारण है, इसलिए अच्छा prompt कहता है "edit करने से पहले दोबारा पढ़ो"।

सिर्फ मौजूदा, published articles ही search हो सकते हैं। Search और read दोनों article की अभी की हालत पर काम करते हैं। किसी article को unpublish करने पर वह अगली call में Claude के results से हट जाता है, और जिस जवाब ने उसे cite किया था, check करने पर उसे कुछ नहीं मिलेगा। Publish को एक अलग step रखने का मकसद यही है: जवाब किसे माना जाए, यह workspace तय करता है, model नहीं।

सिर्फ connected project के knowledge bases। Claude ऐसे knowledge base में search नहीं कर सकता जो connection को दिया ही नहीं गया। Knowledge base को किसी दूसरे project में ले जाने, connection से project हटाने या Revoke connection पर click करने से अगली call रुक जाती है। पहले मिला token access को खुला नहीं रखता।

Edit पूरा replacement है, जिस पर दो तरफ से सुरक्षा है। Tool पूरा content लेता है, इसलिए osFoundry पुरानी copy को नई copy में merge नहीं करता। वह उसे reject कर देता है और Claude को अभी की स्थिति से बदलाव दोबारा करने देता है। Claude की तरफ यह tool ऐसे write के रूप में marked है जो shared content बदलता है ( readOnlyHint: false, destructiveHint: true ), इसीलिए Claude Code रुककर पूछता है। osFoundry की तरफ call उस व्यक्ति के edit अधिकारों से चलती है जिसने connection approve किया था। अगर कोई linked Claude chat osFoundry की अपनी Knowledge Base screen के अंदर से edit करती है, तो osFoundry हर edit_knowledge_article call पर approval मांगता है, और उस approval को बाकी session तक नहीं बढ़ाया जा सकता।

हर call दिखती है। Connection का Recent activity हर tool का नाम, फैसला और समय दिखाता है, ताकि आप देख सकें कि जवाब देने से पहले Claude ने कौन-से articles पढ़े।

उदाहरण: एक Claude connection का Recent activity, जिसमें knowledge base tool calls की सूची है

पिछले हफ्ते आपकी team ने जिन दस असली सवालों के जवाब दिए थे, उन्हें चुनें, Claude से knowledge base के आधार पर citations के साथ उनका जवाब दिलवाएं, और conversation संभालकर रखें। कल उससे पूछें कि कौन-से जवाब पुराने हो गए हैं। जिन articles को वह flag करेगा, वही हैं जिन्हें आपकी team ने बदला है, और citations ठीक-ठीक दिखाती हैं कि हर जवाब किस version से आया। Knowledge base में क्या रहता है और उसके articles के versions कैसे बनते हैं, यह Knowledge Base page पर है।

Originaltitel: Claude से osFoundry knowledge base के आधार पर जवाब कैसे दिलवाएं और हर दावे के पीछे का article कैसे cite करवाएंQuelle: dev.to (dev.to). Original öffnen