trustgraph/tests/unit
cybermaggedon 1740e315f4
feat: batch row imports and split index configuration (#1055)
Adds batching to structured data row imports. Previously each row was
sent as a separate WebSocket message, causing one embeddings service
call per row. The bulk import clients now accumulate rows into batches
(default 40) before sending, and the --batch-size CLI argument is
wired through from tg-load-structured-data to the import call.

Splits the schema "indexes" field into two separate configurations:
- "query-indexes": fields for Cassandra exact-match retrieval
- "vector-indexes": fields for vector embedding and semantic search

This avoids wasting compute embedding primary key integers that only
need exact lookup, while allowing each field to independently opt in
to either or both retrieval patterns.

Adds row_id (the primary key value) as a clustering column in the
Cassandra rows table so multiple rows sharing the same index value
no longer silently overwrite each other.

Tests updated for new Cassandra schema.
2026-07-22 10:20:06 +01:00
..
test_agent feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
test_api feat: structured source document references in graph-rag responses (#1035) 2026-07-08 23:59:56 +01:00
test_base feat: pluggable image-to-text service with OpenAI vision backend (#1038) 2026-07-12 12:47:04 +01:00
test_bootstrap feat: make bootstrapper initialiser timeouts configurable (#999) 2026-06-30 09:37:22 +01:00
test_chunking Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
test_cli feat: batch row imports and split index configuration (#1055) 2026-07-22 10:20:06 +01:00
test_clients feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
test_concurrency feat: direction-aware reranker text in GraphRAG hop-and-filter (#1016) 2026-07-02 21:14:47 +01:00
test_config Structure data mvp (#452) 2025-08-07 20:47:20 +01:00
test_cores fix: update knowledge manager tests for per-workspace librarian clients (#1050) 2026-07-16 09:46:48 +01:00
test_decoding feat: add Docling-based document decoder as alternative to unstructured (#1054) 2026-07-20 21:25:33 +01:00
test_direct fix: index literal objects in entity table for object-based graph queries (#1041) 2026-07-13 20:03:00 +01:00
test_embeddings feat: batch row imports and split index configuration (#1055) 2026-07-22 10:20:06 +01:00
test_extract fix: preserve non-ASCII entity names in ontology URI normalization (#1036) 2026-07-09 00:05:35 +01:00
test_gateway feat: pluggable image-to-text service with OpenAI vision backend (#1038) 2026-07-12 12:47:04 +01:00
test_iam feat: add structured audit event system (#1027) 2026-07-06 10:47:49 +01:00
test_image_to_text feat: pluggable image-to-text service with OpenAI vision backend (#1038) 2026-07-12 12:47:04 +01:00
test_knowledge_graph feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
test_librarian Per-workspace queue routing for workspace-scoped services (#862) 2026-05-04 10:30:03 +01:00
test_provenance feat: replace LLM edge scoring with cross-encoder reranker in GraphRAG (#1005) 2026-06-30 14:36:37 +01:00
test_pubsub Test fixes for Kafka (#834) 2026-04-18 23:06:01 +01:00
test_query fix: update row query tests to mock async_execute_paged and async_scan (#979) 2026-06-09 16:29:32 +01:00
test_rdf Pub/sub abstraction: decouple from Pulsar (#751) 2026-04-01 20:16:53 +01:00
test_reliability feat: data store replication configuration and TLS upgrade (#975) 2026-06-04 11:49:29 +01:00
test_retrieval feat: structured source document references in graph-rag responses (#1035) 2026-07-08 23:59:56 +01:00
test_rev_gateway Update rev-gateway for IAM integration (#940) 2026-05-19 21:45:43 +01:00
test_storage feat: batch row imports and split index configuration (#1055) 2026-07-22 10:20:06 +01:00
test_structured_data Make all Cassandra and Qdrant I/O async-safe with proper concurrency controls (#916) 2026-05-14 16:00:54 +01:00
test_tables feat: complete knowledge core storage — named graphs, provenance, source material (#973) 2026-06-03 10:46:52 +01:00
test_text_completion Fixed document-rag workspace problem (#866) 2026-05-06 14:55:21 +01:00
test_translators feat: pluggable image-to-text service with OpenAI vision backend (#1038) 2026-07-12 12:47:04 +01:00
__init__.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_prompt_manager.py fix: avoid swallowing prompt manager interrupts 2026-05-26 10:37:21 -04:00
test_prompt_manager_edge_cases.py Update to enable knowledge extraction using the agent framework (#439) 2025-07-21 14:31:57 +01:00
test_python_api_client.py Merge pull request #955 from jmolz/fix-socket-client-bare-excepts 2026-05-27 13:16:33 +01:00