This release is a pre-release and may not be stable for production use.
houyidb — HouyiDB Python SDK
HouyiDB collections HTTP API 的薄封装:传输 + 类型,不含框架语义。
from houyidb import HouyiClient, Vector, Filter
client = HouyiClient("http://127.0.0.1:7000")
col = client.collection("goods") # 首次 upsert 时隐式创建
col.upsert([
Vector(id=1, values=[0.9, 0.1], payload={"name": "apple", "price": 3.5}),
Vector(id=2, values=[0.1, 0.9], payload={"name": "laptop", "price": 8999}),
])
res = col.hybrid_search(
[0.85, 0.15], k=3,
filters=[Filter("price", "lt", 1000)],
include_payload=True,
)
for hit in res.hits:
print(hit.id, hit.score, hit.payload)
col.delete([1]) # 按 id
col.delete(filters=[Filter("price", "lt", 100)]) # 按条件(标量页求值,刚写入即可命中)
契约要点
- 相似度分数:
1 - cosine_distance,越大越相似(余弦后端)。 - 过滤算子:
eq/gt/lt/gte/lte/in,多条取交集。 - 保留键:payload 不得使用
label键(400),label 走顶层字段。 - id 空间:u64;
houyidb.stable_id(str)可把字符串 id 确定性映射进 u64。 - v1 易失性:collection 的 payload/标量页不写 WAL,进程重启后丢失(向量索引不受影响)。
- 错误:非 2xx 一律抛
HouyiError(status_code, message)。
生态 adapter
langchain-houyidb— LangChainVectorStore实现llama-index-vector-stores-houyidb— LlamaIndexBasePydanticVectorStore实现
Metadata
Release files for houyidb 0.2.0b5
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 | |
|---|---|---|---|---|
| houyidb-0.2.0b5.tar.gz | 7.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| houyidb-0.2.0b5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / houyidb-0.2.0b5.tar.gz
| Download URL | houyidb-0.2.0b5.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14fe0128f3cce2dce524d6e713a2133588df5b5d5bd3d076d5fe349edc3f6000
|
|
BLAKE2b-256 checksum How to use checksums |
c83887233c6db59c933c4e56189a49fe41ef591944ef5b349af0b554fc5b61d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / houyidb-0.2.0b5-py3-none-any.whl
| Download URL | houyidb-0.2.0b5-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfbf481a391f6be2f4ac32b1cc914dd1b5560c997cd19340ed905c8773cd4a9c
|
|
BLAKE2b-256 checksum How to use checksums |
ed3cdc842ba747c8f58a78d38797b9eeab2dddf89f82da9ff43d6dec6adefb8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for houyidb 0.2.0b5
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for houyidb-0.2.0b5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA 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.