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

Vector Data visualize for Chat Data #2172

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

GITHUBear
Copy link
Contributor

Description

Support chat data to visualize vector data:

  1. Solve the NullType issue when OceanBase is used as the target database for chat data with vector tables
  2. Use PCA to visualize vector data
image

How Has This Been Tested?

  • Chat Data with OceanBase
  • make test
  • make mypy

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
@Aries-ckt
Copy link
Collaborator

Aries-ckt commented Dec 11, 2024

meet some error when parse_vector_data_with_pca.
sample vector num =1
image

Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
@GITHUBear
Copy link
Contributor Author

Fix the error raised in parse_vector_data_with_pca, and enhance it with following test cases:

  1. A vector table without vector rows -> 2d-scatter-plot will not be generated:
image
  1. A table with 1d-vector (aka. scalar) -> 2d-scatter-plot will not be generated:
image
  1. A table with 2d-vector, while only one record exists -> 2d-scatter-plot will not be generated:
image
  1. A table with 2d-vector, and more than one records exist -> 2d-scatter-plot will be generated:
image

@Aries-ckt
Copy link
Collaborator

Test Success
image

Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@csunny csunny left a comment

Choose a reason for hiding this comment

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

r+

@csunny csunny merged commit ed96b95 into eosphoros-ai:main Dec 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants