-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLM tool #224
LLM tool #224
Conversation
packages/lb-components/src/components/LLMToolView/sidebar/components/scoreGroupButton/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerList/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerSort/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/components/answerSort/index.tsx
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/index.tsx
Outdated
Show resolved
Hide resolved
packages/lb-components/src/components/LLMToolView/sidebar/index.tsx
Outdated
Show resolved
Hide resolved
8bbd4ab
to
3d578aa
Compare
3d578aa
to
c83c4b3
Compare
🎉 This PR is included in version 1.17.0-alpha.1 🎉 The release is available on npm package (@alpha dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.13.0-alpha.1 🎉 The release is available on npm package (@alpha dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.9.0-alpha.1 🎉 The release is available on npm package (@alpha dist-tag) Your semantic-release bot 📦🚀 |
const middlePoint = (P1: IPoint, P2: IPoint) => { | ||
return { x: (P1.x + P2.x) / 2, y: (P1.y + P2.y) / 2 }; | ||
}; | ||
const compareDistance = (sourceTagCenterPoint: IPoint, tagVertexPoint: ITagPoints) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
side effect function
@@ -71,39 +72,88 @@ const AnnotatedArea: React.FC<AppProps & IProps> = (props) => { | |||
return <ImageAnnotate {...props} />; | |||
}; | |||
|
|||
const LLMLayout: React.FC<AppProps & IProps> = (props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebuild as single file
result: JSON.stringify(LLMToolResult.step_1.result.map((item) => i + 1 + item.answer)), | ||
questionList: { | ||
...LLMToolQa, | ||
question: `第${i + 1}页-${LLMToolQa.question}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need i18n
@@ -45,16 +47,30 @@ const App = () => { | |||
}); | |||
} | |||
|
|||
if(EToolName.LLM===tool){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
|
||
const langNode = ( | ||
const langNode = !isLLMTool && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not implement like this
@@ -180,7 +182,7 @@ const ToolHeader: React.FC<IToolHeaderProps> = ({ | |||
|
|||
const rightActions = ( | |||
<> | |||
<PredictTrackingIcon /> | |||
{!isLLMTool && <PredictTrackingIcon />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lihqi Update this implement
🎉 This PR is included in version 1.9.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
No description provided.