Skip to main content

Streamlit OpenAI Embedding Connection

Releases

Streamlit App

Example app using Streamlit Connections to query OpenAI's ada-002 embedding model.

Results from these queries can be used to perform semantic similarity searches either locally or in a vector database.

Sample usage:

pip install st-openai-embeddings-connection

streamlit.py:

import streamlit as st
from st_openai_embeddings_connection import OpenAIEmbeddingsConnection

conn = st.experimental_connection(
    "openai_embeddings", type=OpenAIEmbeddingsConnection
)
text_to_embed = st.text_input(
    "Text To Embed", "Puppies are good"
)

if st.button("embed"):
    result = conn.query(text_to_embed)
    result

Metadata

Release files for st-openai-embeddings-connection 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st-openai-embeddings-connection 0.1.1
File Size Uploaded Provenance Actions
st-openai-embeddings-connection-0.1.1.tar.gz 7.2 kB Without provenance Details for st-openai-embeddings-connection-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for st-openai-embeddings-connection 0.1.1
File Interpreter ABI Platform Actions
st_openai_embeddings_connection-0.1.1-py3-none-any.whl Python 3 none any Details for st_openai_embeddings_connection-0.1.1-py3-none-any.whl

Total release size: 15.2 kB

Release files / st-openai-embeddings-connection-0.1.1.tar.gz

Download URL st-openai-embeddings-connection-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d769a723f29d02da498635eec142fa5936cadda309c82ca16597f2ba35048935
BLAKE2b-256 checksum
How to use checksums
c3917ab18209ed11f8052a7bffa8d44fd48db553ab8049477f54dd41277aa43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / st_openai_embeddings_connection-0.1.1-py3-none-any.whl

Download URL st_openai_embeddings_connection-0.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ea38c595e0771f8c431340cb9f29b2f89a219a0152dd22a7ad02dbb6e4a116c
BLAKE2b-256 checksum
How to use checksums
6d0d3d30432d64d1b12fd6b863485bfced2b2b4d37effb8dc75aa0e3b5d6f67a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for st-openai-embeddings-connection 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page