-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Chroma Resource #91
Conversation
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.
A few comments regarding docstrings + docs but generally looks good
libraries/dagster-contrib-chroma/dagster_contrib_chroma/resource.py
Outdated
Show resolved
Hide resolved
libraries/dagster-contrib-chroma/dagster_contrib_chroma/resource.py
Outdated
Show resolved
Hide resolved
Shortened the documentation - let me know what you think @dpeng817 |
"chroma_local": ChromaResource( | ||
connection_config=LocalConfig(persistence_path="./chroma") | ||
), | ||
"chroma_http": ChromaResource( | ||
connection_config=HttpConfig(host="localhost", port=8000) | ||
) |
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 isn't exactly what I meant; I think a user would probably want to be able to switch configurations without switching resource keys. I meant something like this:
"chroma": ChromaResource(
connection_config=LocalConfig(...) if not os.getenv("USE_CONN") else HttpConfig(...)
)
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.
Updated - how about this option? @dpeng817
f3cc8cd
to
b22fb1f
Compare
Okay looks totally good. Thanks! |
Summary & Motivation
How I Tested These Changes
Changelog
Ensure that an entry has been created in
CHANGELOG.md
outlining additions, deletions, and/or modifications.See: keepachangelog.com