awacke1 commited on
Commit
c18d3c9
ยท
verified ยท
1 Parent(s): 8fb9980

Update app20.py

Browse files
Files changed (1) hide show
  1. app20.py +4 -16
app20.py CHANGED
@@ -1,4 +1,4 @@
1
- # app.py
2
  # =============================================================================
3
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ IMPORTS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
4
  # =============================================================================
@@ -808,19 +808,6 @@ def new_links_record(container):
808
  st.error("Error creating links record: " + message)
809
  return None
810
 
811
- # =============================================================================
812
- # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ LANGCHAIN FUNCTIONS (Witty emoji comments)
813
- # =============================================================================
814
- def display_langchain_functions():
815
- functions = [
816
- {"name": "OpenAIEmbeddings", "comment": "๐Ÿ”ฎ Creates embeddings using OpenAI โ€“ pure magic!"},
817
- {"name": "AzureCosmosDBNoSqlVectorSearch", "comment": "๐Ÿš€ Performs vector search on Cosmos DB โ€“ superfast and smart!"},
818
- {"name": "RecursiveCharacterTextSplitter", "comment": "โœ‚๏ธ Slices text into manageable chunks โ€“ like a pro chef!"}
819
- ]
820
- st.sidebar.markdown("### ๐Ÿค– Langchain Functions")
821
- for func in functions:
822
- st.sidebar.write(f"{func['name']}: {func['comment']}")
823
-
824
  # =============================================================================
825
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ SIDEBAR DATA GRID (Editable Names Grid)
826
  # =============================================================================
@@ -1196,7 +1183,9 @@ def main():
1196
  st.sidebar.markdown("## ๐Ÿ” Vector Search")
1197
  search_documents_ui(st.session_state.get("current_container"))
1198
  show_sidebar_data_grid()
1199
- display_langchain_functions()
 
 
1200
  if st.session_state.get("current_container"):
1201
  edit_names_grid(st.session_state.current_container)
1202
  try:
@@ -1205,7 +1194,6 @@ def main():
1205
  st.sidebar.title("๐Ÿ™ Navigator")
1206
  databases = get_databases(st.session_state.client)
1207
  selected_db = st.sidebar.selectbox("๐Ÿ—ƒ๏ธ DB", databases)
1208
- st.markdown(CosmosDBUrl)
1209
  if selected_db != st.session_state.get("selected_database"):
1210
  st.session_state.selected_database = selected_db
1211
  st.session_state.selected_container = None
 
1
+ app.py
2
  # =============================================================================
3
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ IMPORTS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
4
  # =============================================================================
 
808
  st.error("Error creating links record: " + message)
809
  return None
810
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
  # =============================================================================
812
  # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ SIDEBAR DATA GRID (Editable Names Grid)
813
  # =============================================================================
 
1183
  st.sidebar.markdown("## ๐Ÿ” Vector Search")
1184
  search_documents_ui(st.session_state.get("current_container"))
1185
  show_sidebar_data_grid()
1186
+
1187
+
1188
+
1189
  if st.session_state.get("current_container"):
1190
  edit_names_grid(st.session_state.current_container)
1191
  try:
 
1194
  st.sidebar.title("๐Ÿ™ Navigator")
1195
  databases = get_databases(st.session_state.client)
1196
  selected_db = st.sidebar.selectbox("๐Ÿ—ƒ๏ธ DB", databases)
 
1197
  if selected_db != st.session_state.get("selected_database"):
1198
  st.session_state.selected_database = selected_db
1199
  st.session_state.selected_container = None