Metadata-Version: 2.5
Name: houndex
Version: 0.2.0
Summary: A storage-decoupled, last-mile RAG framework: typed output envelopes, tenant-aware evidence stores, citation verification, and pluggable storage adapters.
Project-URL: Homepage, https://github.com/cachetronaut/houndex
Project-URL: Repository, https://github.com/cachetronaut/houndex
Project-URL: Issues, https://github.com/cachetronaut/houndex/issues
License: MIT
License-File: LICENSE
Keywords: ai,ai-agents,citations,convex,embeddings,evidence,genai,grounding,hallucination,knowledge-base,knowledge-graph,llm,provenance,pydantic,rag,reranking,retrieval-augmented-generation,source-backed,sqlite,supabase,vector-search,verification
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: pydantic>=2.7
Provides-Extra: all
Requires-Dist: convex>=0.6.0; extra == 'all'
Requires-Dist: fastapi>=0.115; extra == 'all'
Requires-Dist: httpx>=0.28; extra == 'all'
Requires-Dist: supabase>=2.0.0; extra == 'all'
Requires-Dist: typer>=0.12; extra == 'all'
Provides-Extra: api
Requires-Dist: fastapi>=0.115; extra == 'api'
Requires-Dist: httpx>=0.28; extra == 'api'
Provides-Extra: cli
Requires-Dist: typer>=0.12; extra == 'cli'
Provides-Extra: storage
Requires-Dist: convex>=0.6.0; extra == 'storage'
Requires-Dist: supabase>=2.0.0; extra == 'storage'
Provides-Extra: storage-convex
Requires-Dist: convex>=0.6.0; extra == 'storage-convex'
Provides-Extra: storage-supabase
Requires-Dist: supabase>=2.0.0; extra == 'storage-supabase'
Description-Content-Type: text/markdown

# houndex

Python implementation of Houndex.

For product-level context, shared contracts, and cross-language repository information, see the public repository: https://github.com/cachetronaut/houndex.

## Install

```sh
pip install houndex
```

## Import

```python
import houndex
```

## Evidence storage and citation checks

- `houndex_storage_sqlite.SqliteStorageAdapter` keeps the evidence store in one SQLite file,
  using only the standard library (`":memory:"` for an in-process store).
- `houndex_pipeline.verify_trace` resolves every claim an `OutputEnvelope` cites against a
  store and returns a `TraceVerification`: its `verdict` is a `CitationVerdict` (green when all
  resolve, yellow when some do, red when none do or nothing is cited), `resolved` holds the
  claims that resolved and `unresolved` the cited ids that did not.

```python
from houndex_pipeline import verify_trace
from houndex_storage_sqlite import SqliteStorageAdapter

store = SqliteStorageAdapter("evidence.sqlite3")
result = await verify_trace(store, tenant, envelope)
if not result.grounded:
    print(result.unresolved)
```

## Development

Run from `py/`:

```sh
uv sync --dev
uv run --with ruff ruff check .
uv run --with ruff ruff format --check .
uv run --with ty ty check
uv run --with pytest --with pytest-asyncio python -m pytest
```

## License

MIT
