iblai-api-agent-dataset
Skill15 starsChanged 2 months agoMITView on GitHub
Manage an ibl.ai agent's training datasets (RAG) via the platform API — list training docs, add resources (file, URL, YouTube, Blackboard, website crawl, GitHub), train/untrain, set visibility and retrain schedule, and delete. Use when feeding an agent knowledge.
- Reads credentials
- Sends data out
In this repository158 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-local-llmSkill
- iblai-vibe-os-agent-code-modeSkill
- iblai-vibe-projectSkill
- iblai-vibe-workflowSkill
- iblai-api-analyticsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.
- Distinctive: line 110
Add a YouTube video to an agent's knowledge base:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iblai-api-agent-dataset
Manage an agent's training datasets (RAG) through the API: list an agent's training documents, add new resources to its knowledge base, train / untrain and set visibility, configure a retrain schedule, and delete datasets. Use when feeding an agent knowledge.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME,{mentor}= the agent's unique id (e.g.d17dc729-60fd-4363-81a0-f67d9318b03e), used here as thepathway. - Host: these endpoints live under
…/dm/api/ai-index/…. - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
- GET
https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/pathways/{mentor}/?limit=5&offset={n}&search={q}— list training docs. Poll this every 2s while any document ispending. Each row names who trained it withusername,user_emailanduser_full_name; the last two arenullwhen the stored username matches no user (a service-account upload, or a deleted user). - GET
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/settings/— retrain schedule. - GET
https://api.github.com/repos/{owner}/{repo}/branches— list GitHub branches for a repo resource (external, no auth).
Writes
- POST
https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/train/— add a training resource (multipart/form-data);typevaries:- File:
{ "file": "File (required)", "pathway": "{mentor}", "type": "file|<ext>", "user_image_description": "string" } - URL / YouTube / Blackboard:
{ "type": "url|youtube|blackboard", "pathway": "{mentor}", "url": "string (required)" } - Website crawl:
{ "type": "webcrawler", "pathway": "{mentor}", "url": "string", "crawler_max_depth": "number", "crawler_max_pages_limit": "number", "crawler_match_patterns": "string[]", "crawler_pattern_type": "glob|regex" } - GitHub:
{ "url": "repo url", "branch": "string", "pathway": "{mentor}", "type": "github" } custom_metadata(optional, works with everytypeabove) — a flat JSON object of tags stored on the document, later usable as a hard retrieval filter at chat time viadocument_filter(see/iblai-api-agent-session). Send it as a nested object on a JSON body, or — becausetrain/ismultipart/form-data— as a JSON-encoded string form field:
Rules (rejected with a validation error otherwise): keys must be flat and alphanumeric/underscore ({ "custom_metadata": { "stateCode": "CA", "productGroup": "LICENSING", "year": 2026 } }^\w+$, no__); values must be scalars (string, number, or boolean) — no nested objects, arrays, ornull. Stored on the document asmetadata.custom_metadataand echoed back by the list endpoint above. Leave a tag off documents that should be exempt from a filter on that key — adocument_filteronly excludes documents that carry the key with a different value, so untagged/generic material always survives (see/iblai-api-agent-session ## Schema).
- File:
- PUT
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/— train / untrain + visibility (+ retag):{ "pathway": "{mentor}", "url": "string", "train": "boolean", "access": "public|private", "custom_metadata": { "stateCode": "CA" } }custom_metadatahere replaces the document's stored tags (same validation astrain/); omit it to leave existing tags unchanged. - POST
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/settings/— set retrain schedule:{ "retrain_interval_days": "number (required)" } - DELETE
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/— delete a dataset. Destructive — confirm with the user first.
Example
Add a YouTube video to an agent's knowledge base:
curl -X POST \
"https://api.iblai.app/dm/api/ai-index/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/documents/train/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "type=youtube" \
-F "pathway=$MENTOR" \
-F "url=https://www.youtube.com/watch?v=dQw4w9WgXcQ"Upload a file tagged with custom_metadata (JSON-encoded string in the form field), so a
chat turn can later scope retrieval to it with document_filter: {"stateCode":"CA"}:
curl -X POST \
"https://api.iblai.app/dm/api/ai-index/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/documents/train/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "type=file" \
-F "pathway=$MENTOR" \
-F "file=@ca-insurance-explainer.pdf" \
-F 'custom_metadata={"stateCode":"CA","productGroup":"LICENSING"}'Notes
- The list endpoint should be polled every 2s while any document is
pendingso newly added resources flip to trained as soon as processing finishes. pathwayis the agent's{mentor}unique id on every train/PUT call.- For GitHub resources, fetch the branch list from the unauthenticated
api.github.com/repos/{owner}/{repo}/branchesendpoint to populatebranch. - Deletion is destructive — confirm with the user first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

