Skip to content

CRDCDH-3398 Created ChatBot prototype#932

Open
Alejandro-Vega wants to merge 125 commits into3.6.0from
CRDCDH-3398
Open

CRDCDH-3398 Created ChatBot prototype#932
Alejandro-Vega wants to merge 125 commits into3.6.0from
CRDCDH-3398

Conversation

@Alejandro-Vega
Copy link
Contributor

Overview

Created the knowledge-base ChatBot to answer general CRDCDH related questions.

Change Details (Specifics)

  • Added 2 new env variables VITE_CHATBOT_ENABLED and VITE_KNOWLEDGE_BASE_URL to allow for disabling and configuring endpoint URL
  • Added remark-gfm dep to extend react-markdown capabilities
  • The ChatBot feature comes in 2 views: the floating button appearing on the side of the screen, and the drawer which is where the user can communicate with the bot
  • Added several contexts for managing the different states of the chatbot such as conversation, metadata, and drawer state
  • The knowledge-base URL defaults to a hardcoded value and the chatbot is enabled by default
  • Added test coverage to each component
  • Added storybook support to some components, will need to add further support to the remaining components in the future

Related Ticket(s)

CRDCDH-3398 (Task)
CRDCDH-3239 (US)

Copy link
Contributor

@amattu2 amattu2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting this before I forget – We need to update the Nginx.mdx documentation and add the chatbot proxy_pass.

e.g.

        # Chatbot Backend
        location = /api/chat {
            # proxy_pass http://localhost:3000/;
            # proxy_pass "https://hub-dev.datacommons.cancer.gov/api/chat";
            proxy_pass "https://hub-dev2.datacommons.cancer.gov/api/chat";
        }
        location /api/chat/ {
            # proxy_pass http://localhost:3000/;
            # proxy_pass "https://hub-dev.datacommons.cancer.gov/";
            proxy_pass "https://hub-dev2.datacommons.cancer.gov/";
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 Do Not Merge This PR is not ready for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants