Spaces:
Sleeping
Sleeping
updated chroma vectorstre
Browse files- app.py +4 -1
- chroma/chroma-collections.parquet +1 -1
- chroma/chroma-embeddings.parquet +2 -2
- chroma/index/{id_to_uuid_320cffca-6981-46c3-b703-72c0d4684e89.pkl β id_to_uuid_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} +2 -2
- chroma/index/{index_320cffca-6981-46c3-b703-72c0d4684e89.bin β index_f5608a82-d6f9-4213-a954-a3bf82d612d0.bin} +2 -2
- chroma/index/{index_metadata_320cffca-6981-46c3-b703-72c0d4684e89.pkl β index_metadata_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} +1 -1
- chroma/index/{uuid_to_id_320cffca-6981-46c3-b703-72c0d4684e89.pkl β uuid_to_id_f5608a82-d6f9-4213-a954-a3bf82d612d0.pkl} +2 -2
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:
|
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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
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:
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f54d1a8b67d6ed85b66fa64cfd563a46bf79652c54ea9fda0846a38be224d71a
|
3 |
+
size 239010
|