Commit Graph

12 Commits

Author SHA1 Message Date
Thorsten Sommer
fb8e37aaf3
Clean up compiler and inspection warnings 2026-09-06 13:26:56 +02:00
Thorsten Sommer
fe35630eff
Merge branch 'main' into chunk-data
Resolved 29 conflicting files. The notable decisions:

Confidence: main's tool-calling gate (RequiredProviderConfidence) and this
branch's local-RAG gate (DataConfidenceLevel) turned out to be the same rule
on the same axis, so they are now one field. Both tool results and data
sources raise it through RequireProviderConfidence(). The gate checks the
level strictly and no longer exempts providers trusted by configuration:
TrustedProviderIds is documented as applying to data-source security checks
only, and organizations set confidence through DataConfidence
.CustomConfidenceScheme instead. The security axis (DataSecurity, ERI,
IsTrustedForDataSourceSecurityChecks) is unchanged.

Provider creation: main's CreateProvider signature won (hfEndpointKind,
capabilityOverrides, no model parameter); tokenizerPath was added to it and
is set for every provider, including the new Hetzner, IONOS and LiteLLM.
Provider and EmbeddingProvider combine the record parameters, Lua parsing and
Lua serialization of both sides.

File types: main's hierarchy (ODT leaf, WORD parent, PowerPoint without the
legacy .ppt, TABULAR instead of DELIMITED_TABLE) plus this branch's
SPREADSHEET parent with ODS and the xlsm/xlsb/xla/xlam extensions, which the
runtime already reads. Both sides had added a conflicting HTML filter; the
reading family keeps the name, and the export path uses a narrow
HTML_DOCUMENT, following the existing LATEX/TEX split.

Runtime: main's file_data.rs is the base, including the prompt-injection
sanitizer and the extraction routes. Token counting and chunk segmentation
moved into take_released, so they act on the text the filter has released
rather than on text it is still holding. A failed count is logged and left
out instead of ending the extraction, because the app counts such a segment
itself.

Data sources: the participating-provider checks of this branch are kept, and
main's GetAllowedDataSources overload now builds on them. DirectChatService
resolves the launched chat's data source options before the check, so filter
and chat see the same options.

.NET and Rust both build clean; I18N regenerated to 4060 keys.
2026-09-05 21:20:33 +02:00
PaulKoudelka
aafc58b31a showed user default values in expert settings for datasources 2026-08-14 16:02:40 +02:00
PaulKoudelka
15afe1c80c refactored the classes and functions 2026-08-14 14:25:53 +02:00
PaulKoudelka
1a263127f5 replaced embedding_state with index_store as a sqlite name 2026-08-14 12:37:50 +02:00
PaulKoudelka
88999d985c refactored confidence levels and ensured checks work 2026-08-14 12:03:16 +02:00
Paul Koudelka
647c428ebf improved code and made sure components are reused if possible 2026-08-12 14:19:32 +02:00
Paul Koudelka
92e986d9b9 ensured data sources can be renamed and made it secure 2026-08-11 15:22:07 +02:00
Paul Koudelka
c8c1e38475 made tokenizer concurrent and threadsafe 2026-08-10 21:36:01 +02:00
Paul Koudelka
9ab196c13c ensured prompts fit embedding model 2026-08-10 19:42:39 +02:00
PaulKoudelka
2a3a82820c forced overlap on chunks 2026-08-04 15:08:47 +02:00
PaulKoudelka
010f35b08a added retrieval with vector and bm25 search 2026-08-03 20:56:19 +02:00