agentleFS
MicrosoftKnown publishermicrosoft/frontiertour27-LTG242-knowledge-retrieval-for-ai-agents-with-foundry-iq/AGENTS.md

frontiertour27-LTG242-knowledge-retrieval-for-ai-agents-with-foundry-iq

AGENTS.md2 starsChanged 3 months agoMITView on GitHub

This project was built with the microsoft-foundry skill. Before working on or answering questions about Foundry agents, read the microsoft-foundry skill first. The files under sample-data/ are a synchronized snapshot from pamelafox/aitour27-caldova-data. Do not edit them directly. Make sample-data changes in the upstream repository, then run this repository's sync script and commit the refreshed snapshot and provenance file together. - Make source-data, generator, template, and generated-artifact changes in a checkout of pamelafox/aitour27-caldova-data, usually at ../aitour27-caldova-data. - Change the structured source…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not edit them directly.

    line 7
  2. Distinctive:

    Keep related evidence consistent.

    line 19
  3. Very specific:

    Commit the complete upstream change before synchronizing.

    line 23
  4. Distinctive:

    Run the checks relevant to the consuming code or retrieval scenario.

    line 40
  5. Very specific:

    Commit the refreshed sample-data/ snapshot and provenance file together.

    line 41
  6. Distinctive:

    When changing hosted-agent dependencies, run from the agent directory:

    line 57
  7. Very specific:

    Keep semantic Content Understanding chunks at maximumLength: 2000 unless retrieval over the certificate of analysis has been revalidated.

    line 74
  8. Very specific:

    Do not state that remote results are never reranked or compare their zero scores with Search index scores.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository guidance

This project was built with the microsoft-foundry skill. Before working on or answering questions about Foundry agents, read the microsoft-foundry skill first.

The files under sample-data/ are a synchronized snapshot from pamelafox/aitour27-caldova-data. Do not edit them directly. Make sample-data changes in the upstream repository, then run this repository's sync script and commit the refreshed snapshot and provenance file together.

Changing sample data

  • Make source-data, generator, template, and generated-artifact changes in a checkout of pamelafox/aitour27-caldova-data, usually at ../aitour27-caldova-data.
  • Change the structured source of truth rather than editing generated HTML or PDFs. Regenerate only the affected artifacts with the upstream repository's existing generation scripts.
  • Keep related evidence consistent. When a shared fact changes, check every invoice, certificate, report, diagram, and JSON record that refers to it.
  • Validate the generated output upstream, including extracted PDF text and layout or page-count expectations. Avoid unrelated generated-file churn.
  • Commit the complete upstream change before synchronizing. The sync script rejects a dirty upstream checkout and records its exact HEAD in provenance.

Synchronizing sample data

From this repository's root, with a clean and committed upstream checkout, run:

uv run --locked python scripts/sync_sample_data.py --source ../aitour27-caldova-data

Then:

  • Confirm sample-data/provenance.json names the intended upstream repository and commit.
  • Review all changes under sample-data/, especially the corpus manifest, generated PDFs, structured JSON, counts, and unexpected deletions.
  • Run the checks relevant to the consuming code or retrieval scenario.
  • Commit the refreshed sample-data/ snapshot and provenance file together.

Updating Python dependencies

This repository has separate Python projects and dependency files:

  • The repository root project uses pyproject.toml and uv.lock for infrastructure scripts.
  • The hosted agent uses src/agent-toolbox-foundryiq/pyproject.toml and src/agent-toolbox-foundryiq/uv.lock.
  • The hosted agent's requirements.txt is a generated production export used by the deployment build. It must be updated when the agent dependencies change.
  • The PostgreSQL MCP service keeps its deployment dependencies in src/postgres-mcp/requirements.txt.

When changing hosted-agent dependencies, run from the agent directory:

cd src/agent-toolbox-foundryiq
uv lock
uv export --locked --no-dev --no-emit-project \
  --format requirements-txt --output-file requirements.txt
cd ../..

Review and commit both the agent lockfile and exported requirements when they change. azd deploy <agent-name> consumes the existing requirements.txt; it does not run uv export or update dependency files automatically. Redeploy the changed hosted agent after updating the export.

Search ingestion constraints

  • Keep semantic Content Understanding chunks at maximumLength: 2000 unless retrieval over the certificate of analysis has been revalidated. At 500 tokens, its analytical table splits across fragments and retrieval can omit rows; the demo depends on retrieving all 33 tests without gaps or duplicates.
  • The pinned azure-search-documents==12.1.0b1 models do not expose the modelName and modelDeployment properties required by the Content Understanding skill. Create or update that skillset through the Search client's authenticated send_request method with a 2026-05-01-preview payload. Continue using typed SDK models for supported Search resources.
  • Replace the REST payload only after a newer SDK exposes both properties and its serialized request has been verified.

Open issues

Reranker scores for remote knowledge sources

  • A direct retrieval from supplier-intelligence-kb returned rerankerScore: 0 for an included MCP reference while indexed document references received nonzero scores.
  • Microsoft Learn documents reranker_score: float | None on both the base KnowledgeBaseReference and KnowledgeBaseMcpServerReference. It does not explain when an MCP or other remote-source score is calculated, omitted, or returned as zero.
  • Do not state that remote results are never reranked or compare their zero scores with Search index scores. Describe 0 only as the value observed in the specific retrieval response.
  • Recheck the service behavior and Microsoft Learn documentation as the knowledge-bases API and azure-search-documents preview evolve.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.