Skip to content

Commit

Permalink
first draft of the new description for Knowledge and Skills
Browse files Browse the repository at this point in the history
Signed-off-by: Ash Evans <[email protected]>
  • Loading branch information
aevo98765 committed Jul 7, 2024
1 parent deea070 commit 7dbda5a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/components/Contribute/Knowledge/KnowledgeDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { Button } from '@patternfly/react-core/dist/dynamic/components/Button';
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/dynamic/icons/external-link-alt-icon';

const KnowledgeDescription = () => {
const KnowledgeDescription: React.FunctionComponent = () => {
return (
<div>
<p>
Expand Down
25 changes: 12 additions & 13 deletions src/components/Contribute/Knowledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useSession } from 'next-auth/react';
import YamlCodeModal from '../../YamlCodeModal';
import { UploadFile } from './UploadFile';
import { SchemaVersion } from '@/types';
import KnowledgeDescription from './KnowledgeDescription';

export const KnowledgeForm: React.FunctionComponent = () => {
const { data: session } = useSession();
Expand Down Expand Up @@ -420,19 +421,17 @@ Creator names: ${creators}
</Button>
</div>

<div>
<p>
Knowledge in InstructLab is represented by question and answer pairs that involve facts, data, or references. This knowledge is represented
in the taxonomy tree and each node of this tree contains a qna.yaml file.
</p>
<div>
<a href="https://github.com/instructlab/taxonomy/blob/main/README.md#getting-started-with-knowledge-contributions" target="_blank">
<Button variant="plain" aria-label="Learn more about what InstructLab Knowledge is">
Learn More
</Button>
</a>
</div>
</div>
<FormFieldGroupExpandable
toggleAriaLabel="Details"
header={
<FormFieldGroupHeader
titleText={{ text: 'Knowledge Description', id: 'knowledge-description' }}
titleDescription="What is InstructLab Knowledge?"
/>
}
>
<KnowledgeDescription />
</FormFieldGroupExpandable>

<FormFieldGroupExpandable
isExpanded
Expand Down
8 changes: 4 additions & 4 deletions src/components/Contribute/Skill/SkillDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import { Button } from '@patternfly/react-core/dist/dynamic/components/Button';
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/dynamic/icons/external-link-alt-icon';

const SkillDescription = () => {
const SkillDescription: React.FunctionComponent = () => {
return (
<div>
<p>Skills in InstructLab come in two main types:</p>
<p>
1) Compositional Skills - These are skills that are performative and you are teaching the model how to do tasks like "write me a song" or
"summarize an email".
1) Compositional Skills - These are skills that are performative and you are teaching the model how to do tasks like &quot;write me a
song&quot; or &quot;summarize an email&quot;.
</p>
<p>2) Core Skills - Core skills are foudational like math, reasoning and coding.</p>
<div>
Expand Down
14 changes: 14 additions & 0 deletions src/components/Contribute/Skill/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { getGitHubUsername } from '../../../utils/github';
import { useSession } from 'next-auth/react';
import YamlCodeModal from '../../YamlCodeModal';
import { SchemaVersion } from '@/types';
import SkillDescription from './SkillDescription';

export const SkillForm: React.FunctionComponent = () => {
const { data: session } = useSession();
Expand Down Expand Up @@ -342,6 +343,19 @@ export const SkillForm: React.FunctionComponent = () => {
<CodeIcon /> View YAML
</Button>
</div>

<FormFieldGroupExpandable
toggleAriaLabel="Details"
header={
<FormFieldGroupHeader
titleText={{ text: 'Skills Description', id: 'skills-description' }}
titleDescription="What are InstructLab Skills?"
/>
}
>
<SkillDescription />
</FormFieldGroupExpandable>

<FormFieldGroupExpandable
isExpanded
toggleAriaLabel="Details"
Expand Down

0 comments on commit 7dbda5a

Please sign in to comment.