Skip to content

Commit cf1cc17

Browse files
committed
Updated LLM prompt to explicitly fetch documentation from given link
1 parent c6b51ca commit cf1cc17

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Layout/mdx/PageHeader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const PageHeader: React.FC<PageHeaderProps> = ({ title, intro }) => {
2626
const [markdownContent, setMarkdownContent] = useState<string | null>(null);
2727

2828
const llmLinks = useMemo(() => {
29-
const prompt = `Tell me more about ${product ? productData[product]?.nav.name : 'Ably'}'s '${page.name}' feature from https://ably.com${page.link}${language ? ` for ${languageInfo[language]?.label}` : ''}`;
29+
const docUrl = `https://ably.com${page.link}.md`;
30+
const prompt = `Fetch the documentation from ${docUrl} and tell me more about ${product ? productData[product]?.nav.name : 'Ably'}'s '${page.name}' feature${language ? ` for ${languageInfo[language]?.label}` : ''}`;
3031
const gptPath = `https://chatgpt.com/?q=${encodeURIComponent(prompt)}`;
3132
const claudePath = `https://claude.ai/new?q=${encodeURIComponent(prompt)}`;
3233

0 commit comments

Comments
 (0)