https://github.com/bsenst/st-milvus-connection
Connect your streamlit app to milvus database. Open-source contribution to the Streamlit community.
https://github.com/bsenst/st-milvus-connection
milvus streamlit streamlit-component
Last synced: 6 months ago
JSON representation
Connect your streamlit app to milvus database. Open-source contribution to the Streamlit community.
- Host: GitHub
- URL: https://github.com/bsenst/st-milvus-connection
- Owner: bsenst
- Created: 2023-11-19T21:54:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T10:01:59.000Z (almost 2 years ago)
- Last Synced: 2025-04-22T23:06:47.732Z (6 months ago)
- Topics: milvus, streamlit, streamlit-component
- Language: Python
- Homepage: https://streamlit.io/components?category=connections
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 stfrom st_milvus_connection import MilvusConnection
os.environ["milvus_uri"] = YOUR_MILVUS_ENDPOINT
os.environ["milvus_token"] = YOUR_MILVUS_TOKENconn = 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](https://github.com/bsenst/Connections-Hackathon)
