Skip to main content

Streamlit component for Jina neural search

Project description

streamlit-jina

streamlit-jina lets you search text or images in your Streamlit app, using Jina's neural search framework.

Installation

streamlit-jina is distributed via PyPI:

pip install streamlit-jina

Examples

Using streamlit-jina is as simple as setting an endpoint and what type of thing you want to search for:

import streamlit as st
from streamlit_jina import jina

And then choose your search type and plug in your endpoint:

Text (example)

jina.text_search(endpoint="http://0.0.0.0:45678/api/search")

Images (example)

jina.image_search(endpoint="http://0.0.0.0:45678/api/search")

Parameters

You can pass several parameters to the component:

Parameter Type Details
endpoint str Endpoint of your Jina instance Required
top_k int How many results you want returned Optional
hidden list Widgets you want hidden from user (endpoint, top_k) Optional

Todo

  • Canvas drawing as input
  • Audio/video file upload input
  • Audio/video recording input
  • Audio/video output widgets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-jina-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file streamlit-jina-0.1.4.tar.gz.

File metadata

  • Download URL: streamlit-jina-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for streamlit-jina-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ed287b6b8a58c54b7aceb547f3cb21b6f3bef108153efbdb110c94251d0a6cec
MD5 832422b32ebd83ba659725a74831d1c9
BLAKE2b-256 5b6c435503c8586649886c6684f5d6eb3c7d8526cc8ba5878312e3ee16451183

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page