LLMs.txt Generator for Geographic AI
llms.txt
files for your projects. This is particularly useful for:
-
AI Training Control: Setting policies for how AI models can use our content
-
Geographic Context: Adding location-specific information to our projects
-
Compliance: Managing data collection and usage permissions
-
SEO & Crawlers: Controlling how different bots interact with our content
Why do we need llms.txt files?
Similar to how robots.txt
controls web crawlers, llms.txt
files help us:
-
Control which parts of our content AI models can train on
-
Set clear attribution requirements
-
Specify geographic context for location-based applications
-
Define data usage policies for compliance
Quick Start Guide
1. Installation
npm install llms-txt-generator-geo-ai
2. Generate your first llms.txt
After installation, it automatically creates a config file. Just run:
npm run llms-txt-generator-geo-ai
3. Customize your configuration
Edit the auto-generated llms-txt.config.js
(or .ts
) file:
module.exports = {
geoData: {
location: "Your Office Location",
coordinates: "lat, lng",
country: "Your Country",
region: "Your Region",
timezone: "Your/Timezone",
additionalInfo: "Project description",
requestAttribution: "Yes", // Require attribution
allowTraining: "No", // Don't allow AI training
allowDataCollection: "No", // No data collection
contact: "your-email@company.com"
},
outputDir: "./",
filename: "llms.txt"
};
Use Cases for Our Team
1. Client Projects
-
Add geographic context for location-based apps
-
Set clear AI training policies
-
Ensure compliance with data protection requirements
2. Internal Tools
-
Standardize how our tools handle AI interactions
-
Document geographic scope of applications
-
Set consistent data usage policies
3. React Applications
You can even use it as a React component:
import { LLMSGenerator } from "llms-txt-generator-geo-ai/dist/components/LLMSGenerator";
// Use in your React app for dynamic generation
4. Next.js Projects
Perfect for Next.js apps - just configure the output to ./public
:
module.exports = {
// ... your config
outputDir: "./public", // Serves at yoursite.com/llms.txt
};
What the generated file looks like
# LLMs.txt for GEO
## Geographic Information
Location: San Francisco, CA
Coordinates: 37.7749, -122.4194
Country: United States
Region: California
Timezone: America/Los_Angeles
## Generated Information
Generated at: 2024-01-15T10:30:00.000Z
Generator: llms-txt-generator-geo-ai
## Additional Data
Allow-Training: No
Allow-Data-Collection: No
Contact: team@ourcompany.com
## user-agent rules
User-agent: *
Disallow: /private/
Disallow: /admin/
User-agent: OpenAI
Disallow: /private/
Benefits for Our Workflow
✅ Automated: No manual file creation
✅ Type-Safe: Full TypeScript support
✅ Consistent: Standardized format across projects
✅ Flexible: Works with JavaScript, TypeScript, React, Next.js
✅ Compliant: Helps with data protection requirements
✅ Geographic: Perfect for location-based applications
When to Use This
-
New Projects: Add it to project setup checklist
-
Client Work: Especially for geo-location apps
-
Compliance: When we need clear AI/data policies
-
Public APIs: To set usage guidelines
Repository & Documentation
📦 Package: llms-txt-generator-geo-ai
🔗 GitHub: https://github.com/roi-kol/geoAI
📖 Full Docs: See README.md for complete API reference
Questions?
Feel free to reach out if you need help integrating this into your projects! 🚀
Comments
Post a Comment