This project represents the react package for interacting with the the Ask Lightcast LLMs.
Instructions will be added for installing this package from a private GitLab repository...
Basic usage:
import React from 'react';
import Chat from 'whatever-our-url-is'
const Page: FC = () => {
const { conversationIds, userJwt } = useGetUserProfile();
const [currentConversationId, setCurrConversationId] = React.useState<string | undefined>(undefined);
return (
<Chat
conversationId={conversationId}
onNewChatCreation={async (id) => {
await addConversationToProfile(id)
setCurrConversationId(id);
}}
jwt={userJwt}
validModules={['snowflake', 'knowledge_base']}
/>)
}
Notes on development
Provide a slack channel for this (e.g. #ask-lightcast-support)
Show your appreciation to those who have contributed to the project.