内容向量库存储及查询
基于 ChromaDB 向量数据库的内容存储、检索工具。
📋 项目简介
- 内容存储:将内容及其分析结果存入 ChromaDB 向量数据库
- 语义检索:通过语义相似度快速检索相关爆款内容
- 多维度查询:支持语义搜索、关键词搜索、元数据过滤
- 数据管理:提供内容更新、删除、备份等完整管理功能
🚀 快速开始
环境要求
- Python >= 3.8
- ChromaDB(向量数据库)
- 嵌入模型 API(默认支持硅基流动)
配置环境变量
# 嵌入模型配置(使用硅基流动免费模型)
export EMBEDDING_BASE_URL="https://api.siliconflow.cn/v1/embeddings"
export EMBEDDING_API_KEY="your-api-token"
export EMBEDDING_MODEL="BAAI/bge-large-zh-v1.5"
安装
uv tool install jl-vector-store
📖 命令行使用
存储内容
# 从文件存储
uvx jl-vector-store store --file sample.txt --title "爆款标题" --platform "抖音" --author "作者名"
# 直接输入内容存储
uvx jl-vector-store store --content "这里是要存储的爆款内容" --title "爆款标题" --platform "小红书"
查询相似内容
# 基础查询(返回5条)
uvx jl-vector-store query --text "工作效率提升技巧"
# 按平台过滤
uvx jl-vector-store query --text "学习方法" --platform "公众号" --n 3
关键词查询
# 通过关键词查询
uvx jl-vector-store keyword --keywords "效率,时间管理,职场" --n 10
# 按平台过滤
uvx jl-vector-store keyword --keywords "减肥,健身" --platform "抖音" --n 5
查看统计信息
uvx jl-vector-store stats
备份数据
# 默认路径备份
uvx jl-vector-store backup
# 指定路径备份
python main.py backup --path /path/to/backup.json
Metadata
Release files for jl-vector-store 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jl_vector_store-0.1.0.tar.gz | 6.6 kB | Without provenance | Details for jl_vector_store-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jl_vector_store-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for jl_vector_store-0.1.0-py3-none-any.whl |
Total release size: 13.9 kB
Release files / jl_vector_store-0.1.0.tar.gz
| Download URL | jl_vector_store-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89794e4288c149e591bb5390827a4c4dccf5d67360a1e4a183cd4d1829e82460
|
|
BLAKE2b-256 checksum How to use checksums |
f6f374f66c6cc61fddcb3d85470b54fbb8855f51c7a524caa14f6166aa368f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / jl_vector_store-0.1.0-py3-none-any.whl
| Download URL | jl_vector_store-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93e8c86903ba7e9fca33d3fa37253f826318c900672d423c2054ba9b3a67be5e
|
|
BLAKE2b-256 checksum How to use checksums |
14db497be7143de4f2fafb1df4e59bddcfd51de231a7c299a78d084375062bb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for jl-vector-store 0.1.0
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.