Spaces:
Sleeping
Sleeping
File size: 1,693 Bytes
bc7bea5 bbe64b5 bc7bea5 cddfafa bc7bea5 cddfafa bbe64b5 bc7bea5 cddfafa bc7bea5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
{
description = "A LLM backend development flake powered by unstructured and langchain";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
# ↑ Swap it for your system if needed
# "aarch64-linux" / "x86_64-darwin" / "aarch64-darwin"
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
packages = [
(pkgs.python311.withPackages (python-pkgs: [
python-pkgs.pip # VsCode starts
python-pkgs.jupyter
python-pkgs.notebook # VsCode ends
python-pkgs.numpy
python-pkgs.pandas
python-pkgs.scipy
python-pkgs.matplotlib
python-pkgs.requests
python-pkgs.langchain-community
python-pkgs.langchain
python-pkgs.langchain-text-splitters
python-pkgs.unstructured
python-pkgs.wrapt # unstructured[local-inference] starts
python-pkgs.iso-639
python-pkgs.emoji
python-pkgs.pillow-heif
python-pkgs.magic
python-pkgs.poppler-qt5
python-pkgs.pytesseract
python-pkgs.langdetect # unstructured[local-inference] ends
python-pkgs.openai
python-pkgs.pydantic
python-pkgs.python-dotenv
python-pkgs.configargparse
python-pkgs.streamlit
python-pkgs.lark
python-pkgs.sentence-transformers
pkgs.unstructured-api
]))
];
shellHook = ''
venv="$(cd $(dirname $(which python)); cd ..; pwd)"
ln -Tsf "$venv" .venv
'';
};
};
}
|