fleet-memory/hindsight-api/tests
Nicolò Boschi ba99b4422a
fix: misc perf improvements (#133)
* fix: misc perf improvements

* more tests

* fix test

* fix: update test files for new extract_facts_from_text signature

- Replace test_fact_extraction_token_analysis with test_fact_extraction_basic_analysis
  using inline sample content instead of external file
- Update test_fact_extraction_output_ratio.py to unpack 3 return values
  (facts, chunks, usage) instead of 2

* fix: make temporal tests more flexible for LLM variation

- test_temporal_absolute_conversion: check occurred_start field instead of
  requiring specific text in facts
- test_date_field_calculation_yesterday: make assertions conditional on
  having temporal data, add more content for better extraction
- test_temporal_ordering: reduce minimum required facts from 3 to 2
2026-01-08 22:49:04 +01:00
..
fixtures rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
__init__.py rename to hindsight (#2) 2025-11-25 19:28:26 +01:00
conftest.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_admin_backup_restore.py feat: run db migrations offline (optionally) (#114) 2026-01-07 15:49:51 +01:00
test_agents_api.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_batch_chunking.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_causal_relations.py fix: duplicated causal relationships and token optimization (#126) 2026-01-08 14:43:48 +01:00
test_causal_relationships.py fix: duplicated causal relationships and token optimization (#126) 2026-01-08 14:43:48 +01:00
test_chunking.py improve retain performances, caching and tests 2025-12-08 18:21:56 +01:00
test_combined_scoring.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_custom_embedding_dimension.py feat: support cohere as embeddings and reranker (#122) 2026-01-08 11:41:15 +01:00
test_document_tracking.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_extensions.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_fact_extraction_analysis.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_fact_extraction_output_ratio.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_fact_extraction_quality.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_fact_ordering.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_http_api_integration.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_link_utils.py prepare for release 2025-12-03 11:52:25 +01:00
test_llm_provider.py fix: ollama structured support (#63) 2025-12-22 16:35:24 +01:00
test_llm_token_metrics.py feat: add metrics for llm call latency (#120) 2026-01-08 11:40:34 +01:00
test_load_large_batch.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_mcp_local.py feat: add local mcp server (#32) 2025-12-16 10:50:20 +01:00
test_mcp_routing.py fix(mcp): add back bank list and create_bank tools (#123) 2026-01-08 14:02:28 +01:00
test_metrics.py feat: add metrics for llm call latency (#120) 2026-01-08 11:40:34 +01:00
test_multilingual.py ci: fix flak tests (#131) 2026-01-08 18:44:30 +01:00
test_observations.py feat: delete document from ui (#71) 2025-12-23 13:54:06 +01:00
test_per_operation_llm_config.py feat: support different provider/models per operation (#125) 2026-01-08 14:02:57 +01:00
test_query_analyzer.py fix: ci and ui build (#9) 2025-12-03 15:47:53 +01:00
test_retain.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
test_schema_isolation.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_search_trace.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_sql_schema_safety.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_temporal_ranges.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
test_think.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00