/st-milvus-connection

Connect your streamlit app to milvus database. Open-source contribution to the Streamlit community.

Primary LanguagePython

st-milvus-connection

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()

Example Application

This Streamlit Connection was created as part of the Streamlit Connections Hackathon in August 2023.

github.com/bsenst/Connections-Hackathon

image