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

docs: Add a readme for the pgai docs. #307

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Conversation

billy-the-fish
Copy link
Contributor

No description provided.

@billy-the-fish billy-the-fish requested a review from a team as a code owner December 16, 2024 11:52
docs/README.md Outdated Show resolved Hide resolved
docs/README.md Outdated Show resolved Hide resolved
docs/README.md Outdated Show resolved Hide resolved
docs/README.md Outdated
Simplifies data storage and retrieval for AI apps.

- **Get started**:
* [Install pgai with Docker](/docs/install_docker.md): run pgai in a container environment.
Copy link
Collaborator

Choose a reason for hiding this comment

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

these installation guides apply across vectorizer and model calling. They should be in a separate top-level install section

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dunnnnn

docs/README.md Outdated

- **Get started**:
* [Install pgai with Docker](/docs/install_docker.md): run pgai in a container environment.
* [Setup pgai with Anthropic](/docs/anthropic.md): configure pgai to connect to your Anthropic account.
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you just copy over the table we have on the front page? I think the table is easier to understand... unless we need this for SEO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dunnnnnn

JamesGuthrie and others added 24 commits December 20, 2024 15:21
The build started failing with the following error message:

```
Checking ./dist/pgai-0.3.0-py3-none-any.whl: ERROR    InvalidDistribution: Metadata is missing required fields: Name,
         Version.
         Make sure the distribution includes the files where those fields are
         specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2,
         2.0, 2.1, 2.2, 2.3.
```

This error comes from `twine check dist/*`. It is caused by the fact
that `hatchling`, which we use to build wheels, released a new version
which bumped the `Metadata-Version` field to `2.4`, and twine/pkginfo
aren't able to process this version.

By pinning `hatchling` to 1.26.3, the previous release, we solve this
immediate problem, and avoid new breakage from future hatchling
releases.
We would like to support uv in an opt-in fashion. The `build.py install`
now uses uv if it is available, otherwise falling back to pip. To use
uv, we now install it in our dev containers.
We install the dependencies for an extension version in a specific path
for that version alone. When one of our plpython3u functions is called,
we set up the python path to include these dependencies.

For the very first extension releases, we didn't do it this way.
Instead, the dependencies were installed into the system python's path.
As a result, we were inadvertently using _both_ packages installed for
the system python, and the packages installed for the specific extension
version. When the same package is installed in both, the system python
version is chosen first. This breaks Python's assumptions about
dependency resolution, and can break installed packages.

This change removes the system python dependencies from the python path,
so only the actual dependencies we wanted are available.
Bizarrely if you configure but don't use the pip cache, the
setup-python action fails in its "post" step.

See: actions/setup-python#436
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.

7 participants