The Pale Fire documentation has been organized into the docs/ folder for better maintainability and navigation.
palefire/
├── README.md # Main project README
├── api.py # FastAPI REST API
├── palefire-cli.py # Command-line interface
├── config.py # Configuration module
├── requirements.txt # Python dependencies
├── env.example # Environment configuration template
│
├── modules/ # Core modules
│ ├── __init__.py
│ └── PaleFireCore.py # EntityEnricher, QuestionTypeDetector
│
├── docs/ # 📚 All documentation
│ ├── README.md # Documentation index
│ │
│ ├── Getting Started/
│ │ ├── PALEFIRE_SETUP.md
│ │ ├── QUICK_REFERENCE.md
│ │ └── CONFIGURATION.md
│ │
│ ├── User Guides/
│ │ ├── CLI_GUIDE.md
│ │ └── API_GUIDE.md
│ │
│ ├── Features/
│ │ ├── RANKING_SYSTEM.md
│ │ ├── NER_ENRICHMENT.md
│ │ ├── QUESTION_TYPE_DETECTION.md
│ │ └── QUERY_MATCH_SCORING.md
│ │
│ ├── Advanced/
│ │ ├── ARCHITECTURE.md
│ │ ├── DATABASE_CLEANUP.md
│ │ ├── EXPORT_FEATURE.md
│ │ └── ENTITY_TYPES_UPDATE.md
│ │
│ └── Changelog/
│ ├── CHANGELOG_CONFIG.md
│ ├── MIGRATION_SUMMARY.md
│ └── EXPORT_CHANGES.md
│
├── example_episodes.json # Example data
└── example_export.json # Example export
Essential documentation for new users:
- Setup and installation
- Quick command reference
- Configuration options
Detailed usage guides:
- CLI commands and examples
- REST API endpoints and usage
Feature-specific documentation:
- Ranking algorithm details
- NER enrichment process
- Question type detection
- Query matching scoring
Advanced topics and maintenance:
- System architecture
- Database operations
- Export functionality
- Entity type system
Version history and migrations:
- Configuration changes
- Migration summaries
- Format updates
- Start at
README.md - Navigate to
docs/README.mdfor full index - Access any doc via
docs/FILENAME.md
- Use relative links:
[Text](FILENAME.md) - All cross-references work within docs folder
- No path prefixes needed
- From root to docs:
docs/FILENAME.md - From docs to root:
../FILENAME
- UPPERCASE_SNAKE_CASE.md - All documentation files
- Descriptive names - Clear purpose from filename
- Consistent suffixes:
_GUIDE.md- User guides_SYSTEM.md- System documentation_FEATURE.md- Feature documentation_CHANGES.md- Changelog entries
[CLI Guide](CLI_GUIDE.md)
[Configuration](CONFIGURATION.md)[Main README](../README.md)
[API Code](../api.py)[Setup Guide](docs/PALEFIRE_SETUP.md)
[Documentation Index](docs/README.md)- Create file in
docs/folder - Use UPPERCASE_SNAKE_CASE naming
- Add entry to
docs/README.md - Update relevant cross-references
- Add to appropriate category
- Edit file in
docs/folder - Update modification date
- Check cross-references still work
- Update
docs/README.mdif needed
- Remove file from
docs/folder - Remove entry from
docs/README.md - Update any cross-references
- Archive if needed (move to
docs/archive/)
- All docs in one place
- Clear categorization
- Easy to find information
- Simple to add new docs
- Easy to update cross-references
- Clear structure for contributors
- Centralized index
- Logical grouping
- Quick access to any doc
- Room for growth
- Flexible categorization
- Can add subdirectories
- Markdown (.md) format
- UTF-8 encoding
- Unix line endings (LF)
- Title (# heading)
- Overview section
- Table of contents (if long)
- Main content
- See Also section
- Footer with version/date
- Clear, concise language
- Code examples with syntax highlighting
- Screenshots where helpful
- Consistent formatting
- Use relative links
- Descriptive link text
- Check links work
- Update when files move
- Moved all
.mdfiles todocs/folder - Created
docs/README.mdindex - Updated main
README.mdreferences - Preserved all content
- File names unchanged
- Content unchanged
- Cross-references within docs work
- All information preserved
- ❌ Old links from root broken (e.g.,
CLI_GUIDE.md) - ✅ New links work (e.g.,
docs/CLI_GUIDE.md) - ✅ Links within docs still work
Find documentation:
ls docs/Search documentation:
grep -r "search term" docs/View documentation index:
cat docs/README.mdAccess specific doc:
# From root
cat docs/CLI_GUIDE.md
# From docs
cd docs && cat CLI_GUIDE.md- Documentation Index - Complete documentation list
- Main README - Project overview
- Configuration - Configuration options
Documentation Structure v1.0 - Organized and Accessible! 📁