HonestAnnie commited on
Commit
c18b9d6
1 Parent(s): e59705e

extended database

Browse files
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:8b6c06e4c11d38016590997da38c3506065816f884e75a2f498b008016e58168
3
- size 33048000
 
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:e222624a1b836c1db5c553a0240a9ecefb37863350509708a2cea1ca411410e8
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:a82017908eb8ed7ae974e918151b87a22ff7257069bd738b9d8236fb2ab489ce
3
- size 49338
 
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:685b965a2e18238107bcce0f0d91ced9675ec7e83aa53b928a855e569f7fb9e9
3
- size 8000
 
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:d7255478ff329f1974c35d702b8f0d7475370352172b16527af5d1a9d0883a73
3
- size 61116
 
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:205ce8137b6fe1224e9c6176b609d7bf9faeb7b5697f4b53c9b05bc19599a2ae
3
- size 115668000
 
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:82d2c5ea41ff8bbfa01034e1349b8474937d1ccbd7b1220c6038325779e00d8c
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:48e75c1037e9d488b6a43faa857115b1ae53b2f3c53a55e630943ea6f8ecc2bf
3
- size 178921
 
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:65acdc47339dc8b11ec19f9fb57618a1e4347c47bb3ce49b68a4cba4c7401a0a
3
- size 28000
 
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:11edad573da7940b5a368bb5c77ad96cbabfd2da553c66d609b2b9a6add003e7
3
- size 16976
 
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:d6a9b16016687d388396d462b8e417318533839195eec10bc6b2c0c8f44e1dd8
3
- size 235212800
 
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/Documents/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):
 
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):