dify/api/core/rag
-LAN- 04954918a5
Merge commit from fork
* fix(oraclevector): SQL Injection

Signed-off-by: -LAN- <laipz8200@outlook.com>

* fix(oraclevector): Remove bind variables from FETCH FIRST clause

Oracle doesn't support bind variables in the FETCH FIRST clause.
Fixed by using validated integers directly in the SQL string while
maintaining proper input validation to prevent SQL injection.

- Updated search_by_vector method to use validated top_k directly
- Updated search_by_full_text method to use validated top_k directly
- Adjusted parameter numbering for document_ids_filter placeholders

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-08-26 13:51:23 +08:00
..
cleaner fix: drop dead code phase2 unused class (#22042) 2025-07-17 09:33:07 +08:00
data_post_processor fix: validate reranking model attributes before processing (#11930) 2024-12-21 21:23:12 +08:00
datasource Merge commit from fork 2025-08-26 13:51:23 +08:00
docstore Chore: remove duplicate TYPE_CHECKING import (#23013) 2025-07-28 10:04:45 +08:00
embedding make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
entities feat: support metadata condition filter string array (#23111) 2025-07-30 16:13:45 +08:00
extractor [Chore/Refactor] Use centralized naive_utc_now for UTC datetime operations (#24352) 2025-08-22 23:53:05 +08:00
index_processor orm filter -> where (#22801) 2025-07-24 00:57:45 +08:00
models Fix: safe defaults for BaseModel dict fields (#24098) 2025-08-21 21:38:55 +08:00
rerank fix: fix rerank model runner usage (#19008) 2025-04-29 14:51:21 +08:00
retrieval fix(api):Fix the issue of empty and not empty operations failing in k… (#24276) 2025-08-21 14:43:08 +08:00
splitter Remove unnecessary issubclass check (#23455) 2025-08-06 13:43:55 +08:00
__init__.py Feat/dify rag (#2528) 2024-02-22 23:31:57 +08:00