xyberos-faiss
FAISS VectorStore plugin — RFC-0019, M4. A purely local, no-server vector
store backed by FAISS. Passes the
same parity scenarios as the stdlib SqliteVectorStore (the M4 Definition of
Done).
Install
pip install -e ./faiss
pip install faiss-cpu # or: pip install xyberos[vectors]
faiss-cpuwheels are available on PyPI for Linux/macOS; on Windows use a conda env or run the parity tests on a platform with wheels — the tests skip cleanly when the module is absent.
Usage
from xyberos import create_app
from xyberos_faiss import FaissPlugin
app = create_app()
app.load_plugin(FaissPlugin())
store = app.resolve("vector_store")
store.upsert("ns", "doc-1", [1.0, 0.0, 0.0, 0.0], {"text": "alpha"})
hits = store.query("ns", [1.0, 0.0, 0.0, 0.0], top_k=3)
Design
- Each namespace is an in-memory
faiss.IndexFlatIPover L2-normalized vectors, so inner-product scores equal cosine similarity (higher = more relevant, matching theVectorStorecontract). dimis optional and auto-detected from the first upsert (FAISS_DIMenv honored).faissis imported lazily; a clearProviderErroris raised when it is missing.
Tests
pip install pytest
pytest tests/ # unit + parity + plugin tests
Parity tests run the exact scenarios the SqliteVectorStore reference passes;
they skip cleanly when faiss-cpu is not importable on the current platform.
Ship location
[vectors] extra (faiss-cpu already added to pyproject.toml).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 xyberos_faiss-0.1.0.tar.gz.
File metadata
- Download URL: xyberos_faiss-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b26c51d82163c1fde2e1c553464df2fe3fca1f4a698d4a1b5c964473b886ba5
|
|
| MD5 |
841cf5d8121d1a5d2f57cbf476484aca
|
|
| BLAKE2b-256 |
7993874afe6521086041ecc0c236492144408fb0d432822ce511c4ede3d01fc7
|
Provenance
The following attestation bundles were made for xyberos_faiss-0.1.0.tar.gz:
Publisher:
pypi-plugins.yml on xyberos/xyberos-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xyberos_faiss-0.1.0.tar.gz -
Subject digest:
6b26c51d82163c1fde2e1c553464df2fe3fca1f4a698d4a1b5c964473b886ba5 - Sigstore transparency entry: 2495317209
- Sigstore integration time:
-
Permalink:
xyberos/xyberos-plugins@cd98ad6193005275396bb763df8de0468830de4a -
Branch / Tag:
refs/heads/master - Owner: https://github.com/xyberos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-plugins.yml@cd98ad6193005275396bb763df8de0468830de4a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xyberos_faiss-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xyberos_faiss-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2aefcbe21fc20a93d69033499865280a66d25001e981586b36087e4646ad32
|
|
| MD5 |
e2378080663d97d03ac926772af5dafc
|
|
| BLAKE2b-256 |
36e592c17f4305033060111860b66fb8e5634f6f363a887cb4e54d3cafe46a90
|
Provenance
The following attestation bundles were made for xyberos_faiss-0.1.0-py3-none-any.whl:
Publisher:
pypi-plugins.yml on xyberos/xyberos-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xyberos_faiss-0.1.0-py3-none-any.whl -
Subject digest:
4a2aefcbe21fc20a93d69033499865280a66d25001e981586b36087e4646ad32 - Sigstore transparency entry: 2495317266
- Sigstore integration time:
-
Permalink:
xyberos/xyberos-plugins@cd98ad6193005275396bb763df8de0468830de4a -
Branch / Tag:
refs/heads/master - Owner: https://github.com/xyberos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-plugins.yml@cd98ad6193005275396bb763df8de0468830de4a -
Trigger Event:
workflow_dispatch
-
Statement type: