Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
Merge branch 'main' into vector-store: Resolve PR_DESCRIPTION.md modify/delete conflict by keeping local version
KaifAhmad15dfca85500d9
diff --cc PR_DESCRIPTION.mdindex ba68c6fc,00000000..a5a67755mode 100644,000000..100644--- a/PR_DESCRIPTION.md+++ b/PR_DESCRIPTION.md@@@ -1,32 -1,0 +1,49 @@@- # Refactor: Rename `triple_store` to `triplet_store`++# Refactor: Remove Pinecone and Enhance Vector Store Backend Support++## Summary- This Pull Request renames the `semantica/triple_store` module to `semantica/triplet_store` and updates all references across the codebase to ensure consistent naming conventions.++This Pull Request removes the proprietary Pinecone vector store dependency and its associated adapter to align Semantica with a strictly open-source, self-hostable architecture. It simultaneously enhances the robustness of the remaining vector store backends (FAISS, Weaviate, Qdrant, Milvus) through stricter validation and comprehensive deep-dive testing.++## Motivation- The term "triplet" is the standard terminology used within the Semantica framework. This refactor aligns the module name, class names, and documentation with this convention, eliminating ambiguity and "triple"/"triplet" inconsistencies.++Semantica aims to provide a fully controllable, privacy-focused, and open-source foundation for semantic applications. Relying on proprietary cloud-only services like Pinecone contradicts this goal for the core framework. By removing Pinecone, we reduce external dependencies and focus on robust support for backends that can be run locally or self-hosted (FAISS, Weaviate, Qdrant, Milvus).++## Changes- - **Module Rename**: Renamed directory `semantica/triple_store` -> `semantica/triplet_store`.- - **Core Updates**:- - Updated `__init__.py`, `triplet_manager.py`, `query_engine.py`, `bulk_loader.py`, and all adapters (`blazegraph`, `jena`, `rdf4j`, `virtuoso`) to use `triplet_store` imports.- - Renamed classes: `TripleManager` -> `TripletManager`, `TripleStore` -> `TripletStore`.- - **Notebook Refactoring**:- - Updated imports and usage in `cookbook/introduction/20_Triplet_Store.ipynb`.- - Updated `cookbook/advanced/09_Semantic_Layer_Construction.ipynb`.- - Updated healthcare use cases: `01_Clinical_Reports_Processing.ipynb`, `04_Healthcare_GraphRAG_Hybrid.ipynb`, `05_Medical_Database_Integration.ipynb`, `06_Patient_Records_Temporal.ipynb`.- - **Documentation**:- - Renamed `docs/reference/triple_store.md` -> `triplet_store.md`.- - Updated `README.md`, `docs/modules.md`, `docs/glossary.md`, `docs/CodeExamples.md`, `docs/reference/graph_store.md`, `docs/reference/reasoning.md`.- - Updated `mkdocs.yml` navigation.- - **Tests**:- - Renamed `tests/triple_store` -> `tests/triplet_store`.- - Updated `test_triplet_store.py` to test the renamed module.++++### 1. Dependency Removal++- **Deleted**: `semantica/vector_store/pinecone_adapter.py`.++- **Removed**: Pinecone references from `pyproject.toml` (optional dependencies).++- **Cleaned**: Removed `PineconeAdapter` imports and exports from `semantica/vector_store/__init__.py`.++++### 2. Core Vector Store Logic++- **Strict Validation**: Updated `VectorStore` in `semantica/vector_store/vector_store.py` to strictly validate backend names.++ - Supported backends: `faiss`, `weaviate`, `qdrant`, `milvus`, `inmemory`.++ - Raises `ValueError` for unsupported backends (e.g., "pinecone") instead of silent failures or defaults.++- **Config**: Removed Pinecone-specific configuration keys from `semantica/vector_store/config.py`.++++### 3. Documentation & Cookbooks++- **Cookbook Updates**:++ - Rewrote `cookbook/introduction/13_Vector_Store.ipynb` to replace Pinecone examples with **Weaviate** (self-hosted alternative) and FAISS.++ - Updated `cookbook/advanced/11_Advanced_Context_Engineering.ipynb` and other notebooks to remove Pinecone references.++- **Docs**:++ - Updated `docs/modules.md`, `docs/architecture.md`, and `docs/reference/vector_store.md` to reflect the current supported backends.++ - Updated `CHANGELOG.md` to document the breaking change.++++### 4. Testing++- **New Test**: Created `tests/vector_store/test_pinecone_removal.py` to explicitly verify that:++ - `VectorStore(backend="pinecone")` raises an error.++ - Pinecone components are not loadable.++- **Deep Dive Test**: Created `tests/vector_store/test_vector_store_deepdive.py` to validate:++ - **In-Memory** backend (logic verification without external deps).++ - **FAISS, Weaviate, Qdrant, Milvus** adapters (via mocking).++ - **Hybrid Search** and **Method Registry** functionality.++ - **VectorStoreConfig** management.++## Verification- - **Tests**: Ran `pytest tests/triplet_store/test_triplet_store.py`. All tests passed.- - **Static Analysis**: Verified no lingering `semantica.triple_store` imports remain in the codebase (grep check).++- **Test Suite**: Ran `python -m pytest tests/vector_store/ -v`.++ - **Result**: 20/20 tests passed.++- **Manual Verification**:++ - Grepped codebase for "pinecone" (case-insensitive) to ensure 0 residual references.++ - Verified `13_Vector_Store.ipynb` runs successfully with Weaviate/FAISS.++## Breaking Changes- - `semantica.triple_store` is no longer available. Users must update imports to `semantica.triplet_store`.- - `TripleManager` and `TripleStore` classes are renamed to `TripletManager` and `TripletStore`.++- **Pinecone Support Removed**: Users currently using `backend="pinecone"` or `PineconeAdapter` must migrate to a supported backend (e.g., Weaviate, Qdrant, Milvus) or use a custom adapter.++- **API Strictness**: `VectorStore` constructor now raises `ValueError` for invalid backend strings.