-
Notifications
You must be signed in to change notification settings - Fork 276
chore: split deps into separate extras #800
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
Conversation
docs/semantic_catalog/quickstart.md
Outdated
@@ -92,7 +92,7 @@ Once the semantic catalog is loaded with embedded descriptions, you start genera | |||
```bash | |||
git clone https://github.com/timescale/pgai.git -b jgpruitt/semantic-catalog | |||
cd pgai/projects/pgai | |||
uv sync | |||
uv sync --all-extras |
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.
do you need all extras?
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.
nah you're right just semantic-catalog is enough.
cb8cbed
to
20d13fa
Compare
20d13fa
to
f26c831
Compare
I like the change so far. |
f26c831
to
e996bc1
Compare
@smoya @JamesGuthrie Do you think we should proceed with this? If yes, what is missing? |
Happy proceeding 👍 |
This splits the worker and semantic-catalog into 2 separate extras. This setup would allow to install pgai via
pip install pgai
and use it to install all the SQL viapgai install -d ...
If then you try to run
pgai vectorizer worker
you'll get an error:Same for any semantic catalog command.
The error messages use rich and tiktoken to decide if the extra was installed, since it is non-trivial/not cleanly possible to determine if an extra is installed, pip doesn't really store this metadata.
Note: This PR does unintentionally update a bunch of dependencies. I don't really know how to prevent that since uv doesn't have a command to move an existing dependency between extras. Since tests still pass I think we are fine though.