docs/mintlify/integrations/frameworks/streamlit.mdx
Streamlit is an open-source Python library that makes it easy to create and share beautiful, custom web apps for machine learning and data science. In just a few minutes you can build and deploy powerful data apps.
| Languages | Docs | Github |
|---|---|---|
| Python | Docs | Code |
Install Streamlit:
pip install streamlit
Install streamlit-chromadb-connection, which connects your Streamlit app to Chroma through st.connection:
pip install streamlit-chromadb-connection
streamlit-chromadb-connectionimport streamlit as st
from streamlit_chromadb_connection.chromadb_connection import ChromadbConnection
configuration = {
"client": "PersistentClient",
"path": "/tmp/.chroma"
}
collection_name = "documents_collection"
conn = st.connection("chromadb",
type=ChromaDBConnection,
**configuration)
documents_collection_df = conn.get_collection_data(collection_name)
st.dataframe(documents_collection_df)
streamlit-chromadb-connection to connect your Streamlit app to Chromastreamlit-chromadb-connectionst.connection documentation