Carlos Salgado commited on
Commit
bc7bea5
1 Parent(s): 5876325
Files changed (3) hide show
  1. flake.lock +27 -0
  2. flake.nix +0 -1
  3. flake.nix +40 -0
flake.lock ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nodes": {
3
+ "nixpkgs": {
4
+ "locked": {
5
+ "lastModified": 1713248628,
6
+ "narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=",
7
+ "owner": "nixos",
8
+ "repo": "nixpkgs",
9
+ "rev": "5672bc9dbf9d88246ddab5ac454e82318d094bb8",
10
+ "type": "github"
11
+ },
12
+ "original": {
13
+ "owner": "nixos",
14
+ "ref": "nixos-unstable",
15
+ "repo": "nixpkgs",
16
+ "type": "github"
17
+ }
18
+ },
19
+ "root": {
20
+ "inputs": {
21
+ "nixpkgs": "nixpkgs"
22
+ }
23
+ }
24
+ },
25
+ "root": "root",
26
+ "version": 7
27
+ }
flake.nix DELETED
@@ -1 +0,0 @@
1
- /home/salgadev/code/dev-flakes/templates/langchain-rag/flake.nix
 
 
flake.nix ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ description = "A LLM backend development flake powered by unstructured and langchain";
3
+
4
+ inputs = {
5
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6
+ };
7
+
8
+ outputs = {nixpkgs, ...}: let
9
+ system = "x86_64-linux";
10
+ # ↑ Swap it for your system if needed
11
+ # "aarch64-linux" / "x86_64-darwin" / "aarch64-darwin"
12
+ pkgs = nixpkgs.legacyPackages.${system};
13
+ in {
14
+ devShells.${system}.default = pkgs.mkShell {
15
+ packages = [
16
+ (pkgs.python311.withPackages (python-pkgs: [
17
+ python-pkgs.numpy
18
+ python-pkgs.pandas
19
+ python-pkgs.scipy
20
+ python-pkgs.matplotlib
21
+ python-pkgs.requests
22
+ python-pkgs.langchain-community
23
+ python-pkgs.langchain-text-splitters
24
+ python-pkgs.unstructured
25
+ python-pkgs.openai
26
+ python-pkgs.pydantic
27
+ python-pkgs.python-dotenv
28
+ python-pkgs.configargparse
29
+ python-pkgs.streamlit
30
+ pkgs.unstructured-api
31
+ ]))
32
+ ];
33
+
34
+ shellHook = ''
35
+ venv="$(cd $(dirname $(which python)); cd ..; pwd)"
36
+ ln -Tsf "$venv" .venv
37
+ '';
38
+ };
39
+ };
40
+ }