trustgraph/tests/unit
cybermaggedon 0a2ce47a88
Batch embeddings (#668)
Base Service (trustgraph-base/trustgraph/base/embeddings_service.py):
- Changed on_request to use request.texts

FastEmbed Processor
(trustgraph-flow/trustgraph/embeddings/fastembed/processor.py):
- on_embeddings(texts, model=None) now processes full batch efficiently
- Returns [[v.tolist()] for v in vecs] - list of vector sets

Ollama Processor (trustgraph-flow/trustgraph/embeddings/ollama/processor.py):
- on_embeddings(texts, model=None) passes list directly to Ollama
- Returns [[embedding] for embedding in embeds.embeddings]

EmbeddingsClient (trustgraph-base/trustgraph/base/embeddings_client.py):
- embed(texts, timeout=300) accepts list of texts

Tests Updated:
- test_fastembed_dynamic_model.py - 4 tests updated for new interface
- test_ollama_dynamic_model.py - 4 tests updated for new interface

Updated CLI, SDK and APIs
2026-03-08 18:36:54 +00:00
..
test_agent Tool services - dynamically pluggable tool implementations for agent frameworks (#658) 2026-03-04 14:51:32 +00:00
test_base Fix tests (#666) 2026-03-07 23:38:09 +00:00
test_chunking Extract-time provenance (#661) 2026-03-05 18:36:10 +00:00
test_cli Fix/tests (#647) 2026-02-23 22:01:47 +00:00
test_clients trustgraph-base .chunks / .documents confusion in the API (#481) 2025-09-02 17:58:53 +01:00
test_config Structure data mvp (#452) 2025-08-07 20:47:20 +01:00
test_cores Changed schema for Value -> Term, majorly breaking change (#622) 2026-01-27 13:48:08 +00:00
test_decoding Extract-time provenance (#661) 2026-03-05 18:36:10 +00:00
test_direct Fix tests (#663) 2026-03-06 12:40:02 +00:00
test_embeddings Batch embeddings (#668) 2026-03-08 18:36:54 +00:00
test_extract Changed schema for Value -> Term, majorly breaking change (#622) 2026-01-27 13:48:08 +00:00
test_gateway Structured data 2 (#645) 2026-02-23 15:56:29 +00:00
test_knowledge_graph Structured data 2 (#645) 2026-02-23 15:56:29 +00:00
test_query Fix tests (#666) 2026-03-07 23:38:09 +00:00
test_retrieval Fix tests (#666) 2026-03-07 23:38:09 +00:00
test_rev_gateway Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_storage Fix tests (#666) 2026-03-07 23:38:09 +00:00
test_text_completion Structured data 2 (#645) 2026-02-23 15:56:29 +00:00
__init__.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_prompt_manager.py Feature/prompts jsonl (#619) 2026-01-26 17:38:00 +00: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 Structured data 2 (#645) 2026-02-23 15:56:29 +00:00