Spaces:
Running
Running
Update app20.py
Browse files
app20.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
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 |
-
|
|
|
|
|
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
|