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

private-gpt: init at 0.5.0 #299738

Closed
wants to merge 0 commits into from
Closed

private-gpt: init at 0.5.0 #299738

wants to merge 0 commits into from

Conversation

drupol
Copy link
Contributor

@drupol drupol commented Mar 28, 2024

Should fix: #232681

Status: working

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@drupol drupol marked this pull request as draft March 28, 2024 11:34
@drupol drupol force-pushed the private-gpt/init branch 2 times, most recently from 044f26c to d048315 Compare March 28, 2024 12:55
@drupol drupol force-pushed the private-gpt/init branch 2 times, most recently from 65c283d to 91a0492 Compare March 28, 2024 13:09
@fabaff
Copy link
Member

fabaff commented Mar 28, 2024

#299768 will provide some of the optional-dependencies inputs.

Status: currently broken at runtime:

llama-index is pretty new I started to package the bits and pieces of this eco system only a few weeks back. Thus, there will definitely be missing parts like models, corpora and lexical parts.

@drupol drupol mentioned this pull request Mar 29, 2024
13 tasks
@drupol drupol force-pushed the private-gpt/init branch from 91a0492 to 8951c76 Compare March 29, 2024 16:25
@drupol drupol changed the title private-gpt: init at 0.4.0 private-gpt: init at 0.5.0 Apr 19, 2024
@drupol drupol force-pushed the private-gpt/init branch from 8951c76 to d68e45a Compare April 19, 2024 17:34
Comment on lines 8 to 11
postInstall = ''
makeWrapper ${python3Packages.python.interpreter} $out/bin/private-gpt \
--prefix PYTHONPATH : "$PYTHONPATH" \
--add-flags "-m private_gpt"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think upstream would accept a PR wrapping their uvicorn.run(...) in:

def main():
  ...

if __name__ == "__main__":
  main()

so that you could instead specify ...:main in pyproject.toml's scripts?

It's preferable to avoid setting PYTHONPATH when possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't use python usually and I'm not acquainted with its ecosystem. So the least help is very welcome .

@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Apr 19, 2024
@drupol drupol force-pushed the private-gpt/init branch from d68e45a to 770e778 Compare April 19, 2024 20:20
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Apr 19, 2024
@drupol drupol force-pushed the private-gpt/init branch 3 times, most recently from cd9817b to 9e50be9 Compare April 20, 2024 15:49
@drupol drupol closed this Apr 20, 2024
@drupol drupol force-pushed the private-gpt/init branch from 9e50be9 to 0c97ced Compare April 20, 2024 16:49
@drupol
Copy link
Contributor Author

drupol commented Apr 20, 2024

The work continue on this PR : #305586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: privategpt
3 participants