You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance internal documentation guide by adding new sections for GitHub integration, including markdown file syncing and advanced filtering options. Update existing documentation for AI-powered query testing to clarify usage and improve user experience.
@@ -187,24 +188,24 @@ Let's add some sample internal documentation to demonstrate the AI capabilities:
187
188
188
189
```json showLineNumbers
189
190
{
190
-
"properties": {
191
-
"content": "# User Authentication API\n\n## Overview\nThis API handles user authentication and authorization for our platform.\n\n## Endpoints\n\n### POST /auth/login\nAuthenticates a user and returns a JWT token.\n\n**Request Body:**\n```json\n{\n\"email\": \"user@example.com\",\n\"password\": \"password123\"\n}\n```\n\n**Response:**\n```json\n{\n\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n\"expires_in\": 3600\n}\n```\n\n### GET /auth/me\nReturns current user information.\n\n**Headers:**\n- `Authorization: Bearer <token>`\n\n**Response:**\n```json\n{\n\"id\": \"user123\",\n\"email\": \"user@example.com\",\n\"name\": \"John Doe\"\n}\n```\n\n## Error Codes\n- `400`: Invalid credentials\n- `401`: Unauthorized\n- `429`: Rate limit exceeded",
"summary": "Complete API documentation for user authentication endpoints",
201
-
"audience": "Engineering",
202
-
"priority": "High"
191
+
"properties": {
192
+
"content": "# User Authentication API\n\n## Overview\nThis API handles user authentication and authorization for our platform.\n\n## Endpoints\n\n### POST /auth/login\nAuthenticates a user and returns a JWT token.\n\n**Request Body:**\n```json\n{\n\"email\": \"user@example.com\",\n\"password\": \"password123\"\n}\n```\n\n**Response:**\n```json\n{\n\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n\"expires_in\": 3600\n}\n```\n\n### GET /auth/me\nReturns current user information.\n\n**Headers:**\n- `Authorization: Bearer <token>`\n\n**Response:**\n```json\n{\n\"id\": \"user123\",\n\"email\": \"user@example.com\",\n\"name\": \"John Doe\"\n}\n```\n\n## Error Codes\n- `400`: Invalid credentials\n- `401`: Unauthorized\n- `429`: Rate limit exceeded",
"summary": "Complete onboarding guide for new developers joining the engineering team",
272
+
"audience": "New Hires",
273
+
"priority": "High"
274
+
},
275
+
"relations": {},
276
+
"icon": "FileText",
277
+
"identifier": "dev-onboarding-guide",
278
+
"title": "New Developer Onboarding Guide"
278
279
}
279
280
```
280
281
</details>
@@ -383,123 +384,86 @@ Set up a webhook to automatically sync documentation from external systems:
383
384
384
385
</TabItem>
385
386
386
-
</Tabs>
387
-
388
-
## Test AI-powered documentation queries
389
-
390
-
Now let's test the AI capabilities with various types of questions. **Key principle**: Keep questions concise when the context is clear, but add specificity when there's potential for ambiguity.
391
-
392
-
<h3> Basic document discovery</h3>
393
-
394
-
**Question**: "What API documentation do we have in our catalog?"
395
-
396
-
**Expected response**: The AI should list all documents with `documentType: "API Documentation"` and provide summaries.
397
-
398
-
**Note**: Without "in our catalog", this question is ambiguous - the AI will search Port's own API documentation (docs.getport.io) instead of your cataloged internal docs.
399
-
400
-
<h3> Ownership and maintenance</h3>
401
-
402
-
**Question**: "Who owns the authentication API documentation?"
387
+
<TabItemvalue="integration">
403
388
404
-
**Expected response**: The AI should identify the owner and provide document details.
389
+
<h3> GitHub Integration for markdown files</h3>
405
390
406
-
**Note**: The context of "authentication API documentation" makes it clear you're asking about cataloged docs, not external documentation.
391
+
Another popular use case is documentation being markdown files in a GitHub repo.
392
+
You can set up a GitHub integration to automatically sync markdown files (excluding README files):
407
393
408
-
<h3> Time-based queries</h3>
394
+
1. Install the [Port GitHub App](https://github.com/apps/getport-io) in your organization.
409
395
410
-
**Question**: "What documentation was updated in the last month in our catalog?"
396
+
2. Go to [data sources](https://app.getport.io/settings/data-sources).
411
397
412
-
**Expected response**: The AI should filter documents by `lastUpdated` date and show recent changes.
398
+
3. Under `Exporters`, click on your GitHub organization.
413
399
414
-
**Note**: Without "in our catalog", this could be ambiguous - the AI might search Port's documentation instead of your cataloged internal docs.
415
-
416
-
<h3> Product-specific queries</h3>
417
-
418
-
**Question**: "Show me all documentation related to the authentication service in our catalog"
419
-
420
-
**Expected response**: The AI should find documents where `product` contains "authentication" or related tags.
421
-
422
-
**Note**: Without "in our catalog", this could be ambiguous - the AI might search Port's documentation about authentication instead of your cataloged docs.
423
-
424
-
<h3> Status and priority queries</h3>
425
-
426
-
**Question**: "What critical documentation needs review in our catalog?"
427
-
428
-
**Expected response**: The AI should find documents with `priority: "Critical"` and `status: "Review"`.
429
-
430
-
**Note**: Without "in our catalog", this could be ambiguous - the AI might search Port's documentation instead of your cataloged internal docs.
431
-
432
-
## Advanced AI prompt techniques
433
-
434
-
Here are some effective ways to get the most out of your documentation AI:
435
-
436
-
<h3> 1. Start concise, add context only when needed:</h3>
437
-
438
-
**✅ Concise (when context is clear):**
439
-
- "Who owns the database docs?" (ownership implies cataloged entities)
440
-
- "Show me troubleshooting guides" (in catalog context, this is clear)
441
-
- "What's the status of our onboarding docs?" (status implies cataloged entities)
442
-
443
-
**✅ Add context when ambiguous with Port docs:**
444
-
- "What API documentation do we have in our catalog?" (vs Port's API docs)
445
-
- "Show me troubleshooting guides in our catalog" (vs Port's troubleshooting docs)
446
-
- "What documentation was updated recently in our catalog?" (vs Port's docs)
447
-
448
-
**❌ Ambiguous (will search Port docs instead):**
449
-
- "What API documentation do we have?" (searches docs.getport.io)
450
-
- "Show me authentication documentation" (searches Port's auth docs)
451
-
- "What's the latest documentation?" (searches Port's docs)
452
-
453
-
<h3> 2. Use specific keywords when needed</h3>
454
-
455
-
**❌ Vague queries:**
456
-
- "Show me docs"
457
-
- "What's available?"
458
-
459
-
**✅ Specific queries:**
460
-
- "Show me all documentation for the authentication service in our catalog"
461
-
- "What documentation was updated this week in our catalog?"
462
-
- "Find critical documentation that needs review in our catalog"
463
-
464
-
<h3> 3. Contextual Queries</h3>
465
-
466
-
Instead of: "Show me the API docs"
467
-
Try: "I'm working on integrating user authentication, what API documentation should I reference in our catalog?"
468
-
469
-
<h3> 4. Comparative Analysis</h3>
470
-
471
-
"Compare the troubleshooting guides for database and authentication issues in our catalog"
472
-
473
-
<h3> 5. Gap Analysis</h3>
474
-
475
-
"What documentation do we have for new developers versus what's missing in our catalog?"
-**"What's the status of..."** - Status implies cataloged entities
499
-
-**"Which team maintains..."** - Team ownership implies cataloged entities
456
+
Try these example queries to test your AI-powered documentation search:
500
457
501
-
**Rule of thumb**: If Port has documentation on the topic, add "in our catalog" to avoid ambiguity.
458
+
- "What API documentation do we have in our catalog?"
459
+
- "Who owns the authentication API documentation?"
460
+
- "What documentation was updated in the last month in our catalog?"
461
+
- "Show me all documentation related to the authentication service in our catalog"
462
+
- "What critical documentation needs review in our catalog?"
502
463
464
+
:::tip AI Response Behavior
465
+
Sometimes, the AI might think you want to query Port technical documentation. In that case, you can instruct it to focus on your internal documentation by adding "in our catalog" or "from our internal documentation" to your prompt to clarify that you're asking about your cataloged entities rather than Port's general documentation.
0 commit comments