github topoteretes/cognee v1.6.11
v1.6.11  Retrieval & Connector Improvements

one hour ago

v1.6.11 � Retrieval & Connector Improvements

Release Date: 2026-11-26
Changes: v1.6.10 → v1.6.11

Pull Requests: #6563, #6784


Summary

This release focuses on making retrieval and ingestion more reliable, scalable, and faster. Key additions include a new Granola connector, safer and more tolerant text/encoding handling, and several retrieval performance improvements (BROAD engine moved off the event loop and a larger in-memory store). Numerous bug fixes and internal hardening across Notion/Telegram connectors, embedding execution, and pipeline sharding are also included.

Highlights

  • New Granola connector added to the SDK for ingesting notes from Granola-powered sources.
  • BROAD retrieval now runs off the async event loop and uses a 512 MB in-memory store for better throughput and stability.
  • Default local embedding model updated to pplx-embed-v1-0.6b and re-embed behavior made configurable by settings.
  • Robust handling of text encodings and BOMs (UTF-8/UTF-16/UTF-32) plus PII scanning for XML/YAML files to avoid silent failures.
  • Pipeline sharding and worker-process execution improvements to scale heavy ingestion and re-embedding work.

New Features

  • Granola connector: A new connector is included in the SDK that can ingest content from Granola-based sources and keep notes in sync. This allows you to add Granola as a source for your Cognee memory so Granola notes become searchable and retrievable.
  • Default local embedding model: Local (on-machine) embeddings now default to the pplx-embed-v1-0.6b model. This means out-of-the-box local embeddings will be produced with the newer model, improving embedding quality and consistency for local setups without extra configuration.
  • Configurable re-embed defaults: The re-embed operation (which recomputes vector embeddings for a dataset) now defaults to the project settings. That makes re-embedding use whichever embedding model you configure centrally rather than an implicit internal default.
  • Pipeline sharding and worker process execution: New pipeline shard and worker-process code lets pipeline tasks run in separate worker processes. This enables parallel, isolated execution of heavy ingestion or re-embedding jobs and makes long-running tasks more robust and scalable.

Improvements

  • BROAD retrieval run off the event loop and increased store size: The BROAD retriever (the component that looks for relevant passages across large corpora) now runs its heavy work off the async event loop and uses a 512 MB in-memory store by default. This reduces event-loop blocking, improves throughput on CPU-bound tasks, and reduces flaky timeouts.
  • BROAD memory and timing behavior: BROAD's record store is kept in RAM for faster lookups and the code now measures store size in megabytes and returns clearer error messages when store limits are hit. Limits were aligned to 512 MB to match the new default.
  • Embed calls and fastembed model made non-blocking: Embedding calls—including the fastembed model—are dispatched off the event loop (in threads) to avoid blocking asynchronous processing. This improves responsiveness when embedding is performed during async flows.
  • Chunking tokenization fixes: The code that splits text into token-count-based chunks now correctly counts the space after a word exactly once for both Hugging Face and tiktoken tokenizers. This reduces off-by-one tokenization errors and avoids subtle chunk boundary issues.
  • Better session and capture tooling: Session capture, context extraction, and session-quality checks received refinements to make capture idempotent, more debuggable, and to improve how context is assembled for recall and review.
  • Notion and Telegram connector stability: Notion sync now validates block/body shapes, fails early when expected listing fields are missing, and keeps a synced copy out of the page marker to avoid losing state. Telegram ingestion now distinguishes genuinely unread content from messages that lack content fields.

Performance

  • Faster retrieval throughput: Moving BROAD off the async event loop and keeping its record store in RAM reduces latency and improves throughput for searches across large corpora.
  • Lower latency for embeddings during async flows: Running embedding calls in threads prevents blocking the main event loop, improving overall responsiveness when embedding happens during other async operations.
  • Scalable ingestion and processing: Pipeline sharding and execution in worker processes let you parallelize heavy tasks (like re-embedding large collections), reducing end-to-end processing time for big datasets.

Bug Fixes

  • Text encoding & BOM handling: Better detection and handling for byte order marks (BOMs). UTF-8 BOM cases are made visible and explained to the user; UTF-16 and UTF-32 files marked with a BOM are now correctly ingested instead of failing.
  • Refuse empty encoding and scan XML/YAML for PII: The presort stage now refuses empty text encodings and scans XML/YAML for personally identifiable information (PII) to avoid accidentally indexing sensitive content.
  • Ladybug JSON extension for CI & migration tests: The CI pipeline and migration tests now pick the Ladybug v0.17.0 JSON extension correctly from the wheel so migration tests that depend on it run reliably.
  • Notion sync fixes: Notion sync will now fail early when a listing is missing required fields (results or has_more), reducing silent data loss and making sync failures explicit.
  • Granola deletion & reconciliation: Granola connector now confirms deletions reliably and continues reconciling past a failing note, preventing a single bad note from stopping a whole sync.
  • Telegram message content handling: Fixed logic that determines whether a Telegram message is unread but has no content so such messages are handled correctly.
  • Re-embed behavior and failure handling: Re-embedding now proceeds in larger steps for stability and migrations will not stamp datasets whose re-embed is still in progress.
  • Graph & code graph fixes: The SDK reads newer enola cluster outputs and looks up the repository's own graph rather than the whole graph in code graph tasks—improving accuracy for code search.
  • Migration fixes: Re-keying forked document IDs for older Postgres graphs is now done safely in SQL migrations, preventing broken references during upgrades.

Technical Changes

  • Extensive test and CI updates: Many tests and CI workflows were added or adjusted (including e2e/postgres worker-process suites and BROAD timing benchmarks) to improve coverage for heavy workloads and concurrency.
  • Database schema and adapters: New Postgres source reference tables and multiple graph and vector adapter updates were added to support provenance, source references, and improved storage guarantees.
  • New background/execution utilities: Helpers to run CPU-bound work off the event loop were introduced and several components were refactored to use them (embeddings, BROAD, and pipeline shards).
  • Docs and developer guidance: Added documentation for session capture, BROAD timing variability, and re-embedding a dataset to help operators understand performance and operational choices.
  • Added Granola connector docs and tests: Documentation and tests for the Granola connector were included, along with tests that cover Granola ingestion, forgetting, and delete reconciliation.

Dependency Updates

Updated:

  • dateparser: >=1.2,<2 → >=1.4.3,<2
  • enola-cli: ==0.5.1 → ==0.5.4
  • onnxruntime: >=1.17 → >=1.23
  • pandas: >=2.2.2,<3.0.0 → >=2.2.2,<4.0.0

Compatibility

Component Supported / Required
Python >=3.10,<3.15
pydantic >=2.13
litellm >=1.102.2,<2.0.0
fastapi >=0.116.2,<1.0.0
sqlalchemy >=2.0.39,<3.0.0
lancedb >=0.39.0,<0.40.0
ladybug ==0.22.3

— The Cognee Team · 2026-11-26

Don't miss a new cognee release

NewReleases is sending notifications on new releases.