aitour27-LTG242-knowledge-retrieval-for-ai-agents-with-foundry-iq
AGENTS.md4 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
- microsoft/frontiertour27-LTG242-knowledge-retrieval-for-ai-agents-with-foundry-iqword for word, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 1
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
- Distinctive: line 7
Do not edit them directly.
- Distinctive: line 19
Keep related evidence consistent.
- Very specific: line 23
Commit the complete upstream change before synchronizing.
- Distinctive: line 40
Run the checks relevant to the consuming code or retrieval scenario.
- Very specific: line 41
Commit the refreshed sample-data/ snapshot and provenance file together.
- Distinctive: line 57
When changing hosted-agent dependencies, run from the agent directory:
- Very specific: line 74
Keep semantic Content Understanding chunks at maximumLength: 2000 unless retrieval over the certificate of analysis has been revalidated.
- Very specific: line 97
Do not state that remote results are never reranked or compare their zero scores with Search index scores.
≈ “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.
Files
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
HEADin 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-dataThen:
- Confirm
sample-data/provenance.jsonnames 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.tomlanduv.lockfor infrastructure scripts. - The hosted agent uses
src/agent-toolbox-foundryiq/pyproject.tomlandsrc/agent-toolbox-foundryiq/uv.lock. - The hosted agent's
requirements.txtis 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: 2000unless 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.0b1models do not expose themodelNameandmodelDeploymentproperties required by the Content Understanding skill. Create or update that skillset through the Search client's authenticatedsend_requestmethod with a2026-05-01-previewpayload. 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-kbreturnedrerankerScore: 0for an included MCP reference while indexed document references received nonzero scores. - Microsoft Learn documents
reranker_score: float | Noneon both the baseKnowledgeBaseReferenceandKnowledgeBaseMcpServerReference. 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
0only 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-documentspreview evolve.
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.

