github HKUDS/LightRAG v1.5.9rc1

48 minutes ago

Important Notes

v1.5.9rc1 is a release candidate. Please test it on a copy of your data before upgrading production.

Highlights

1. lightrag, a command-line client for a running server

The new lightrag command talks to a running lightrag-server over its REST API. It uploads and inserts documents, runs queries, reads document and pipeline status (with --wait until processing ends), and deletes or clears documents behind --yes. Every command prints one JSON document and returns a meaningful exit code, so it fits scripts, CI jobs and coding agents.

  • It is also published as its own package, lightrag-cli, whose only dependency is aiohttp: pip install lightrag-cli installs the client without the server stack. lightrag-hku depends on the lightrag-cli release of the same version, so a server installation has the command too.
  • It authenticates with the server's API key (--api-key or LIGHTRAG_API_KEY). A server protected only by AUTH_ACCOUNTS needs LIGHTRAG_API_KEY set as well.
  • See docs/ClientCLI.md.

2. Embedding token limits counted with the embedding model's own tokenizer

EMBEDDING_TOKEN_LIMIT used to be checked with a tokenizer that is not the embedding model's, which undercounts for many models (about 1.3x on Latin text for bge-m3, multilingual-e5 and jina-embeddings-v3). A chunk LightRAG considered within the limit could still be rejected by the embedding endpoint.

  • The limit is now enforced with the embedding function's own counter everywhere a text is sized for embedding: the final ingestion split, entity and relation vectors, summaries, the semantic chunker and custom chunks.
  • New EMBEDDING_TOKENIZER setting (--embedding-tokenizer): hf:<name> or hf:/absolute/path for a local Hugging Face tokenizer.json, tiktoken:<encoding>, or tiktoken-model:<model>. Left unset, the counter is the tiktoken encoding of an OpenAI EMBEDDING_MODEL, and cl100k_base for every other model.
  • Both Docker images bundle the BAAI/bge-m3 tokenizer, so EMBEDDING_TOKENIZER=hf:BAAI/bge-m3 works in a container with no further setup. For a source run, fetch it with lightrag-download-cache --hf-tokenizers (needs the hf-tokenizer extra). The server never downloads a tokenizer at runtime.
  • LightRAG compares its local count with the token usage the provider reports, and logs a warning when texts are at risk of exceeding the model's real limit. That warning is the signal to set EMBEDDING_TOKENIZER.
  • The setting only measures texts. It can be changed at any time, and stored vectors stay valid.
  • See Embedding Tokenizer in docs/LightRAG-API-Server.md.

3. Ingestion survives provider rate limits

  • The openai, azure_openai, jina and zhipu bindings and the reranker now wait out a throughput 429 (honoring Retry-After) for up to the call's timeout, where they used to give up after about 8 seconds.
  • A flush that is throttled part-way keeps the vectors of the batches that succeeded, and the pipeline re-runs a transient flush failure in place (after 15 s, 30 s and 60 s) before failing the batch. A per-minute embedding quota no longer makes a large document impossible to ingest.
  • Sizing guidance is in Embedding Rate Limits in docs/LightRAG-API-Server.md.

4. Security hardening

  • CORS_ORIGINS defaults to same-origin only (see Breaking Changes).
  • Removing an account or changing its password in AUTH_ACCOUNTS now revokes the tokens issued to it.
  • Resource bounds on untrusted input: a limit on one document's parsed text (MAX_DOCUMENT_TEXT_BYTES), HTTP 413 for oversized streamed request bodies on every route, linear-time matching in the native Markdown and DOCX parsers, and SVG rasterization in a child process with CPU and memory limits.
  • uv.lock was refreshed to releases that fix published advisories in dependencies. The Docker images install from this lock.

5. Storage, query and tools

  • PostgreSQL without runtime DDL. POSTGRES_AUTO_MIGRATE=false runs LightRAG against a schema an administrator provisioned, with DML-only credentials. Startup validates the schema and changes nothing. See docs/PostgreSQLNoDDL.md. PGGraphStorage (AGE) is not supported in this mode.
  • Query-answer cache follows the corpus. The cache key now includes a per-workspace corpus version, so an answer cached before a document was added or deleted is no longer served. DELETE /documents/query_cache clears only the query-answer cache.
  • Bounded local retrieval. Local retrieval reads a bounded, ranked set of relation candidates and no longer every edge of every seed entity. Neo4j, PostgreSQL and Memgraph rank and cut inside the database. ENABLE_RELATION_CANDIDATE_LIMIT=false turns it off.
  • Graph edits are serialized on every backend. A rename, merge or entity deletion now takes the workspace admin lock on all graph stores, which closes a race that could lose the relation between two concurrently edited entities.
  • New and extended tools: lightrag-export-graph streams a workspace's graph to jsonl, csv or graphml. migrate_graph_storage now also migrates between NetworkXStorage and Neo4JStorage, with a separate workspace for each side.
  • Providers: Cohere Embed v4 and inference-profile ARNs for Bedrock embeddings, a VoyageAI embedding endpoint override with setup wizard support, and prompt-cache usage reporting for Anthropic, Bedrock, Zhipu and the OpenAI Responses API.
  • Parsers: YAML front matter is kept verbatim by the native Markdown parser, and the native DOCX parser reads Korean list labels, headings and captions.
  • Smaller Docker images: about 1.2 GB on disk, down from 2.8 GB (lite: 0.9 GB, down from 2.0 GB).

Breaking Changes

  • CORS_ORIGINS defaults to same-origin only (was *). A browser app served from another origin that calls the LightRAG API directly now fails its cross-origin requests. Fix: list its origin in CORS_ORIGINS (comma-separated). The bundled WebUI and non-browser clients are not affected.
  • A document whose parsed text exceeds 5 MiB (UTF-8) is refused. /documents/text and /documents/texts answer HTTP 413, and every other ingestion path marks the document FAILED before chunking. Fix: raise MAX_DOCUMENT_TEXT_BYTES, or set it to 0 to disable the limit, at the cost of memory growing with the document's text.
  • Neo4j and Memgraph refuse to start on duplicate entity_id vertices. Both storages now hold a uniqueness constraint on entity_id. LightRAG's own writes do not create duplicates; they come from writes made outside LightRAG or from old data. Fix: the error message names some of the duplicated ids and the query that lists them all. Merge or remove the duplicates, then start again.
  • Cohere Embed v3 on Bedrock is no longer supported (cohere.embed-english-v3, cohere.embed-multilingual-v3). Bedrock rejects any text over 2,048 characters for these models, so the server now refuses to start with them. Fix: use Cohere Embed v4 (us.cohere.embed-v4:0 or global.cohere.embed-v4:0) or Titan v2, and re-embed the workspace with lightrag-rebuild-vdb.
  • Workspaces ingested with v1.4.16: operations on a shared chunk are refused. Deleting, reprocessing or rolling back a document whose chunk another document also uses now returns HTTP 409, where it used to delete the other document's text, vectors and graph evidence. Fix: stop all writers for that workspace, then run python -m lightrag.tools.repair_shared_chunks to preview and --apply to repair. If document status or the graph is on OpenSearch, defer the repair as described in docs/design/PurgeRecoveryContract.md.
  • SDK: claude_3_opus_complete, claude_3_sonnet_complete and claude_3_haiku_complete are removed from lightrag.llm.anthropic. Their hard-coded models are retired, so every call already failed. Fix: use anthropic_complete with a current model.
  • SDK: ainsert_custom_chunks patches only documents it created after the upgrade. It now marks its documents (full_docs.parse_format = "custom_chunks"), and patch mode accepts only marked documents. Custom-chunk documents created by an earlier version can no longer be patched, and chunk text containing <|CHUNK_SEP|> is rejected. Fix: delete and re-insert a document that needs patching.

Upgrade Notes

  1. Users sign in again once. With AUTH_ACCOUNTS configured, tokens issued before the upgrade are rejected. Servers sharing one TOKEN_SECRET accept each other's tokens only for accounts with the same password entry.
  2. Cached query answers are recomputed once, because the answer-cache key now includes the corpus version. DELETE /documents/query_cache reclaims the old rows. Downgrading: with a JSON configuration storage, an earlier version refuses to start on a workspace whose snapshot holds the new corpus_version row. Remove that row before downgrading.
  3. PostgreSQL: the first start widens LIGHTRAG_RELATION_CHUNKS.id to VARCHAR(1024), without rewriting the table. No action is needed.
  4. A throttled request now fails later. A request the provider keeps answering with 429 waits up to EMBEDDING_TIMEOUT (default 30 s) for embeddings, the role's LLM timeout for completions (QUERY_LLM_TIMEOUT default 240 s, KEYWORD_LLM_TIMEOUT 60 s) and RERANK_TIMEOUT (default 30 s) for reranking, where it used to fail after about 8 s. Lower those timeouts if a throttled query should fail sooner. Under a per-minute embedding quota, set EMBEDDING_TIMEOUT to 60 or more. Zhipu quota, balance and plan 429s still fail after about 8 s.
  5. Ollama-compatible /api/generate streams by default. A request that omits stream now gets NDJSON, as with real Ollama and /api/chat. A client that relied on the single-JSON default must send "stream": false.
  6. A blank response_type is rejected by the query endpoints (HTTP 422). Omit the field to get the default format. The SDK treats a blank value as the default.
  7. Non-OpenAI embedding models: check the server log after the first ingestion. If it reports a provider/local token ratio above 1, or warns that texts are at risk, set EMBEDDING_TOKENIZER (see Highlights).
  8. Installing from a checkout with pip: name the CLI next to the server, pip install -e ./lightrag-cli -e ".[api]". Otherwise pip looks for the pinned lightrag-cli release on PyPI. uv sync needs no change.
  9. The same file under NFC and NFD spellings of its name (for example, uploaded from macOS and from Windows) is now treated as one document name by the duplicate check.

What's New

  • perf(operate): memoize per-request token counts in the query total-budget fitter by @shadowinlife in #4642
  • feat(voyageai): wizard support and EMBEDDING_BINDING_HOST endpoint override by @danielaskdd in #4691
  • Support Cohere Embed v4 and model ARNs in Bedrock embeddings by @xixi-box in #4728
  • Support Bedrock application inference profile ARNs for embeddings by @danielaskdd in #4780
  • fix(docker): store the venv once and keep uv's cache out of the image by @rbioteau in #4765
  • feat(openai_responses): track provider cached prompt tokens by @Podwarden in #4745
  • feat(anthropic): report prompt cache usage and allow caching the system prompt by @Vishwamitra in #4729
  • feat(bedrock): report prompt cache usage and allow caching the system prompt by @Podwarden in #4743
  • feat(tools): add lightrag-export-graph, a streaming graph exporter by @amal-antony-dev in #4734
  • feat(postgres): support pre-provisioned schemas without runtime DDL by @MikGiNwong in #4726
  • perf(query): skip unused KG question embeddings by @DivenLoong in #4793
  • feat(zhipu): track provider cached prompt tokens by @leninworld in #4796
  • feat(embedding): apply RFC 4462 token budgets across core by @1m55555555 in #4708
  • feat(embedding): check the token counter against provider-reported usage by @danielaskdd in #4813
  • feat(embedding): report provider usage from five more bindings by @danielaskdd in #4816
  • feat(embedding): count token budgets with a local Hugging Face tokenizer by @xinpingzh in #4853
  • feat(tools): migrate graphs between NetworkX and Neo4j (migrate_graph_storage Phase 2) by @amal-antony-dev in #4845
  • feat(api): add DELETE /documents/query_cache to clear only the query-answer cache by @AdalbertoDam in #4477
  • feat(query): bound the relation candidates local retrieval reads by @Vishwamitra in #4795
  • feat(kg): rank and cut relation candidates inside PostgreSQL and Memgraph by @danielaskdd in #4894
  • perf(memgraph): batch the degree and edge reads by @danielaskdd in #4915
  • Invalidate query-answer cache with a per-workspace corpus version by @xixi-box in #4875
  • feat(tools): per-side workspaces for migrate_graph_storage by @amal-antony-dev in #4878
  • feat(markdown): keep YAML front matter verbatim in the native extractor by @danielaskdd in #4963
  • feat(core): make custom-chunk documents self-describing and patchable only when created by ainsert_custom_chunks by @Sanskar1724 in #4843
  • feat(client): add thin REST client and JSON CLI for lightrag-server by @LowmistLMT in #4899
  • fix(purge): repair shared legacy chunks offline by @juemimgcd in #4932
  • build(cli): publish lightrag_cli as the separate lightrag-cli distribution by @danielaskdd in #4974

What's Changed

  • docs: give the PGGraphStorage migration a Compose procedure by @danielaskdd in #4644
  • fix: parse EMBEDDING_USE_BASE64 and NEO4J_KEEP_ALIVE with the shared boolean rules by @leninworld in #4646
  • fix(api): isolate default hosts for cross-provider roles by @kabishou11 in #4643
  • chore(deps): bump the python-minor-patch group across 1 directory with 15 updates by @dependabot[bot] in #4658
  • fix(summary): size summary groups by the prompt's JSON lines by @MohammadHijjawi97 in #4693
  • fix(graph): redirect relations stored towards a merged entity by @kongxinjun in #4686
  • chore(deps): bump the frontend-minor-patch group in /lightrag_webui with 2 updates by @dependabot[bot] in #4712
  • chore(deps): bump react-router-dom from 7.18.5 to 7.18.6 in /lightrag_webui in the react group by @dependabot[bot] in #4709
  • chore(deps-dev): bump the build-tools group across 1 directory with 3 updates by @dependabot[bot] in #4711
  • chore(deps): bump the ui-components group in /lightrag_webui with 2 updates by @dependabot[bot] in #4710
  • chore(deps): bump anthropic from 2.8.0 to 2.9.0 in the llm-providers group by @dependabot[bot] in #4654
  • chore(deps): bump pymongo from 4.19.0 to 4.20.0 in the storage group by @dependabot[bot] in #4655
  • chore(deps): bump the web-framework group across 1 directory with 2 updates by @dependabot[bot] in #4656
  • chore(deps): bump the dev-tools group across 1 directory with 2 updates by @dependabot[bot] in #4657
  • fix(postgres): add id tie-breaker to doc status pagination by @Shizoqua in #4669
  • fix(lmdeploy): give each generate call its own session id by @Shizoqua in #4667
  • docs: accept stale moved objects after deleting a renamed or merged source by @danielaskdd in #4716
  • test(kg): pin the UNKNOWN placeholder kept as the only type vote by @connabyss in #4664
  • fix(extraction): read JSON array and null fields as text by @MohammadHijjawi97 in #4714
  • fix: escape workspace names in Redis key patterns and doc id parsing by @Vishwamitra in #4707
  • fix(operate,utils): support 4+ backtick and tilde fences in strip_markdown_code_fence and rebuild JSON detection by @zhengqiuyang in #4692
  • fix(nvidia): let the outer retry own SDK retries by @chuenchen309 in #4715
  • fix(table_markup): add attribute-boundary guard to _TABLE_FORMAT_RE by @passionworkeer in #4671
  • test: trim JSON fence, tolerant-load and keyword parsing tests by @danielaskdd in #4717
  • fix(bedrock): mark context-window-limited responses as truncated by @chuenchen309 in #4705
  • fix(parser): keep a whitespace CHUNK_F_SPLIT_BY_CHARACTER separator by @MohammadHijjawi97 in #4663
  • fix(api): strip bearer token in bearer_token to match FastAPI by @passionworkeer in #4679
  • fix(gemini): count thinking tokens as completion tokens by @Shizoqua in #4660
  • fix(parser/external): treat non-dict critical_file manifests as stale by @passionworkeer in #4685
  • fix(parser): let the debug CLI run without the native DOCX dependencies by @hyeonsang010716 in #4694
  • fix(gemini): report cached prompt tokens by @pcbeingused33 in #4687
  • fix(llm_roles): do not inject timeout=None when default_llm_timeout is absent by @passionworkeer in #4675
  • test(llm): trim overlapping LLM timeout tests by @danielaskdd in #4741
  • fix(utils): sanitize lone surrogates and invalid UTF-8 in safe_unicode_decode by @passionworkeer in #4681
  • test(parser/external): trim redundant tests and pin the size-only cache branch by @danielaskdd in #4740
  • fix(ui_customization): keep BCP 47 extension subtags lowercase in normalize_locale by @passionworkeer in #4673
  • docs(parser): list published third-party engines by @hyeonsang010716 in #4690
  • fix: preserve system messages in LlamaIndex conversation history by @123XieC in #4689
  • refactor(docx/omml): remove the unreachable linear-format cleaner by @passionworkeer in #4677
  • fix(addon_params): skip on_change for empty update and |= operations by @passionworkeer in #4683
  • test(addon_params): consolidate addon_params tests and pin the unpinned writes by @danielaskdd in #4742
  • fix(webui): accessible names, keyboard operability and focus for shared primitives by @shadowinlife in #4700
  • fix(webui): color-scheme, reduced-motion fallback, dynamic lang and AA destructive contrast by @shadowinlife in #4704
  • Respect indentation for native Markdown code fences by @LimbC-C in #4738
  • fix(webui): make graph property editing keyboard-accessible and label graph inputs by @shadowinlife in #4701
  • fix(webui): keyboard access, labels, URL state and progress semantics for document panel by @shadowinlife in #4702
  • fix(webui): confirm destructive clear, announce streaming, fix shell focus and nesting by @shadowinlife in #4703
  • fix(query): keep the naive prompt within max_total_tokens by @Zhuoxi2000 in #4665
  • build(deps): refresh uv.lock to pick up security fixes (159 → 1 advisories) by @samuelrojas-dev in #4739
  • fix(webui): announce the whole streamed answer to screen readers by @danielaskdd in #4767
  • fix(lollms): send the embedding API key as a Bearer token by @leninworld in #4759
  • fix(extraction): match a gleaned relation in either direction by @MohammadHijjawi97 in #4755
  • fix(docx/omml): keep the default separator when m:sepChr omits m:val by @Shizoqua in #4753
  • build(deps): bump sigstore/cosign-installer from 4.1.3 to 4.1.4 in the github-actions group by @dependabot[bot] in #4774
  • fix(graph): serialize renames, merges and entity deletions on every backend by @kongxinjun in #4724
  • fix(purge): keep a candidate that carries no source at all by @kongxinjun in #4721
  • test(graph): trim the admin-write gate and keyed-lock tests by @danielaskdd in #4781
  • fix(rerank): handle null DashScope output by @YellowPlusRed in #4746
  • fix(rebuild): read every surviving chunk's records under the FIFO cap by @MohammadHijjawi97 in #4756
  • fix(nvidia): stop retrying permanent spend-stop 429s in nvidia_openai_embed by @Shizoqua in #4751
  • fix(tools): reject hash-password usernames that cannot form an AUTH_ACCOUNTS entry by @leninworld in #4736
  • fix(graph): re-embed edited relations from the ingestion content layout by @MohammadHijjawi97 in #4754
  • fix(kg): reap an expired lease before remove_terminal on scan job store by @Shizoqua in #4749
  • fix(llm): retry JSON decoding failures from OpenAI gateways by @original4422 in #4757
  • fix(llm): retry JSON decoding failures in openai_embed by @danielaskdd in #4787
  • Filter dangling edges from capped Neo4j fallback graphs by @xixi-box in #4732
  • fix(gemini): retry streaming requests that fail before the first chunk by @leninworld in #4763
  • Report truncated neighbor scans in the Neo4j fallback by @xixi-box in #4733
  • fix(bedrock): let the outer retry own botocore retries by @chuenchen309 in #4720
  • fix: rebalance undersized fixed-token tail chunks by @original4422 in #4747
  • Honor continuous DOCX list numbering by @LimbC-C in #4761
  • refactor(anthropic): remove the claude_3_* helpers for retired models by @Podwarden in #4744
  • fix(query): partition the answer cache by the chunk reranker by @MohammadHijjawi97 in #4782
  • test(docx): trim and merge numbering resolver tests by @danielaskdd in #4788
  • Stabilize Redis document pagination with an ID tiebreaker by @xixi-box in #4778
  • fix(tools): treat a blank EMBEDDING_DIM as unset in the repair tools by @leninworld in #4769
  • Preserve literal HTML escapes in inserted document text by @xixi-box in #4786
  • fix(rerank): handle non-object JSON responses by @remote-controlled-man in #4784
  • fix(hf): do not add special tokens twice to a chat-templated prompt by @Shizoqua in #4662
  • fix(api): use the enum/string-safe status reader in track_status summary by @Shizoqua in #4777
  • fix(docx): do not let a hidden placeholder cell block bibliography marking by @Shizoqua in #4772
  • fix(parser): keep the MinerU poll defaults for blank, invalid or non-positive values by @leninworld in #4653
  • fix(docx): unwrap mc:AlternateContent in the native run extractors by @Shizoqua in #4773
  • fix(parser): warn and keep the default on an unrecognized boolean env value by @leninworld in #4649
  • fix(graph): raise VectorStorageConsistencyError when a rename's vector flush fails by @zzjiho in #4651
  • fix(llm): classify provider content-moderation verdicts as non-retryable (Aliyun DashScope Qwen cost/correctness) by @shadowinlife in #4725
  • fix(query): preserve chunks when reranking falls back by @DivenLoong in #4790
  • fix(parser): keep the text of tables nested in DOCX cells in legacy extraction by @MohammadHijjawi97 in #4798
  • fix(webui): keep the empty-graph placeholder after an empty result by @MohammadHijjawi97 in #4797
  • fix(parser): bound the table output a DOCX can ask for by number by @danielaskdd in #4802
  • fix(graph): count a merge target listed among the sources once by @MohammadHijjawi97 in #4800
  • fix(redis): release shared pool on initialization cancellation by @wanghao-SunSky in #4794
  • fix(mongo): rank every label match before limiting the regex fallback by @MohammadHijjawi97 in #4801
  • fix(neo4j): find a label the full-text analyzer indexes no term for by @kongxinjun in #4803
  • docs(core): correct stale rows in the LightRAG Init Parameters table by @divya0795 in #4805
  • fix(purge): preserve relation endpoints beyond the KEEP source limit by @juemimgcd in #4807
  • fix(jina): decode plain float embedding rows from custom endpoints by @Shizoqua in #4809
  • fix(kg): name a damaged doc-status record instead of returning it raw by @Shizoqua in #4811
  • fix(embedding): respect positional token limits by @JennyMa11 in #4814
  • fix: reject nonfinite result-bundle download deadlines by @pengpengyi92 in #4465
  • fix(rerank): skip malformed rows when detecting result format by @JennyMa11 in #4812
  • fix(gemini): send one Content per text so every model returns one vector each by @danielaskdd in #4818
  • fix(embedding): log the at-risk warning once per ratio, without a limit to set by @danielaskdd in #4821
  • fix(bedrock): refuse Cohere Embed v3 and name the 96-text request limit by @danielaskdd in #4841
  • fix(opensearch): rank the wildcard graph view from a complete candidate set by @YashvantHange in #3707
  • fix(evaluation): reject duplicate oracle questions by @kody1126 in #4815
  • fix(neo4j): raise from initialize() when no database could be used by @amal-antony-dev in #4832
  • docs: show Bedrock embedding inference profile configuration by @JackyHsu-X in #4827
  • fix(rerank): keep chunk scoring independent of extra top_n by @JennyMa11 in #4820
  • fix(parser): keep nested table text in native DOCX table cells by @MohammadHijjawi97 in #4834
  • fix(parser): accept text files that start with a bytes-literal prefix by @alialrikabi313 in #4836
  • build(deps): bump the storage group with 2 updates by @dependabot[bot] in #4826
  • build(deps): bump anthropic from 2.9.0 to 2.13.0 in the llm-providers group by @dependabot[bot] in #4825
  • build(deps): bump the python-minor-patch group with 3 updates by @dependabot[bot] in #4829
  • fix(kg): keep one wide character from widening a whole snapshot read by @rbferreira in #4839
  • build(deps): bump langfuse from 4.18.0 to 5.1.0 by @dependabot[bot] in #4831
  • build(deps): bump openai from 2.54.0 to 3.42.0 by @dependabot[bot] in #4830
  • fix(pipeline): include embedded images in parsed document fingerprints by @juemimgcd in #4838
  • fix(query): default a blank response_type in the naive prompt sent to the LLM by @MohammadHijjawi97 in #4833
  • fix(documents): treat NFC and NFD spellings of a filename as one name by @Singmin in #4835
  • fix: estimate missing Responses token totals by @Lanqiao-Luca in #4842
  • fix(parser): extract table cells in legacy PPTX extraction by @Debiddo0506 in #4854
  • fix(gemini): default gemini_embed's own dimension to its declared value by @Shizoqua in #4852
  • fix(lollms): raise on HTTP-200 error envelopes instead of returning error JSON by @aloneangel45 in #4850
  • fix(evaluation): avoid ZeroDivisionError in run() on an empty test dataset by @Shizoqua in #4847
  • fix(query): default blank response_type in the SDK and reject it in REST by @RickyT715 in #4858
  • fix(tools): merge source_id provenance across duplicate graph edges and nodes by @Debiddo0506 in #4857
  • fix(openai): skip token_tracker when response.usage is None by @Debiddo0506 in #4856
  • fix(gemini): report Vertex AI embedding token usage by @Debiddo0506 in #4855
  • fix(docx): render Korean ganada, chosung and circled-number list labels by @zzjiho in #4860
  • fix(api): serve WebUI assets as immutable on Windows by @selvaganesh19 in #4861
  • fix(docx): render koreanCounting, koreanDigital(2) and koreanLegal list labels by @dante01yoon in #4862
  • build(deps): bump lucide-react from 1.76.0 to 1.81.0 in /lightrag_webui in the ui-components group by @dependabot[bot] in #4866
  • build(deps): bump the react group in /lightrag_webui with 2 updates by @dependabot[bot] in #4865
  • build(deps-dev): bump the build-tools group in /lightrag_webui with 3 updates by @dependabot[bot] in #4867
  • test(webui): stop the backend store leaking between test files by @danielaskdd in #4876
  • ci(dependabot): stop automatic updates of the sigma packages by @danielaskdd in #4882
  • fix(bedrock): send Cohere Embed query context as search_query input_type by @Shizoqua in #4872
  • fix(docx): count Hangul body text in the CB1 spacing check by @dante01yoon in #4881
  • docs: correct extraction prompt caching comment by @PohpeDJH in #4874
  • fix(embedding): reject NaN and infinite vectors in EmbeddingFunc by @kongxinjun in #4883
  • fix(openai): wait out rate-limit 429s instead of giving up after 8 s by @kongxinjun in #4893
  • fix(utils): reject embedded NUL in sidecar paths by @zhengqiuyang in #4914
  • fix(neo4j): hold a uniqueness constraint on entity_id by @danielaskdd in #4916
  • fix(memgraph): hold a uniqueness constraint on entity_id by @danielaskdd in #4917
  • fix(jina,rerank): wait out throughput 429s within the call's timeout by @kongxinjun in #4928
  • build(deps): bump tailwind-merge from 3.7.1 to 3.7.2 in /lightrag_webui in the ui-components group by @dependabot[bot] in #4885
  • build(deps): bump mermaid from 11.17.2 to 12.3.0 in /lightrag_webui by @dependabot[bot] in #4886
  • build(deps): bump the llm-providers group with 2 updates by @dependabot[bot] in #4887
  • build(deps): bump pandas from 3.1.1 to 3.1.2 in the data-processing group by @dependabot[bot] in #4888
  • build(deps): bump the python-minor-patch group with 5 updates by @dependabot[bot] in #4889
  • fix(docx): veto Korean figure/table captions in smart_heading by @zzjiho in #4911
  • fix(pipeline): keep embedded batches and re-flush transient flush failures by @danielaskdd in #4929
  • docs: size the embedding quota for the largest document by @danielaskdd in #4939
  • fix(docx/omml): read a bar without m:pos as an underbar by @MohammadHijjawi97 in #4920
  • fix(llm): do not close a caller-supplied http_client in openai_responses by @Shizoqua in #4919
  • fix(prompt): align system prompt's relationship scope rule with the gleaning cross-pass exception by @Shizoqua in #4923
  • fix(docx): read dotted Korean list labels in smart headings by @PohpeDJH in #4912
  • fix(api): return 413 for oversized streamed bodies on every route (supersedes #4926) by @danielaskdd in #4943
  • fix(api): return 413 for oversized streamed bodies on FastAPI routes by @nurlanmnn in #4926
  • fix(kg): store relation tracking keys of two capped names on PostgreSQL and OpenSearch by @kongxinjun in #4903
  • fix(markdown): stop pipe tables at following code fences by @remote-controlled-man in #4927
  • fix(evaluation): write unscored metrics as null in the results JSON by @mekala27-45 in #4890
  • fix(postgres): tolerate a table created concurrently during check_tables by @kongxinjun in #4901
  • fix(docx): stop Korean dot dates from demoting smart_heading's numbered headings by @zzjiho in #4906
  • fix(api): default Ollama /api/generate to streaming by @nanami7777777 in #4937
  • fix(lightrag): warn when embedding_cache_config is enabled (no-op since Apr 2025) by @Shizoqua in #4934
  • fix(auth): reject tokens of removed accounts and changed passwords by @danielaskdd in #4955
  • fix(api): default CORS_ORIGINS to same-origin only by @danielaskdd in #4956
  • fix(pipeline): bound one document's parsed text before chunking by @danielaskdd in #4957
  • fix(mineru): avoid same-name and manifest collisions when hoisting subdir by @2422725977 in #4945
  • fix(parser): preserve structured math elements in OMML limLow subscripts and m:e wrappers by @2422725977 in #4944
  • fix(examples): make the LlamaIndex direct demo complete LLM calls again by @leninworld in #4950
  • fix(parser): match native Markdown line patterns in linear time by @danielaskdd in #4958
  • fix(parser): bound SVG rasterization CPU and memory in the native Markdown engine by @danielaskdd in #4959
  • fix(parser): check DOCX TOC dot leaders in linear time by @danielaskdd in #4961
  • fix(docx): keep an independent series when a clause parent is demoted by @nanami7777777 in #4908
  • fix(parser): keep soft line breaks in legacy PPTX text boxes by @abhisheksharma001 in #4952
  • fix(webui): color the 技术, 科技 and 政策 entity types like their English synonyms by @abhisheksharma001 in #4954
  • fix(docx): read Korean 제N장/절/조 labels in smart_heading by @dante01yoon in #4879
  • fix(zhipu): wait out throughput 429s within the call's timeout by @kongxinjun in #4942
  • chore(webui): drop legend labels no node type can produce by @danielaskdd in #4962
  • fix(lmdeploy): do not pass the query path's stream kwarg to GenerationConfig by @abhisheksharma001 in #4953
  • fix(markdown): read ATX headings indented by up to three spaces by @MohammadHijjawi97 in #4951
  • fix(docx): split digit and letter markers in parenthesized series by @zzjiho in #4946
  • docs(svg): advise CPU-limited hosts on the SVG render budget by @danielaskdd in #4971
  • fix(parser): ignore nested tables when extracting top-level HTML thead by @2422725977 in #4960

New Contributors

Full Changelog: v1.5.8...v1.5.9rc1

Don't miss a new LightRAG release

NewReleases is sending notifications on new releases.