Skip to content

Demo knowledge base to test GitHub Copilot Enterprise's knowledge base feature

License

Notifications You must be signed in to change notification settings

timothywarner-org/demokb

Repository files navigation

Timothy Warner Organization (TWORG) Knowledge Base

Welcome to the Timothy Warner Organization (TWORG) Knowledge Base! This repository serves as a demo knowledge base to showcase GitHub Copilot's enterprise features, particularly its ability to answer questions about your organization's documentation.

References

📚 New to GitHub Knowledge Bases? Check out the official GitHub documentation on managing Copilot knowledge bases to learn more about this powerful feature.

Quick Start

  1. Clone this repository:
git clone https://github.com/YOUR_ORG/tworg-kb.git
cd tworg-kb
  1. Add this repository to your organization's GitHub Copilot knowledge base settings:
    • Go to your organization settings
    • Navigate to GitHub Copilot
    • Under "Knowledge Base", click "Add Repository"
    • Select this repository
    • Click "Save"

Sample Copilot Queries

Try these queries in VS Code by typing @github #kb followed by your question. Here are some examples organized by topic:

Architecture & Design

  • "@github #kb How should I structure a new microservice at TWORG?"
  • "@github #kb What's our standard for implementing event-driven architecture?"
  • "@github #kb Show me an example of our API design patterns"
  • "@github #kb What monitoring practices should I implement for a new service?"

Security & Compliance

  • "@github #kb How do we handle JWT authentication?"
  • "@github #kb What are our data retention policies?"
  • "@github #kb Show me how to implement field-level encryption"
  • "@github #kb What security headers should I add to my API?"
  • "@github #kb How do we implement audit logging?"

Development Practices

  • "@github #kb What's our standard for error handling?"
  • "@github #kb How should I structure integration tests?"
  • "@github #kb What's our database query optimization approach?"
  • "@github #kb Show me how to implement proper input validation"
  • "@github #kb What's our logging format?"

Code Review & Quality

  • "@github #kb What's the pull request size limit?"
  • "@github #kb Show me the code review checklist"
  • "@github #kb How do I give constructive feedback in reviews?"
  • "@github #kb What are our TypeScript naming conventions?"
  • "@github #kb What documentation is required for new code?"

Infrastructure & DevOps

  • "@github #kb How do we structure Terraform modules?"
  • "@github #kb Show me our Docker best practices"
  • "@github #kb What's our Kubernetes deployment strategy?"
  • "@github #kb How do we handle secrets in our infrastructure?"

Documentation Structure

1. Architecture & Design

2. Security & Compliance

3. Development Standards

Debug Mode Features

When using this knowledge base with Copilot, you'll see enhanced debugging information:

Query Analysis

// Example debug output
{
  query: "How do we handle JWT authentication?",
  confidence: 0.95,
  matchedDocuments: [
    {
      file: "security-guidelines.md",
      section: "Authentication & Authorization",
      relevance: 0.98
    }
  ],
  suggestedFollowUp: [
    "How do we implement OAuth2?",
    "What are our token expiration policies?"
  ]
}

Response Tracing

// Example trace output
{
  processingSteps: [
    {
      step: "Document Search",
      duration: "45ms",
      matches: 3
    },
    {
      step: "Context Analysis",
      duration: "62ms",
      relevanceScore: 0.89
    },
    {
      step: "Response Generation",
      duration: "156ms",
      confidenceScore: 0.95
    }
  ]
}

Using This Template

1. Customization

Fork this repository and customize it for your organization:

# Clone the repository
git clone https://github.com/YOUR_ORG/tworg-kb.git

# Create a new branch for customization
git checkout -b customize-for-my-org

# Make your changes
# - Update email addresses
# - Modify coding standards
# - Adjust compliance requirements
# - Add organization-specific guidelines

# Commit and push changes
git commit -m "Customize knowledge base for our organization"
git push origin customize-for-my-org

2. Integration

Set up the knowledge base in your organization:

  1. GitHub Organization Settings:

    • Enable GitHub Copilot Enterprise
    • Add this repository to knowledge bases
    • Configure access permissions
  2. IDE Setup:

    • Install GitHub Copilot extension
    • Configure authentication
    • Test with sample queries
  3. Team Onboarding:

    • Share documentation structure
    • Demonstrate query patterns
    • Encourage feedback and contributions

Contributing

1. Adding New Guidelines

# Create a new guideline document
touch docs/new-guideline.md

# Use the template structure:
# - Clear headings
# - Code examples
# - Best practices
# - Common pitfalls
# - Implementation patterns

2. Updating Existing Content

  • Follow the established format
  • Include practical examples
  • Add debug information
  • Update relevant queries

3. Review Process

  1. Create a feature branch
  2. Make your changes
  3. Add debug annotations
  4. Submit a pull request
  5. Address review feedback

Support

Technical Support

Documentation

Community

  • Slack: #tworg-kb-help
  • Forums: forum.tworg.com
  • Office Hours: Every Tuesday 2-4pm EST

About

Demo knowledge base to test GitHub Copilot Enterprise's knowledge base feature

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published