Carto-RSE / session.py
cdupland
Add prompts, rag on session + RAG and Prompt
d9e40cd
raw
history blame
287 Bytes
import streamlit as st
def get_rag():
if 'vectorstore' in st.session_state and 'chain' in st.session_state:
vectorstore = st.session_state['vectorstore']
chain = st.session_state['chain']
return vectorstore, chain
else:
return None, None