Commit 4ed2391
committed
feat(client,adapters,demo): schema DDL API, full-text search, Colab notebooks
## Client (coordinode)
- create_label(name, properties, *, schema_mode) — node label DDL (strict/validated/flexible)
- create_edge_type(name, properties, *, schema_mode) — edge type DDL
- create_text_index(name, label, properties, *, language) / drop_text_index(name)
with Cypher identifier validation and consistent ValueError surface
- text_search(label, query, *, limit) — BM25 full-text search via TextService gRPC
- hybrid_text_vector_search(label, query, vector, ...) — BM25 + cosine RRF fusion
- LabelInfo, EdgeTypeInfo, TextIndexInfo, HybridResult result types
- Fix isinstance union syntax (UP038) in _types.py for Python >=3.11
## Adapters (langchain, llama-index)
- client= parameter on CoordinodeGraph and CoordinodePropertyGraphStore
- callable(getattr()) guards for optional methods (vector_search, get_schema_text)
- refresh_schema() uses get_labels() / get_edge_types() structured API
with _parse_schema() fallback and _structured_to_text() backfill
- Remove MERGE split workarounds — SET r += {} supported since v0.3.12
## Demo
- 4 Google Colab-ready notebooks with IN_COLAB guard and pinned SDK install
- demo/Dockerfile.jupyter pinned to jupyter/scipy-notebook:python-3.11.6
- demo/docker-compose.yml with /health readiness probe and Jupyter on 127.0.0.1:38888
- Notebook health checks: if not client.health(): raise RuntimeError(...)
## Infrastructure
- Bump coordinode-rs submodule to v0.3.15
- Update proto submodule (SchemaMode, ComputedPropertyDefinition, TextService, DecommissionNode)
- Regenerate proto stubs
- ruff.toml: exclude submodule, .ipynb_checkpoints, per-file ignores for notebooks
- .gitignore: version files, DEVLOG*.md, .ipynb_checkpoints
## Tests
- tests/unit/test_schema_crud.py: +8 tests (property validation, bool enforcement, schema_mode)
- tests/integration/test_sdk.py: +12 tests (FTS with explicit index lifecycle, schema_mode,
Cypher identifier validation, hybrid search, DETACH DELETE cleanup)
Related to #221 parent d477417 commit 4ed2391
24 files changed
Lines changed: 3054 additions & 78 deletions
File tree
- coordinode-embedded/python/coordinode_embedded
- coordinode/coordinode
- demo
- notebooks
- langchain-coordinode
- langchain_coordinode
- llama-index-coordinode
- llama_index/graph_stores/coordinode
- tests
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
Submodule coordinode-rs updated 103 files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments