Skip to content

Conversation

kaixi-wang
Copy link

dependent on voxel51/fiftyone#4029

@kaixi-wang kaixi-wang self-assigned this Jan 22, 2024
from links.query_intent_classifier import classify_query_intent
from links.docs_query_dispatcher import run_docs_query, stream_docs_query
from links.computer_vision_query_dispatcher import (
from voxelgpt.links.query_moderator import moderate_query
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately we can't use this import style here because the voxelgpt.py module is also intended for direct usage via Python, in which case the code is not running as a package.

That said, the changes in this module aren't actually required right? Relative imports should be fine.



from .voxelgpt import ask_voxelgpt_generator
import db
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't the idea of voxel51/fiftyone#4029 that users should adopt this style?

from voxelgpt.voxelgpt import ask_voxelgpt_generator
from voxelgpt import db

where the name of their source folder is treated as the package name

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.

2 participants