-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: improved docs for document/by-id endpoint, added a couple of warnings based on mintlify questions #550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
naman06dev
commented
Nov 2, 2025
…arnings based on mintlify questions:
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Pull Request Review: Documentation Improvements for Document RetrievalSummaryThis PR adds valuable clarifications about document retrieval endpoints and the customId field length limitation. The additions improve developer experience by providing better guidance on when to use direct retrieval vs. semantic search. Strengths
Observations and Suggestions1. Documentation ConsistencyThe new Direct Document Retrieval section appears in search/overview.mdx, but this file already has a section about individual document tracking at line 100-156. Consider whether these sections overlap in purpose and if they should be consolidated or clearly differentiated. 2. Content Accuracy CheckPlease verify that the summary field is always present in the response (or document when it is available) and that the field name matches the actual API response. 3. Link ValidationThe PR references /api-reference/manage-documents/get-document. Since the API Reference is generated from the OpenAPI spec, please verify this path will be generated correctly. 4. customId Length Constraint ContextThe warning about 100 character limit is excellent. Consider also mentioning what happens if you exceed 100 characters and best practices for choosing customId values. RecommendationApprove with minor verification This PR significantly improves the documentation quality. Before merging, please verify the API reference link path is correct, the summary field example matches actual API responses, and the document flow reads naturally. Great work improving the developer experience! |
Pull Request Review - PR #550OverviewThis PR adds helpful documentation improvements for the document retrieval endpoint and clarifies the Code Quality & Best Practices ✅Positive aspects:
Suggestions:
Content & Clarity ✅"Direct Document Retrieval" section (
Track Progress improvements (
customId Warning (
Potential Issues
|
Pull Request ReviewThank you for improving the documentation! This PR adds helpful clarifications for the document/by-id endpoint. Here's my detailed feedback: ✅ Strengths
🐛 Issues Found1. Inconsistent Placeholder Usage (apps/docs/search/overview.mdx:336)curl -X GET "https://api.supermemory.ai/v3/documents/{YOUR-DOCUMENT-ID}" \Issue: Uses Recommendation: Use a consistent example ID like 2. Redundant Information (apps/docs/search/overview.mdx:288-327)The new "Direct Document Retrieval" section duplicates content already covered in Recommendation:
3. Missing Context in Note (apps/docs/search/overview.mdx:323-325)The Note mentions "complete document with all fields" but doesn't explain what users get vs. search results. Recommendation: Clarify the difference: <Note>
This endpoint returns the complete document with all fields including content, metadata, containerTags, summary, and processing status—unlike search endpoints which return only matching chunks. For more details and processing status tracking, see the [API reference](/api-reference/manage-documents/get-document) and [Track Processing Status](/memory-api/track-progress).
</Note>📝 Style & ConventionsBased on the repository's documentation patterns:
🎯 Suggestions for Improvement
🔒 Security & PerformanceNo security concerns or performance issues identified. This is purely documentation. ✅ Test CoverageDocumentation changes don't require tests, but consider:
SummaryThis PR addresses real user needs based on Mintlify questions, which is excellent. The main improvements needed are:
Would you like me to suggest specific edits to address these points? |
PR Review: Documentation Improvements for document/by-id endpoint✅ Positive Aspects1. Excellent Documentation Enhancements
2. Important User Guidance
3. Code Quality
📝 Suggestions for Improvement1. Minor Documentation Consistency In // Consider adding a note about nullable fields
console.log(document.summary); // AI-generated summary (may be null if processing)
console.log(document.status); // Processing status: 'pending' | 'completed' | 'failed'2. Error Handling Examples Consider adding a brief note about error cases (e.g., document not found, invalid ID format): try {
const document = await client.memories.get("doc_abc123");
} catch (error) {
// Handle 404 if document doesn't exist
}3. CustomId Warning Placement The
🔍 Technical ConsiderationsNo Security Concerns: Documentation changes only, no code execution paths affected. No Performance Impact: Static documentation content. No Breaking Changes: Purely additive documentation improvements. 📊 Test CoverageN/A - Documentation changes don't require automated tests, but the code examples should be manually verified to ensure they work as documented. ✅ Final RecommendationAPPROVE - This PR makes meaningful improvements to the documentation that will help users better understand:
The changes align well with the repository's documentation standards and address real user questions (as mentioned in the PR title "based on mintlify questions"). Minor optional enhancements suggested above would add even more value, but the PR is ready to merge as-is. Great work @naman06dev on improving the developer experience! 🎉 |
…arnings based on mintlify questions (#550) Co-authored-by: Naman Bansal <[email protected]>
