docsgpt
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

DocsGPT react widget

This widget will allow you to embed a DocsGPT assistant in your React app.

Installation

npm install  docsgpt

Usage

    import { DocsGPTWidget } from "docsgpt";

    const App = () => {
      return <DocsGPTWidget />;
    };

To link the widget to your api and your documents you can pass parameters to the component.

    import { DocsGPTWidget } from "docsgpt";

    const App = () => {
      return <DocsGPTWidget 
             apiHost = 'http://localhost:7001',
             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.'
             />;
    };

Our github

DocsGPT

You can find the source code in the extensions/react-widget folder.

Package Sidebar

Install

npm i docsgpt

Weekly Downloads

9

Version

0.3.7

License

Apache-2.0

Unpacked Size

108 kB

Total Files

8

Last publish

Collaborators

  • dartpain
  • manishmadan2882