{"id":28496239,"url":"https://github.com/toweringcloud/streamlit-vector-search","last_synced_at":"2026-05-04T21:31:57.381Z","repository":{"id":297826438,"uuid":"996877724","full_name":"toweringcloud/streamlit-vector-search","owner":"toweringcloud","description":"vector embedding on faiss, postgresql and opensearch using python v3.12.8 + streamlit v1.45.1 + langchain v0.3.25","archived":false,"fork":false,"pushed_at":"2025-06-10T08:50:38.000Z","size":5398,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T09:44:16.758Z","etag":null,"topics":["claude","cloudflare-kv","cloudflare-vectorize","elasticsearch","faiss","gemini","mongodb","openai","opensearch","postgresql","redis","superbase"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toweringcloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-05T15:46:20.000Z","updated_at":"2025-06-25T12:45:03.000Z","dependencies_parsed_at":"2025-06-07T18:41:15.815Z","dependency_job_id":null,"html_url":"https://github.com/toweringcloud/streamlit-vector-search","commit_stats":null,"previous_names":["toweringcloud/streamlit-vector-search"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toweringcloud/streamlit-vector-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Fstreamlit-vector-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Fstreamlit-vector-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Fstreamlit-vector-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Fstreamlit-vector-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toweringcloud","download_url":"https://codeload.github.com/toweringcloud/streamlit-vector-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Fstreamlit-vector-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32625949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","cloudflare-kv","cloudflare-vectorize","elasticsearch","faiss","gemini","mongodb","openai","opensearch","postgresql","redis","superbase"],"created_at":"2025-06-08T12:06:53.746Z","updated_at":"2026-05-04T21:31:57.365Z","avatar_url":"https://github.com/toweringcloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-vector-search\nembedding vector search using faiss, postgresql and opensearch with python v3.12.8 + streamlit v1.45.1 + langchain v0.3.25\n\n## how to run\n\n### setup\n\n-   install python 3.10 ~ 3.12 LTS and add system path on python \u0026 pip\n\n```sh\n$ python --version\nPython 3.12.8\n\n$ python -m pip install --upgrade pip\n$ pip --version\npip 25.1.1 from /usr/lib/python3/dist-packages/pip\n\n$ docker -v\nDocker version 28.1.1, build 4eba377\n\n$ docker-compose -v\nDocker Compose version v2.35.1-desktop.1\n\n$ ./docker-postgres-pgvector.sh\n$ docker exec -it pgvector-db psql -U postgres\n(SQL) CREATE DATABASE streamlit_documents;\n(SQL) CREATE EXTENSION IF NOT EXISTS vector;\n\n$ docker compose up -d -f docker-compose-opensearch.yml\n$ curl -k -u admin:admin https://localhost:9200\n\n$ docker compose up -d -f docker-compose-elasticsearch.yml\n$ curl -k https://localhost:19200\n```\n\n### config\n\n-   runtime option A: venv\n\n```sh\n$ python -m venv .venv\n$ source .venv/bin/activate\n$ pip install -r requirements.txt\n$ pip list\n$ deactivate\n```\n\n-   runtime option B: poetry\n\n```sh\n$ pip install poetry==1.8.5\n$ poetry shell\n$ poetry install\n$ poetry show\n$ exit\n```\n\n### launch\n\n-   update runtime secrets in streamlit env\n\n```sh\n$ vi .streamlit/secrets.toml\nOPENSEARCH_HOST = \"localhost\"\nOPENSEARCH_PORT = 9200\n...\nOPENSEARCH_INDEX_NAME = \"streamlit_documents\"\nOPENSEARCH_CACHE_INDEX_NAME = \"embedding_cache\"\n```\n\n-   run streamlit app in root environment\n\n```sh\n$ streamlit run index.py\n  You can now view your Streamlit app in your browser.\n  Local URL: http://localhost:8501\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoweringcloud%2Fstreamlit-vector-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoweringcloud%2Fstreamlit-vector-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoweringcloud%2Fstreamlit-vector-search/lists"}