diff --git a/hindsight-api/hindsight_api/engine/memory_engine.py b/hindsight-api/hindsight_api/engine/memory_engine.py index 91e5d20b..768d962f 100644 --- a/hindsight-api/hindsight_api/engine/memory_engine.py +++ b/hindsight-api/hindsight_api/engine/memory_engine.py @@ -3783,7 +3783,7 @@ Guidelines: SELECT id, canonical_name, mention_count, first_seen, last_seen, metadata FROM {fq_table("entities")} WHERE bank_id = $1 - ORDER BY mention_count DESC, last_seen DESC + ORDER BY mention_count DESC, last_seen DESC, id ASC LIMIT $2 OFFSET $3 """, bank_id, diff --git a/hindsight-docs/docs/changelog/index.md b/hindsight-docs/docs/changelog/index.md index 5c048043..d3870782 100644 --- a/hindsight-docs/docs/changelog/index.md +++ b/hindsight-docs/docs/changelog/index.md @@ -8,11 +8,48 @@ This changelog highlights user-facing changes only. Internal maintenance, CI/CD, For full release details, see [GitHub Releases](https://github.com/vectorize-io/hindsight/releases). -## [Unreleased] +## [0.3.0](https://github.com/vectorize-io/hindsight/releases/tag/v0.3.0) **Features** -- Add per-request token usage tracking to retain and reflect endpoints for cost monitoring and billing integration. +- Add memory tags so you can label and filter memories during recall/reflect. ([`20c8f8b`](https://github.com/vectorize-io/hindsight/commit/20c8f8b)) +- Allow choosing different AI providers/models per operation. ([`e6709d5`](https://github.com/vectorize-io/hindsight/commit/e6709d5)) +- Add Cohere support for embeddings and reranking. ([`4de0730`](https://github.com/vectorize-io/hindsight/commit/4de0730)) +- Add configurable embedding dimensions and OpenAI embeddings support. ([`70de23e`](https://github.com/vectorize-io/hindsight/commit/70de23e)) +- Support custom base URLs for OpenAI-style embeddings and Cohere endpoints. ([`fa53917`](https://github.com/vectorize-io/hindsight/commit/fa53917)) +- Add LiteLLM gateway support for routing LLM/embedding requests. ([`d47c8a2`](https://github.com/vectorize-io/hindsight/commit/d47c8a2)) +- Add multilingual content support to improve handling and retrieval across languages. ([`c65c6a9`](https://github.com/vectorize-io/hindsight/commit/c65c6a9)) +- Add delete memory bank capability. ([`4b82d2d`](https://github.com/vectorize-io/hindsight/commit/4b82d2d)) +- Add backup/restore tooling for memory banks. ([`67b273d`](https://github.com/vectorize-io/hindsight/commit/67b273d)) + +**Improvements** + +- Add retention modes to control how memories are extracted and stored. ([`fb31a35`](https://github.com/vectorize-io/hindsight/commit/fb31a35)) +- Add offline (optional) database migrations to support restricted/air-gapped deployments. ([`233bd2e`](https://github.com/vectorize-io/hindsight/commit/233bd2e)) +- Add database connection configuration options for more flexible deployments. ([`33fac2c`](https://github.com/vectorize-io/hindsight/commit/33fac2c)) +- Load .env automatically on startup to simplify configuration. ([`c06d9b4`](https://github.com/vectorize-io/hindsight/commit/c06d9b4)) +- Expose an operation ID from retain requests so async/background processing can be tracked. ([`1dacd0e`](https://github.com/vectorize-io/hindsight/commit/1dacd0e)) +- Add per-request LLM token usage metrics for monitoring and cost tracking. ([`29a542d`](https://github.com/vectorize-io/hindsight/commit/29a542d)) +- Add LLM call latency metrics for performance monitoring. ([`5e1f13e`](https://github.com/vectorize-io/hindsight/commit/5e1f13e)) +- Include tenant in metrics labels for better multi-tenant observability. ([`1ffc2a4`](https://github.com/vectorize-io/hindsight/commit/1ffc2a4)) +- Add async processing option to MCP retain tool for background retention workflows. ([`37fc7fb`](https://github.com/vectorize-io/hindsight/commit/37fc7fb)) + +**Bug Fixes** + +- Fix extension loading in multi-worker deployments so all workers load extensions correctly. ([`f5f3fca`](https://github.com/vectorize-io/hindsight/commit/f5f3fca)) +- Improve recall performance by batching recall queries. ([`5991308`](https://github.com/vectorize-io/hindsight/commit/5991308)) +- Improve retrieval quality and stability for large memory banks (graph/MPFP retrieval fixes). ([`6232e69`](https://github.com/vectorize-io/hindsight/commit/6232e69)) +- Fix entities list being limited to 100 entities. ([`26bf571`](https://github.com/vectorize-io/hindsight/commit/26bf571)) +- Fix UI only showing the first 1000 memories. ([`67c1a42`](https://github.com/vectorize-io/hindsight/commit/67c1a42)) +- Fix duplicated causal relationships and improve token usage during processing. ([`49e233c`](https://github.com/vectorize-io/hindsight/commit/49e233c)) +- Improve causal link detection accuracy. ([`2a00df0`](https://github.com/vectorize-io/hindsight/commit/2a00df0)) +- Make retain max completion tokens configurable to prevent truncation issues. ([`7715a51`](https://github.com/vectorize-io/hindsight/commit/7715a51)) +- Fix Python SDK not sending the Authorization header, preventing authenticated requests. ([`39e3f7c`](https://github.com/vectorize-io/hindsight/commit/39e3f7c)) +- Fix stats endpoint missing tenant authentication in multi-tenant setups. ([`d6ff191`](https://github.com/vectorize-io/hindsight/commit/d6ff191)) +- Fix embedding dimension handling for tenant schemas in multi-tenant databases. ([`6fe9314`](https://github.com/vectorize-io/hindsight/commit/6fe9314)) +- Fix Groq free-tier compatibility so requests work correctly. ([`d899d18`](https://github.com/vectorize-io/hindsight/commit/d899d18)) +- Fix security vulnerability (qs / CVE-2025-15284). ([`b3becb6`](https://github.com/vectorize-io/hindsight/commit/b3becb6)) +- Restore MCP tools for listing and creating memory banks. ([`9fd5679`](https://github.com/vectorize-io/hindsight/commit/9fd5679)) ## [0.2.0](https://github.com/vectorize-io/hindsight/releases/tag/v0.2.0) diff --git a/uv.lock b/uv.lock index 12150df2..229af760 100644 --- a/uv.lock +++ b/uv.lock @@ -1257,7 +1257,7 @@ wheels = [ [[package]] name = "hindsight-all" -version = "0.2.1" +version = "0.3.0" source = { editable = "hindsight" } dependencies = [ { name = "hindsight-api" }, @@ -1281,7 +1281,7 @@ provides-extras = ["test"] [[package]] name = "hindsight-api" -version = "0.2.1" +version = "0.3.0" source = { editable = "hindsight-api" } dependencies = [ { name = "alembic" }, @@ -1397,7 +1397,7 @@ dev = [ [[package]] name = "hindsight-client" -version = "0.2.1" +version = "0.3.0" source = { editable = "hindsight-clients/python" } dependencies = [ { name = "aiohttp" }, @@ -1431,7 +1431,7 @@ provides-extras = ["test"] [[package]] name = "hindsight-dev" -version = "0.2.1" +version = "0.3.0" source = { editable = "hindsight-dev" } dependencies = [ { name = "hindsight-api" }, @@ -1466,7 +1466,7 @@ dev = [ [[package]] name = "hindsight-embed" -version = "0.2.1" +version = "0.3.0" source = { editable = "hindsight-embed" } dependencies = [ { name = "httpx" },