prithvirajpawar commited on
Commit
ac85144
·
1 Parent(s): 43577b0

deleted multiple cache files and some modified files

Browse files
Files changed (35) hide show
  1. .DS_Store +0 -0
  2. chroma/.DS_Store +0 -0
  3. chroma/198995c5-3e47-440b-98d8-b095e7b992c3/data_level0.bin +0 -3
  4. chroma/198995c5-3e47-440b-98d8-b095e7b992c3/header.bin +0 -3
  5. chroma/198995c5-3e47-440b-98d8-b095e7b992c3/length.bin +0 -3
  6. chroma/198995c5-3e47-440b-98d8-b095e7b992c3/link_lists.bin +0 -0
  7. chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/data_level0.bin +0 -3
  8. chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/header.bin +0 -3
  9. chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/length.bin +0 -3
  10. chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/link_lists.bin +0 -0
  11. chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/data_level0.bin +0 -3
  12. chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/header.bin +0 -3
  13. chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/length.bin +0 -3
  14. chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/link_lists.bin +0 -0
  15. chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/data_level0.bin +0 -3
  16. chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/header.bin +0 -3
  17. chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/length.bin +0 -3
  18. chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/link_lists.bin +0 -0
  19. chroma/fc83983d-80db-49a4-a6fb-42834cc83377/data_level0.bin +0 -3
  20. chroma/fc83983d-80db-49a4-a6fb-42834cc83377/header.bin +0 -3
  21. chroma/fc83983d-80db-49a4-a6fb-42834cc83377/length.bin +0 -3
  22. chroma/fc83983d-80db-49a4-a6fb-42834cc83377/link_lists.bin +0 -0
  23. chroma/fd3b321e-3bab-4583-88b0-405d918cd938/data_level0.bin +0 -3
  24. chroma/fd3b321e-3bab-4583-88b0-405d918cd938/header.bin +0 -3
  25. chroma/fd3b321e-3bab-4583-88b0-405d918cd938/length.bin +0 -3
  26. chroma/fd3b321e-3bab-4583-88b0-405d918cd938/link_lists.bin +0 -0
  27. chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/data_level0.bin +0 -3
  28. chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/header.bin +0 -3
  29. chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/length.bin +0 -3
  30. chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/link_lists.bin +0 -0
  31. chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/data_level0.bin +0 -3
  32. chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/header.bin +0 -3
  33. chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/length.bin +0 -3
  34. chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/link_lists.bin +0 -0
  35. helpmate_ai.py +3 -17
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
chroma/.DS_Store CHANGED
Binary files a/chroma/.DS_Store and b/chroma/.DS_Store differ
 
chroma/198995c5-3e47-440b-98d8-b095e7b992c3/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d3c9fd302f000d7790aa403c2d0d8fec363fe46f30b07d53020b6e33b22435a9
3
- size 1676000
 
 
 
 
chroma/198995c5-3e47-440b-98d8-b095e7b992c3/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/198995c5-3e47-440b-98d8-b095e7b992c3/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6b8084d9f7913e043f1ebcd06e456f5d571fd8394d9da876cf420ecd973a671f
3
- size 4000
 
 
 
 
chroma/198995c5-3e47-440b-98d8-b095e7b992c3/link_lists.bin DELETED
File without changes
chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8205b87f647f23b8f4460452ac5cfbedfa817774ba1c318aa8109f1724f86ce7
3
- size 1676000
 
 
 
 
chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:06b76cba3959bfe87474b2c0d7355085c5190842788d6f0b9b22671facf8d341
3
- size 4000
 
 
 
 
chroma/ed2d8aa0-0cf3-4a31-b498-d3e7dcdc5566/link_lists.bin DELETED
File without changes
chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d3c9fd302f000d7790aa403c2d0d8fec363fe46f30b07d53020b6e33b22435a9
3
- size 1676000
 
 
 
 
chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:35e2b719ded2660106ef0a6e7cc5cbd492704d7cbb332cc98386c90d4e84aa30
3
- size 4000
 
 
 
 
chroma/f190ba25-fd88-4232-a7dc-2390c45704d4/link_lists.bin DELETED
File without changes
chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d3c9fd302f000d7790aa403c2d0d8fec363fe46f30b07d53020b6e33b22435a9
3
- size 1676000
 
 
 
 
chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:86be761d2a303904d59def5f8ccf5e6c4574cdbeb568a0675301dea1e52a137b
3
- size 4000
 
 
 
 
chroma/f28c5b78-1366-45d0-b9f9-10f0ba9054ed/link_lists.bin DELETED
File without changes
chroma/fc83983d-80db-49a4-a6fb-42834cc83377/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:485cdcf2eecbe50ac5822a13a36ebd375438c46d68e6d9bdb699433cf23ef595
3
- size 1676000
 
 
 
 
chroma/fc83983d-80db-49a4-a6fb-42834cc83377/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/fc83983d-80db-49a4-a6fb-42834cc83377/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fc19b1997119425765295aeab72d76faa6927d4f83985d328c26f20468d6cc76
3
- size 4000
 
 
 
 
chroma/fc83983d-80db-49a4-a6fb-42834cc83377/link_lists.bin DELETED
File without changes
chroma/fd3b321e-3bab-4583-88b0-405d918cd938/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b93d412c384df38f07adeaf81c6ef7036283fa5c5db4fb32d467152d4b2acf08
3
- size 1676000
 
 
 
 
chroma/fd3b321e-3bab-4583-88b0-405d918cd938/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/fd3b321e-3bab-4583-88b0-405d918cd938/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7604482081864f9ca53d019e460d4ba59e7573e18fd3a38e7236864b4fc1cb78
3
- size 4000
 
 
 
 
chroma/fd3b321e-3bab-4583-88b0-405d918cd938/link_lists.bin DELETED
File without changes
chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d01e91f079437520222f51034df61cc054d6dd33b15bc61063cea20dde157d7
3
- size 1676000
 
 
 
 
chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5bc1120cd20faa1fa96577121a592a28d2c01a086f7af19dc13ea8c9a82e718b
3
- size 4000
 
 
 
 
chroma/fd9978b6-a866-4bec-9cea-1215ebeb34e9/link_lists.bin DELETED
File without changes
chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/data_level0.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:49ff7e332456970ddc9126a8c0129209ad0b62c469ebc99af8291a976a7300c0
3
- size 1676000
 
 
 
 
chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/header.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411e
3
- size 100
 
 
 
 
chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/length.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:988459be7b8489fed34996257c4cd17982e5d48dacc56656f165d21655ac98b3
3
- size 4000
 
 
 
 
chroma/ff952c54-2ce3-4bd1-b8d0-3430b4745e3e/link_lists.bin DELETED
File without changes
helpmate_ai.py CHANGED
@@ -1,21 +1,7 @@
1
  # -*- coding: utf-8 -*-
2
- # Install all the required libraries
3
-
4
- # !pip install -U -q pdfplumber tiktoken openai chromaDB sentence-transformers
5
-
6
- # Import all the required Libraries
7
-
8
- # import pdfplumber
9
- # from pathlib import Path
10
  import pandas as pd
11
- # from operator import itemgetter
12
- # import json
13
- # import tiktoken
14
- # import openai
15
  import chromadb
16
 
17
- # openai.api_key = open("api_key.txt", "r").read().strip()
18
-
19
  def initialize_conversation():
20
  """
21
  Generate a response using GPT-3.5's ChatCompletion based on the user query and retrieved information.
@@ -123,8 +109,8 @@ def retreive_results(query):
123
 
124
  # Query the collection against the user query and return the top 10 results
125
  results = insurance_collection.query(
126
- query_texts=query,
127
- n_results=10
128
  )
129
 
130
  # Store the query in cache_collection as document w.r.t to ChromaDB so that it can be embedded and searched against later
@@ -184,7 +170,7 @@ def rerank_with_cross_encoder(query, results_df, top_k=3):
184
 
185
  top_docs = top_ranks_df[["Documents", "Metadatas"]][:top_k]
186
  # top_ranks = top_ranks[:][:top_k]
187
- print(top_docs)
188
 
189
  return top_docs #, top_ranks_df
190
 
 
1
  # -*- coding: utf-8 -*-
 
 
 
 
 
 
 
 
2
  import pandas as pd
 
 
 
 
3
  import chromadb
4
 
 
 
5
  def initialize_conversation():
6
  """
7
  Generate a response using GPT-3.5's ChatCompletion based on the user query and retrieved information.
 
109
 
110
  # Query the collection against the user query and return the top 10 results
111
  results = insurance_collection.query(
112
+ query_texts=query,
113
+ n_results=10
114
  )
115
 
116
  # Store the query in cache_collection as document w.r.t to ChromaDB so that it can be embedded and searched against later
 
170
 
171
  top_docs = top_ranks_df[["Documents", "Metadatas"]][:top_k]
172
  # top_ranks = top_ranks[:][:top_k]
173
+ # print(top_docs)
174
 
175
  return top_docs #, top_ranks_df
176