Connect your streamlit app to milvus database.
Install the library
pip install st_milvus_connection
Connect to Milvus database
import os
import streamlit as st
from st_milvus_connection import MilvusConnection
os.environ["milvus_uri"] = YOUR_MILVUS_ENDPOINT
os.environ["milvus_token"] = YOUR_MILVUS_TOKEN
conn = st.connection("milvus", type=MilvusConnection)
List collections
conn.list_collections()
This Streamlit Connection was created as part of the Streamlit Connections Hackathon in August 2023.