ibagur commited on
Commit
36abd6d
β€’
1 Parent(s): 32cb5c8

updated chroma vectorstre

Browse files
app.py CHANGED
@@ -33,7 +33,8 @@ qa = RetrievalQAWithSourcesChain.from_chain_type(
33
  llm=llm,
34
  chain_type="stuff",
35
  retriever=vectorstore.as_retriever(),
36
- return_source_documents=True
 
37
  )
38
 
39
  # Define tools
@@ -57,6 +58,8 @@ tools = [
57
  # Create Buffer Memory
58
  memory = ConversationBufferMemory(memory_key="chat_history", input_key='input', output_key="output", return_messages=True)
59
 
 
 
60
  # Initialize Re-Act agent and create Agent Executor Chain
61
  react = initialize_agent(tools, llm, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, max_iterations=3, early_stopping_method='generate', memory=memory)
62
 
 
33
  llm=llm,
34
  chain_type="stuff",
35
  retriever=vectorstore.as_retriever(),
36
+ return_source_documents=True,
37
+ max_tokens_limit=4000
38
  )
39
 
40
  # Define tools
 
58
  # Create Buffer Memory
59
  memory = ConversationBufferMemory(memory_key="chat_history", input_key='input', output_key="output", return_messages=True)
60
 
61
+ #memory = ConversationSummaryBufferMemory(llm=llm, memory_key="chat_history", input_key='input', output_key="output", return_messages=True)
62
+
63
  # Initialize Re-Act agent and create Agent Executor Chain
64
  react = initialize_agent(tools, llm, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, max_iterations=3, early_stopping_method='generate', memory=memory)
65
 
chroma/chroma-collections.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d7228380c42871e39b171eac35ab9b0a90c15fd30819ceaeb724295ac0a6c4a3
3
  size 557
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de52fe208430b930b22cbeaebe00b673264a664d606f554997ff5c25a4d129a
3
  size 557
chroma/chroma-embeddings.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:51a80b6e866058ffa4ba11cb462f3791218919b2eecbbf5645dd3e31f03bcc53
3
- size 65714288
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48c88cee31a1b905e51b7c06c124b2969f9aa35b96ca3bc11f751994bf70aa27
3
+ size 78952681
chroma/index/{id_to_uuid_320cffca-6981-46c3-b703-72c0d4684e89.pkl β†’ id_to_uuid_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a5ecc051c898ee8360beecc109fb57716ec0482af72c8fc87e9d9d2550e1c97
3
- size 169878
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a02898bfb2103e2944eb25dbcf7ddb6984bf879927a3c9557bd70ecac0399a21
3
+ size 204443
chroma/index/{index_320cffca-6981-46c3-b703-72c0d4684e89.bin β†’ index_f5608a82-d6f9-4213-a954-a3bf82d612d0.bin} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:80e0bb413aff50c58d6be3120fc2c0adc20d49aa958c49bbb8abec4d26beb6f4
3
- size 32942120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b427d330c90437d2bf60c8d7041e8ae2ae90b7fa884f63e835b54e64ce3af723
3
+ size 39612568
chroma/index/{index_metadata_320cffca-6981-46c3-b703-72c0d4684e89.pkl β†’ index_metadata_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4991895440d178613fbcec75b32fcb54ecc179a40674d3e4cfd53653fde4843a
3
  size 105
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce996d3d5c73f933da6048a4221ed3fd76694fd290e5df5a0ff8aa91a2308441
3
  size 105
chroma/index/{uuid_to_id_320cffca-6981-46c3-b703-72c0d4684e89.pkl β†’ uuid_to_id_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2dd348b0ae8651631d7e42489b386f07115738a77cc88c17caff13cd591b6ab0
3
- size 198728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f54d1a8b67d6ed85b66fa64cfd563a46bf79652c54ea9fda0846a38be224d71a
3
+ size 239010