Commit
·
05dd806
1
Parent(s):
ac7b7de
add postgres
Browse files- .env copy → .env.sample +0 -0
- app.py +2 -2
.env copy → .env.sample
RENAMED
File without changes
|
app.py
CHANGED
@@ -42,8 +42,8 @@ def main():
|
|
42 |
if "vectorstore" not in st.session_state:
|
43 |
collection_name="fy2024_chunk_2000"
|
44 |
pinecone_collection_name="fy2024"
|
45 |
-
st.session_state.vectorstore = get_vectorstore_from_postgres(collection_name)
|
46 |
-
|
47 |
|
48 |
if "chain" not in st.session_state:
|
49 |
st.session_state.chain = prepare_prompt_and_chain_with_history()
|
|
|
42 |
if "vectorstore" not in st.session_state:
|
43 |
collection_name="fy2024_chunk_2000"
|
44 |
pinecone_collection_name="fy2024"
|
45 |
+
#st.session_state.vectorstore = get_vectorstore_from_postgres(collection_name)
|
46 |
+
st.session_state.vectorstore = get_vectorstore_from_pinecone(pinecone_collection_name)
|
47 |
|
48 |
if "chain" not in st.session_state:
|
49 |
st.session_state.chain = prepare_prompt_and_chain_with_history()
|