Skip to main content

Streamlit

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. Apache 2.0 License | Site
LanguagesDocsGithub
PythonDocsCode

Install

Install Streamlit: pip install streamlit Install streamlit-chromadb-connection, which connects your Streamlit app to Chroma through st.connection: pip install streamlit-chromadb-connection

Main Benefits

Simple Example

Python

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

Resources

Tutorials