dify/api/core/rag
EvanYao826 fe29a6585e fix: remove premature db.session operations and validate code language
Remove premature db.session.commit() and db.session.close() calls that
break transaction isolation and cause DetachedInstanceError:

- DatasetRetrieval._on_query: remove commit(), stage audit rows on the
  scoped session for the caller to commit (#37886)
- cloud_edition_billing_rate_limit_check: remove commit() after adding
  rate limit log, upstream session state is no longer flushed (#37885)
- ToolEngine._create_message_files: replace commit()+close() with
  flush() to obtain IDs without ending the transaction (#37884)

Add defensive validation for unsupported code languages in
CodeExecutor.execute_code to prevent sending null language to the
sandbox service (#37874)
2026-06-25 14:16:24 +08:00
..
cleaner refactor(api): type bare dict/list annotations in remaining rag folder (#33775) 2026-03-20 03:31:06 +09:00
data_post_processor chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
datasource feat: trace document retrieval (#37283) 2026-06-11 02:39:59 +00:00
docstore chore: DocumentSegment to Typebase (#35635) 2026-05-12 07:02:17 +00:00
embedding ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
entities docs: enrich generated service API descriptions (#37615) 2026-06-18 08:43:39 +00:00
extractor fix(watercrawl): don't disable request timeouts with timeout=None (#37685) 2026-06-22 03:08:58 +00:00
index_processor chore: make AccountService.load_user use passed session (#37764) 2026-06-24 07:29:12 +00:00
models chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
pipeline chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
rerank ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
retrieval fix: remove premature db.session operations and validate code language 2026-06-25 14:16:24 +08:00
splitter ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
summary_index refactor(api): migrate core RAG layer to SQLAlchemy 2.0 select() API (#34965) 2026-04-11 16:32:20 +00:00
__init__.py Feat/dify rag (#2528) 2024-02-22 23:31:57 +08:00