inflaton commited on
Commit
b67e38d
1 Parent(s): 25ef847

removed chroma index which is generated from only 1 book

Browse files
data/chromadb_1024_512/chroma-collections.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d0e4364f9a67d91e3185cc597297b8651ca02bdfddb8467767c8a71cbb89d4e
3
- size 557
 
 
 
 
data/chromadb_1024_512/chroma-embeddings.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8b050c60c5fd263355aabc3cc35e6308930cb4b8a1929e7209b6777da0782d59
3
- size 7513430
 
 
 
 
data/chromadb_1024_512/index/id_to_uuid_44a39155-bdc7-450c-8532-01db0e4b66cc.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4eb4fe05362f4052e3af173b0915e9758bb7bc7f9f681850e765cbde35d8783f
3
- size 47652
 
 
 
 
data/chromadb_1024_512/index/index_44a39155-bdc7-450c-8532-01db0e4b66cc.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a26db7cd65749049856321b4aef559a0ffbef7f4286131c1bcd5f5dc4cc3849
3
- size 4743996
 
 
 
 
data/chromadb_1024_512/index/index_metadata_44a39155-bdc7-450c-8532-01db0e4b66cc.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae5e0c780f18efa625dc2d0ad2d60328b51d2842cac144446196e4032e7c2c43
3
- size 105
 
 
 
 
data/chromadb_1024_512/index/uuid_to_id_44a39155-bdc7-450c-8532-01db0e4b66cc.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:49aab2d749c5650688e4b1b566d8773889ca59d92ea2083d04fd5882a626ecc0
3
- size 55737
 
 
 
 
data/questions.txt CHANGED
@@ -1,4 +1,4 @@
1
- What's PCI DSS?
2
- Can you summarize the changes made from PCI DSS version 3.2.1 to version 4.0?
3
- tell me more on new requirements for vulnerability assessments and penetration testing
4
- more on penetration testing
 
1
+ What's AI?
2
+ life in AI era
3
+ machine learning
4
+ generative model
test.py CHANGED
@@ -88,7 +88,6 @@ custom_handler = MyCustomHandler()
88
  qa_chain.init(
89
  custom_handler, n_threds=n_threds, hf_pipeline_device_type=hf_pipeline_device_type
90
  )
91
- qa = qa_chain.get_chain()
92
  end = timer()
93
  print(f"Completed in {end - start:.3f}s")
94
 
@@ -128,7 +127,7 @@ while True:
128
  custom_handler.reset()
129
 
130
  start = timer()
131
- result = qa({"question": query, "chat_history": chat_history})
132
  end = timer()
133
  print(f"Completed in {end - start:.3f}s")
134
 
@@ -142,6 +141,7 @@ while True:
142
  if standalone_question is not None:
143
  print(f"Load relevant documents for standalone question: {standalone_question}")
144
  start = timer()
 
145
  docs = qa.retriever.get_relevant_documents(standalone_question)
146
  end = timer()
147
 
 
88
  qa_chain.init(
89
  custom_handler, n_threds=n_threds, hf_pipeline_device_type=hf_pipeline_device_type
90
  )
 
91
  end = timer()
92
  print(f"Completed in {end - start:.3f}s")
93
 
 
127
  custom_handler.reset()
128
 
129
  start = timer()
130
+ result = qa_chain.call({"question": query, "chat_history": chat_history})
131
  end = timer()
132
  print(f"Completed in {end - start:.3f}s")
133
 
 
141
  if standalone_question is not None:
142
  print(f"Load relevant documents for standalone question: {standalone_question}")
143
  start = timer()
144
+ qa = qa_chain.get_chain()
145
  docs = qa.retriever.get_relevant_documents(standalone_question)
146
  end = timer()
147