-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkagi.nix
48 lines (42 loc) · 1.06 KB
/
kagi.nix
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
final: prev:
let
inherit (prev) buildPythonPackage fetchPypi;
inherit (prev.lib) licenses maintainers;
in
{
vectordb = buildPythonPackage rec {
pname = "vectordb";
version = "0.1.3";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "${pname}2";
hash = "sha256-ldrYV3SJ8tIE10FeIkCZHCzHwSBbeRnPhCqRRk+dZ+0=";
};
nativeBuildInputs = with prev; [
setuptools
wheel
];
propagatedBuildInputs = with prev; [
faiss
numpy
scikit-learn
scipy
sentence-transformers
spacy
# tensorflow-text
torch
transformers
];
# tests try to load models
doCheck = false;
# import check also attempts to load models
# pythonImportsCheck = [ "vectordb" ];
meta = {
description = "A lightweight Python package for storing and retrieving text using chunking, embedding, and vector search";
homepage = "https://github.com/kagisearch/vectordb";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
}