Skip to content

GitHub datasets ​

The GitHub page shows your public GitHub data and makes datasets from it, in two ways: from your whole account, or from a recipe that picks what a dataset is generated from and names the Hugging Face dataset it publishes to. A Q&A generation stops at a draft that you review before anything reaches the Hub. A run starts when you start it.

Your LLM grades every new Q&A pair, 0 to 1 (true to its source, useful to a visitor, its question self-contained): one graded below 0.6 is held out for review, with the grader's reason. The profile and repo facts are exact, not graded, and the length rule doesn't apply to them.

Only public data is read: a private repo is refused, even one your token could read. A GitHub token saved in Settings only raises the API quota from 60 to 5,000 requests an hour; the page shows what is left.

Your whole account ​

Two jobs read all your public repos, forks and archived ones aside, and publish to the dataset repos saved in Settings:

JobWhat it buildsPublishes to
GitHub personal Q&AQ&A pairs from your profile, the READMEs and the docs/ foldersThe Q&A dataset repo
Knowledge corpusA retrieval corpus (profile, repos, code chunks, docs), with no modelThe corpus dataset repo

GitHub personal Q&A is incremental like a recipe, and stops at a draft reviewed on its card: untick the new pairs you don't want, tick the held-out ones you do, then Publish pushes exactly that. Max Repos limits a test run to your most-starred repos; Full Refresh ignores the published version. The Knowledge corpus builds the splits you switch on; it publishes only with Dry Run off. When the server is set up for it (Configuration), an admin's published run then asks the site that indexes the corpus to read it again, and the run reports Reindex: asked or why it failed.

Each corpus commit is a complete dataset version. A split you left off is carried over from the published version, unchanged and checked against its hash, and its manifest entry names the commit it was built in (carried_from). A data file the manifest no longer lists is deleted. A push lands only on the version it read: if the repo moved in between, the run fails with "run it again" instead of mixing the two. A published corpus with another schema version or other chunker settings than the build can't be mixed with it, so the first run after an upgrade needs every split switched on.

The corpus layout is versioned (schema_version in manifest.json, now 2). The manifest also records:

  • the chunker settings;
  • each repo's branch and tree SHA that the build read.

Every record carries a content_hash (SHA-256 of its text), so an indexer that already holds the hash keeps its vector instead of embedding the chunk again.

How the corpus is chunked:

  • READMEs are cut into sections after the repo's card, rather than cut off at 3,000 characters.
  • Code longer than a chunk is split, never truncated. A chunk's id is keyed on its own text, so code that only moved keeps its id.
  • docs/ sections are keyed on their heading trail, so a new section does not renumber the ones after it.
  • Skipped: licences, changelogs, the root README (already in the github split; a README further down stays in the code split), lockfiles, minified or generated files, and files with almost no code.

Each Q&A pair carries a uuid: the same point id the portfolio gives it in Qdrant.

Each card has a Regenerate picker too: every day, every Monday or the 1st of every month, at a time of day (UTC). A scheduled run copies the options and the model the card shows when you set the schedule; when you change them on the card afterwards, it says so and offers Schedule these instead. With its publish box ticked, a scheduled Q&A run publishes what passes the checks and keeps the doubtful pairs as a draft, and a scheduled corpus run publishes whatever Dry Run says; unticked, the run stops where one you start by hand does.

Recipes ​

SettingWhat it does
NameHow you tell recipes apart (unique per user, 50 recipes at most)
Publishes toThe Hugging Face dataset, namespace/name, created private on the first publish
ModelThe model for the generation; empty uses your LLM, set on the Models page
Profile factsWho you are, your stack and your projects, from your GitHub profile
ReposUp to 200, each with its README and metadata or not, and its docs/ files

Every change is saved as you go. Deleting a recipe leaves its Hugging Face dataset in place.

Regenerate puts a recipe on a schedule: every day, every Monday or the 1st of every month, at a time of day (UTC). Each scheduled run generates from the recipe as it is at that moment — its selection, its dataset, its model — and builds on the published version, so a day nothing changed on GitHub makes no model call and publishes nothing. With Publish what passes the checks on, the pairs that pass are published at once and the doubtful ones wait as a draft; off, the run stops at a draft like one you start yourself. Only one recipe runs at a time: a scheduled run that finds another in progress starts a few minutes after it is done. Deleting a recipe removes its schedule.

Choosing what a repo contributes ​

Open a repo in the list to see it as a generation does:

  • What the model sees: the exact text of the overview call (description, language, topics, detected stack, README). Its hash decides whether the next run regenerates it.
  • README: cleaned of badges and cut at 3,000 characters.
  • Docs: the Markdown and text files under docs/. The default pick is the first 6 readable files; Choose files lets you tick up to 20, None leaves them out. Files over 50 KB are skipped, and each one is cut at 3,000 characters.

Forks and archived repos are listed but can't be selected.

Generating ​

Generate draft queues the recipe as it is at that moment; a worker runs it, and the page follows its progress. The run is incremental: a source whose text did not change since the published version keeps its pairs without a model call. When it finishes, the page counts the new pairs, the ones kept, those held out (an answer far from its source) and the published pairs the draft would remove — a deselected source, a removed file. A repo that GitHub fails to return keeps its published pairs, and the failure is listed with the draft.

Reviewing and publishing ​

Review the draft opens the run's review page, with three lists:

  • New: the pairs generated this run, all included; untick one to leave it out.
  • Held out: pairs whose answer is far from its source, left out; tick one to take it in.
  • Removed: pairs of the published dataset this draft no longer has. Publishing deletes them.

Filters narrow the lists by category, repo, text, low grounding, or pairs that fail your quality rules (Quality page). The page also lists possible duplicates — same question, close answers — with a button to leave the second one out. Edit rewrites the question or answer of a pair that goes out; the rewritten pair gets the id of its new content and loses its grounding score, computed for the model's answer. Pairs carried over from the published version are not shown and can't be edited here.

Publish to Hugging Face pushes exactly what you reviewed, in one commit (data, held-out pairs, manifest and card), then opens the dataset page.

The commit goes on top of the version the draft was built on. If the dataset changed on the Hub in between (another draft published into it, an edit made there), nothing is written: the draft stays as it is and a new run builds on the current version. Rows the job did not generate, such as pairs added from a file with Add data, are not its to remove: they stay in train.jsonl as they are, after the job's pairs, and the card mentions them. A line of train.jsonl that is not a JSON object stops the run, since skipping it would delete it at the next publication; fix it on the Hub, or use Full Refresh.

API ​

RouteReturns
GET /github/profileYour account and the API quota left
GET /github/reposYour public repos, with whether a generation takes them
GET /github/repos/{owner}/{repo}README, docs/ files, detected stack and the overview text
GET /github/repos/{owner}/{repo}/docOne docs/ file (path), cut where a generation cuts it
GET /recipes, POST /recipesYour recipes; a new one
GET/PUT/DELETE /recipes/{recipe_id}One recipe (another user's answers 404)
POST /recipes/{recipe_id}/runQueues a generation; follow it with GET /jobs/runs/{run_id}
…/recipes/{recipe_id}/scheduleGET, PUT, DELETE: when it regenerates by itself
GET /jobsThe whole-account jobs, with their options and latest run
POST /jobs/{job_id}/runQueues one of them (options, model_ref)
…/jobs/{job_id}/scheduleGET, PUT, DELETE: when one of them runs by itself
POST /jobs/runs/{run_id}/publishPublishes the reviewed draft: exclude, promote, edits
GET /jobs/runs/{run_id}/checksNear-duplicates and quality-rule failures of the draft

GitHub answers are cached 5 minutes per account. Errors: 400 without a GitHub username in Settings, 404 outside your account or for a repo that isn't public, 429 when the GitHub quota is exhausted.

See Datasets on Hugging Face for what happens once a draft is published.