Replies: 3 comments
-
|
Yes, you can build a chatbot for your documentation, but GitHub's Models tab alone isn’t enough. Since GitHub Pages only supports static content, you’ll need to connect it to an external backend (like OpenAI, Hugging Face, or a custom API) that reads your docs and powers the chatbot. Tools like LangChain or LlamaIndex work great for this. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, you can use GitHub Models to create a chatbot for your documentation! Here are a few approaches: Option 1: Direct API IntegrationYou can use the GitHub Models API directly in your documentation site: // Example: Using GitHub Models API
const response = await fetch('https://models.inference.ai.azure.com/chat/completions', {
method: 'POST',
headers: {
'Authorization': `Bearer ${GITHUB_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-4o-mini',
messages: [
{
role: 'system',
content: 'You are a helpful assistant for documentation...'
},
{
role: 'user',
content: userQuestion
}
]
})
});Option 2: GitHub Actions + Static SiteSet up a GitHub Action to:
Option 3: Third-party IntegrationUse services like:
Next StepsTo give you more specific guidance, could you share:
|
Beta Was this translation helpful? Give feedback.
-
|
Hello! the past few days, I had the need to integrate a chatbot with my documentation hosted on GitHub Pages as well. After some research, I discovered that Manifest can be used to manage all that backend logic easily.! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Is it possible to use the GitHub models tab to integrate a chatbot for my documentation? The documentation folder is in a GitHub repository and hosted on GitHub Pages.
Beta Was this translation helpful? Give feedback.
All reactions