Fangrui Liu commited on
Commit
c5b06e8
β€’
1 Parent(s): 505abaf

update landing page

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +6 -0
  2. chat.py +8 -9
.streamlit/config.toml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [theme]
2
+ primaryColor="#523EFD"
3
+ backgroundColor="#FFFFFF"
4
+ secondaryBackgroundColor="#D4CEFF"
5
+ textColor="#262730"
6
+ font="sans serif"
chat.py CHANGED
@@ -40,27 +40,26 @@ def login():
40
  if "user_name" in st.session_state or ("jump_query_ask" in st.session_state and st.session_state.jump_query_ask):
41
  return True
42
  st.subheader("πŸ€— Welcom to [MyScale](https://myscale.com)'s [ChatData](https://github.com/myscale/ChatData)! πŸ€— ")
43
- st.write("You can now chat with ArXiv and Wikipedia! You can also try to build your RAG system with those knowledge base via [our public read-only credentials!](https://github.com/myscale/ChatData#data-schema) 🌟\n")
44
- st.write("Built purely with streamlit πŸ‘‘ , LangChain πŸ¦œπŸ”— and love for AI!")
45
  st.write("Follow us on [Twitter](https://x.com/myscaledb) and [Discord](https://discord.gg/D2qpkqc4Jq)!")
 
46
  st.divider()
47
  col1, col2 = st.columns(2, gap='large')
48
  with col1.container():
49
  st.write("Try out MyScale's Self-query and Vector SQL retrievers!")
50
  st.write("In this demo, you will be able to see how those retrievers "
51
  "**digest** -> **translate** -> **retrieve** -> **answer** to your question!")
52
- st.write("It is a step-by-step tour to understand RAG pipeline.")
53
  st.session_state["jump_query_ask"] = st.button("Query / Ask")
54
  with col2.container():
55
- st.warning("To use chat, please jump to [https://myscale-chatdata.hf.space](https://myscale-chatdata.hf.space)")
56
- st.info("We used [Auth0](https://auth0.com) as our identity provider. "
57
- "We will **NOT** collect any of your conversation in any form for any purpose.")
58
  st.write("Now with the power of LangChain's Conversantional Agents, we are able to build "
59
- "conversational chatbot with RAG! The agent will decide when and what to retrieve "
60
- "based on your question!")
61
- st.write("All those conversation history management and retrievers are provided within one MyScale instance!")
62
  st.write("Log in to Chat with RAG!")
63
  login_button(AUTH0_CLIENT_ID, AUTH0_DOMAIN, "auth0")
 
 
 
64
  if st.session_state.auth0 is not None:
65
  st.session_state.user_info = dict(st.session_state.auth0)
66
  if 'email' in st.session_state.user_info:
 
40
  if "user_name" in st.session_state or ("jump_query_ask" in st.session_state and st.session_state.jump_query_ask):
41
  return True
42
  st.subheader("πŸ€— Welcom to [MyScale](https://myscale.com)'s [ChatData](https://github.com/myscale/ChatData)! πŸ€— ")
43
+ st.write("You can now chat with ArXiv and Wikipedia! 🌟\n")
44
+ st.write("Built purely with streamlit πŸ‘‘ , LangChain πŸ¦œπŸ”— and love ❀️ for AI!")
45
  st.write("Follow us on [Twitter](https://x.com/myscaledb) and [Discord](https://discord.gg/D2qpkqc4Jq)!")
46
+ st.write("For more details, please refer to [our repository on GitHub](https://github.com/myscale/ChatData)!")
47
  st.divider()
48
  col1, col2 = st.columns(2, gap='large')
49
  with col1.container():
50
  st.write("Try out MyScale's Self-query and Vector SQL retrievers!")
51
  st.write("In this demo, you will be able to see how those retrievers "
52
  "**digest** -> **translate** -> **retrieve** -> **answer** to your question!")
 
53
  st.session_state["jump_query_ask"] = st.button("Query / Ask")
54
  with col2.container():
55
+ # st.warning("To use chat, please jump to [https://myscale-chatdata.hf.space](https://myscale-chatdata.hf.space)")
 
 
56
  st.write("Now with the power of LangChain's Conversantional Agents, we are able to build "
57
+ "an RAG-enabled chatbot within one MyScale instance! ")
 
 
58
  st.write("Log in to Chat with RAG!")
59
  login_button(AUTH0_CLIENT_ID, AUTH0_DOMAIN, "auth0")
60
+ st.divider()
61
+ st.write("- [Privacy Policy](https://myscale.com/privacy/)\n"
62
+ "- [Terms of Sevice](https://myscale.com/terms/)")
63
  if st.session_state.auth0 is not None:
64
  st.session_state.user_info = dict(st.session_state.auth0)
65
  if 'email' in st.session_state.user_info: