Add your description here
Project description
内容向量库存储及查询
基于 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jl_vector_store-0.1.0.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jl_vector_store-0.1.0.tar.gz.
File metadata
- Download URL: jl_vector_store-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89794e4288c149e591bb5390827a4c4dccf5d67360a1e4a183cd4d1829e82460
|
|
| MD5 |
7ccc2f7406588eb547aa97ba7bb02e5e
|
|
| BLAKE2b-256 |
f6f374f66c6cc61fddcb3d85470b54fbb8855f51c7a524caa14f6166aa368f72
|
File details
Details for the file jl_vector_store-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jl_vector_store-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e8c86903ba7e9fca33d3fa37253f826318c900672d423c2054ba9b3a67be5e
|
|
| MD5 |
159d515d7745acaa8ccbfb4f9d71c8c9
|
|
| BLAKE2b-256 |
14db497be7143de4f2fafb1df4e59bddcfd51de231a7c299a78d084375062bb1
|