Skip to main content

langchain-chassisdb

A LangChain vector store on Chassis: semantic search over your documents, kept in two files, inside your own process. No server to run, nothing to connect to.

pip install langchain-chassisdb
from langchain_chassisdb import ChassisVectorStore
from langchain_openai import OpenAIEmbeddings  # or any LangChain embeddings

store = ChassisVectorStore("docs.chassis", embedding=OpenAIEmbeddings())
store.add_texts(
    ["Refunds take five working days.", "We ship to the EU and the UK."],
    metadatas=[{"topic": "billing"}, {"topic": "shipping"}],
)

retriever = store.as_retriever(search_kwargs={"k": 4, "filter": {"topic": "billing"}})
retriever.invoke("how long does a refund take?")
  • Files: docs.chassis holds the vectors and docs.db the documents and metadata. Open the same path again, with the same embeddings, to pick up where you left off. Everything added or deleted is saved when the call returns.
  • Ids: give your own with ids=; adding a document with an id that is stored replaces it. get_by_ids and delete take them.
  • Filters: filter={"key": value, ...} keeps documents whose metadata has every key with that value.
  • Scores: similarity_search_with_score gives distances (smaller is closer); similarity_search_with_relevance_scores gives 0 to 1. max_marginal_relevance_search picks documents that are close to the query and different from each other.
  • Options: metric="cosine" (the default) or "euclidean"; precision="half" keeps vectors in about half the space, with the same recall on the embeddings measured. They're fixed when the store is created: open it again with the same ones, or an OptionsMismatchError says which to pass. A read_only store takes them from the file.
  • More processes: one process writes a store at a time. Others open it with read_only=True, take no lock, and see what the writer last saved.

It passes LangChain's standard tests for vector stores, sync and async.

Metadata

Release files for langchain-chassisdb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-chassisdb 0.1.0
File Size Uploaded
langchain_chassisdb-0.1.0.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-chassisdb 0.1.0
File Interpreter ABI Platform
langchain_chassisdb-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / langchain_chassisdb-0.1.0.tar.gz

Download URL langchain_chassisdb-0.1.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
763eceba867469185075262c6a446c636fd46ebc8625a70b9325faa1d5c3867a
BLAKE2b-256 checksum
How to use checksums
6699fb83747775a508958c5a724c42fac075e58c3bd366d19da1e95191fd3a93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

Release files / langchain_chassisdb-0.1.0-py3-none-any.whl

Download URL langchain_chassisdb-0.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adf6233969c86cd7ca96856814dc04b584cc5a5a404cfffdfae18c08ed162a8a
BLAKE2b-256 checksum
How to use checksums
4d8a2b2e59a19caeb524fd8e9458c44f3546bb5c5c681329b51836c1d477a392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page