DocsGPT 🦖 is an innovative open-source tool designed to simplify the retrieval of information from project documentation using advanced GPT models 🤖.
npm install docsgpt-botThis widget will allow you to embed a DocsGPT assistant in your React app.
``bash`
npm install docsgpt
`javascript
import { DocsGPTWidget } from "docsgpt";
const App = () => {
return
};
`
To link the widget to your api and your documents you can pass parameters to the
`javascript
import { DocsGPTWidget } from "docsgpt";
const App = () => {
return
selectDocs = 'default',
apiKey = '',
avatar = 'https://d3dg1063dc54p9.cloudfront.net/cute-docsgpt.png',
title = 'Get AI assistance',
description = 'DocsGPT\'s AI Chatbot is here to help',
heroTitle = 'Welcome to DocsGPT !',
heroDescription='This chatbot is built with DocsGPT and utilises GenAI, please review important information using sources.'
/>;
};
`
`html`
To link the widget to your api and your documents you can pass parameters to the renderDocsGPTWidget('div id', { parameters }).
`html``
You can find the source code in the extensions/react-widget folder.