Spaces:
Running
on
Zero
Running
on
Zero
HonestAnnie
commited on
Commit
•
c18b9d6
1
Parent(s):
e59705e
extended database
Browse files- app.py +2 -2
- chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/data_level0.bin +2 -2
- chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → 92610284-6b34-4bb0-a082-40cab22650f8}/header.bin +1 -1
- chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/index_metadata.pickle +2 -2
- chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/length.bin +2 -2
- chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → 92610284-6b34-4bb0-a082-40cab22650f8}/link_lists.bin +2 -2
- chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/data_level0.bin +2 -2
- chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → a02cd065-4382-409b-bda3-b54e59ab007e}/header.bin +1 -1
- chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/index_metadata.pickle +2 -2
- chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/length.bin +2 -2
- chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → a02cd065-4382-409b-bda3-b54e59ab007e}/link_lists.bin +2 -2
- chroma/chroma.sqlite3 +2 -2
- chroma/chroma_setup.py +1 -1
app.py
CHANGED
@@ -7,8 +7,8 @@ import spaces
|
|
7 |
client = chromadb.PersistentClient(path="./chroma")
|
8 |
#collection_de = client.get_collection(name="phil_de")
|
9 |
collection_en = client.get_collection(name="phil_en")
|
10 |
-
#authors_list_de = ["Ludwig Wittgenstein", "Sigmund Freud", "Marcus Aurelius", "Friedrich Nietzsche", "Epiktet", "Ernst Jünger", "Georg Christoph Lichtenberg", "Balthasar Gracian", "Hannah Arendt", "Erich Fromm", "Albert Camus"]
|
11 |
-
authors_list_en = ["Friedrich Nietzsche", "Joscha Bach"]
|
12 |
|
13 |
@spaces.GPU
|
14 |
def get_embeddings(queries, task):
|
|
|
7 |
client = chromadb.PersistentClient(path="./chroma")
|
8 |
#collection_de = client.get_collection(name="phil_de")
|
9 |
collection_en = client.get_collection(name="phil_en")
|
10 |
+
#authors_list_de = ["Epikur", "Ludwig Wittgenstein", "Sigmund Freud", "Marcus Aurelius", "Friedrich Nietzsche", "Epiktet", "Ernst Jünger", "Georg Christoph Lichtenberg", "Balthasar Gracian", "Hannah Arendt", "Erich Fromm", "Albert Camus"]
|
11 |
+
authors_list_en = ["Friedrich Nietzsche", "Joscha Bach", "Hannah Arendt", "Albert Camus", "Mark Fisher"]
|
12 |
|
13 |
@spaces.GPU
|
14 |
def get_embeddings(queries, task):
|
chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/data_level0.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5df8c2eba92ec1bb3748811e0609c10594e57f24f93261f3c837c003e4eee26f
|
3 |
+
size 49572000
|
chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → 92610284-6b34-4bb0-a082-40cab22650f8}/header.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 100
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:399e8ca72a072575f2e0577a39a0831e871fcb0589e115667fc636e20796ef01
|
3 |
size 100
|
chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/index_metadata.pickle
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e1ae484106776f45eda0391127f635d15ab5fb14d1ef1fa97644813fff6320a
|
3 |
+
size 75621
|
chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → 92610284-6b34-4bb0-a082-40cab22650f8}/length.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5284d7d59b308933614ee048ef04af2173ad601e2ed41e11ed727d129e3b3fa8
|
3 |
+
size 12000
|
chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → 92610284-6b34-4bb0-a082-40cab22650f8}/link_lists.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30e9ecd5320643eadde894a4c1c85a4b71e94ee1caaaed3b340835bfe7b4cb90
|
3 |
+
size 25736
|
chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/data_level0.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28583eb3022410ee866e23cb145da2fe86db1b5e90a204d4b4dcfb3999962fe0
|
3 |
+
size 132192000
|
chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → a02cd065-4382-409b-bda3-b54e59ab007e}/header.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 100
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:785a37f4f914cf73827c7169f97290b0d8b9c7a647817d71fe2199dc98a233d0
|
3 |
size 100
|
chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/index_metadata.pickle
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01482b51c2d4e6b20f9de99327efad70b52437911ab3ebbf21dde1b949148055
|
3 |
+
size 204936
|
chroma/{ebcf5942-8f28-4495-ab10-c409d768971d → a02cd065-4382-409b-bda3-b54e59ab007e}/length.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d00402d5923ec09a4b7afbe99238cdd31192480645cf1df6d457a0d1df01b97c
|
3 |
+
size 32000
|
chroma/{f7a71123-4514-4c56-bdf6-bd36ca01c015 → a02cd065-4382-409b-bda3-b54e59ab007e}/link_lists.bin
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8d56bfdcca519d9350821858d59bc26bd84e9d7f5553ac19d855d8d13493bbd
|
3 |
+
size 69060
|
chroma/chroma.sqlite3
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78de482144a6af971d35b56c77b4ba7a4d543043675dfb76cc927cb5b68517fd
|
3 |
+
size 257728512
|
chroma/chroma_setup.py
CHANGED
@@ -13,7 +13,7 @@ def get_metadata(entry, key):
|
|
13 |
return entry.get(key) if entry.get(key) is not None else "Unknown"
|
14 |
|
15 |
# Directory containing the JSON files with pre-computed embeddings
|
16 |
-
json_dir = "/home/johannes/
|
17 |
|
18 |
# Function to load JSON data from a file
|
19 |
def load_json_data(file_path):
|
|
|
13 |
return entry.get(key) if entry.get(key) is not None else "Unknown"
|
14 |
|
15 |
# Directory containing the JSON files with pre-computed embeddings
|
16 |
+
json_dir = "/home/johannes/Desktop/proj/Datenbank/bücher/en/verarbeitet/ready_for_chroma/"
|
17 |
|
18 |
# Function to load JSON data from a file
|
19 |
def load_json_data(file_path):
|