mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-06-01 06:10:31 +00:00
Major new package implementing a distributed hypergraph database with: ## Core Components (crates/ruvector-graph/) - Cypher-compatible query parser with lexer, AST, optimizer - Query execution engine with SIMD optimization and parallel execution - ACID transaction support with MVCC isolation levels - Distributed consensus and federation layer - Vector-graph hybrid queries for AI/RAG workloads - Performance optimizations (100x faster than Neo4j target) ## Bindings - WASM bindings (crates/ruvector-graph-wasm/) - NAPI-RS Node.js bindings (crates/ruvector-graph-node/) - NPM packages for both targets ## CLI Integration - 8 new graph commands: create, query, shell, import, export, info, benchmark, serve ## CI/CD - Updated build-native.yml for graph packages - New graph-ci.yml for testing and benchmarks - New graph-release.yml for automated publishing ## Data Generation - OpenRouter/Kimi K2 integration (packages/graph-data-generator/) - Agentic-synth benchmark suite integration ## Tests & Benchmarks - 11 test files covering all components - Criterion benchmarks for performance validation - Neo4j compatibility test suite ## Architecture Highlights - CSR graph layout for cache-friendly access - SIMD-vectorized query operators - Roaring bitmaps for label indexes - Bloom filters for fast negative lookups - Adaptive radix tree for property indexes Note: This is a comprehensive implementation created by 15 parallel agents. Some integration fixes may be needed to resolve cross-module dependencies. Co-authored-by: Claude AI Swarm <swarm@claude.ai>
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"description": "Expected query results for validation",
|
|
"test_cases": [
|
|
{
|
|
"name": "count_all_nodes",
|
|
"query": "MATCH (n) RETURN COUNT(n)",
|
|
"dataset": "movie_database",
|
|
"expected": [{"COUNT(n)": 4}]
|
|
},
|
|
{
|
|
"name": "match_person_nodes",
|
|
"query": "MATCH (p:Person) RETURN p.name ORDER BY p.name",
|
|
"dataset": "movie_database",
|
|
"expected": [
|
|
{"p.name": "Carrie-Anne Moss"},
|
|
{"p.name": "Keanu Reeves"},
|
|
{"p.name": "Laurence Fishburne"}
|
|
]
|
|
},
|
|
{
|
|
"name": "count_relationships",
|
|
"query": "MATCH ()-[r:ACTED_IN]->() RETURN COUNT(r)",
|
|
"dataset": "movie_database",
|
|
"expected": [{"COUNT(r)": 3}]
|
|
},
|
|
{
|
|
"name": "social_network_friends",
|
|
"query": "MATCH (p:Person {name: 'Alice'})-[:KNOWS]->(friend) RETURN friend.name ORDER BY friend.name",
|
|
"dataset": "social_network",
|
|
"expected": [
|
|
{"friend.name": "Bob"},
|
|
{"friend.name": "Charlie"}
|
|
]
|
|
},
|
|
{
|
|
"name": "average_age",
|
|
"query": "MATCH (p:Person) RETURN AVG(p.age) AS avg_age",
|
|
"dataset": "social_network",
|
|
"expected": [{"avg_age": 30.4}]
|
|
},
|
|
{
|
|
"name": "people_born_after_1965",
|
|
"query": "MATCH (p:Person) WHERE p.born > 1965 RETURN p.name",
|
|
"dataset": "movie_database",
|
|
"expected": [{"p.name": "Carrie-Anne Moss"}]
|
|
}
|
|
]
|
|
}
|