Spaces:
Sleeping
Sleeping
File size: 1,338 Bytes
bc7bea5 cddfafa bc7bea5 cddfafa 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 |
{
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.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.openai
python-pkgs.pydantic
python-pkgs.python-dotenv
python-pkgs.configargparse
python-pkgs.streamlit
python-pkgs.pip
python-pkgs.lark
python-pkgs.jupyter
python-pkgs.notebook
python-pkgs.sentence-transformers
pkgs.unstructured-api
]))
];
shellHook = ''
venv="$(cd $(dirname $(which python)); cd ..; pwd)"
ln -Tsf "$venv" .venv
'';
};
};
}
|