Skip to content
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

Merged
merged 28 commits into from
Jul 4, 2023
Merged

LLM tool #224

merged 28 commits into from
Jul 4, 2023

Conversation

lixinghua123
Copy link
Collaborator

No description provided.

@lixinghua123 lixinghua123 changed the title Llm lixinghua LLM tool Jun 8, 2023
@lixinghua123 lixinghua123 force-pushed the LLM-lixinghua branch 2 times, most recently from 8bbd4ab to 3d578aa Compare July 3, 2023 12:21
@Kerwin-L Kerwin-L merged commit 34e6539 into open-mmlab:dev Jul 4, 2023
1 check passed
@Kerwin-L
Copy link
Collaborator

Kerwin-L commented Jul 4, 2023

🎉 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 📦🚀

@Kerwin-L
Copy link
Collaborator

Kerwin-L commented Jul 4, 2023

🎉 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 📦🚀

@Kerwin-L
Copy link
Collaborator

Kerwin-L commented Jul 4, 2023

🎉 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) => {
Copy link
Collaborator

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) => {
Copy link
Collaborator

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}`,
Copy link
Collaborator

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){
Copy link
Collaborator

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 && (
Copy link
Collaborator

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 />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@lihqi Update this implement

@Kerwin-L
Copy link
Collaborator

🎉 This PR is included in version 1.9.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@Kerwin-L
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@lixinghua123 lixinghua123 deleted the LLM-lixinghua branch November 30, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants