Commit Graph

9024 Commits

Author SHA1 Message Date
Bartosz Taudul
8259cd6aff Don't waste time calculating embeddings that will be ignored. 2025-07-12 11:50:21 +02:00
Bartosz Taudul
c641787ed1 Bump usearch to 2.17.9. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
0db765a684 Indent list items text. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
75c1735695 Fix word wrap when the first continued word requires line break. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
ddc3d8884f Fix font ranges. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
9e593ce61c Support hand pointer mouse cursor on Wayland. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
5778c5ef9f Fix code block clashes. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
fde94e10d4 Implement printing markdown. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
5a6b51c245 Track hover status in PrintTextWrapped. 2025-07-12 11:50:20 +02:00
Bartosz Taudul
64ec3f6e3f Add spacing after an expanded think section. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
b521064875 Add spacing between chat turns. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
de9c90673e Do not copy strings. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
295b597835 Load all characters from fonts.
It's not that much more. The majority of the font texture is font awesome.
The size of the font texture (2K x 4K) stays the same with this change.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
5ccd05d2a5 Rework chat rendering. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
33e55c32f7 Remove current time from system prompt.
It makes little sense to provide it, when it's already in the system
reminder.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
735ef3b9b8 Use LLM tools through a pointer. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
2ffae6c626 Don't repeat text. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
ceb635d297 Rearrange order of predefined API providers. 2025-07-12 11:50:19 +02:00
Bartosz Taudul
cffc7abff7 Unify API urls. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
31cd82f78d When managing context don't stop after first removal if quota is not met. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
30c2f45c2c Disable tool calls in debug replies. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
e0820587a5 Add md4c. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
9c648232a8 Disable LLM integration on emscripten. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
ec205fa854 Move embed utility to a separate project.
This has to be separate to build a host executable during cross-compilation
(e.g. on emscripten builds).
2025-07-12 11:50:18 +02:00
Bartosz Taudul
111f68052f No LLM libs on emscripten. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
84d829454c Require translating tool output to user's language. 2025-07-12 11:50:18 +02:00
Bartosz Taudul
3d3fb0591d Add LLM debug mode. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
e693a1923e Delta content may be null.
Compatibility with llama-server.
2025-07-12 11:50:17 +02:00
Bartosz Taudul
7cae20d572 Implement key repeat in BackendWayland. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
8c697479c2 Cache calculated embeddings. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
27a17eb4ff Calculate manual chunks in TracyLlmTools constructor. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
f6f602da32 Add cache dir support. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
5f9491264b Rename Tracy AI to Tracy Assist. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
90334f8db2 Remove <think> usage from reminder, as it's now forced. 2025-07-12 11:50:17 +02:00
Bartosz Taudul
0fff110338 Improve system reminder mechanism.
Previously the reminder was prepended to each user message and each one did
persist in the chat history. This change injects the system reminder into
the assistant output, without storing it in the history.

The change also adds an initial <think> tag to each of the assistant replies
to force the thinking process.
2025-07-12 11:50:16 +02:00
Bartosz Taudul
fc095be081 Limit user manual search results to fit in context. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
72ed1e2691 Remove non-existing function. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
e6bbfbdcf0 Fix locks. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
de4ea095e6 Fix typo. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
b00d4e36a8 Fix glfw backend. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
e9db22b175 Make the user manual queries verbose. 2025-07-12 11:50:16 +02:00
Bartosz Taudul
cadfa3f9fb Change user manual embeddings chunking strategy.
The source is now the markdown text, not latex. Each embedding is now
a single paragraph from the manual. The search now returns whole sections
from the manual matching the query.
2025-07-12 11:50:16 +02:00
Bartosz Taudul
2e598ee548 Add tracy manual converted to markdown.
The following command was used:

pandoc --wrap=none --reference-location=block --number-sections -s tracy.tex -o tracy.md

This should be a part of the build process, but that would require pandoc,
which is not something users may have installed.
2025-07-12 11:50:15 +02:00
Bartosz Taudul
35775c0ad9 Another place where line may not have contents. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
c758ca9b87 Store chunk data as pointer + length. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
a20c06b041 Line content may be null. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
59eb0fc2b5 Detect embedding failure early on. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
b4689fe88f Check for HTTP return codes in FetchWebPage(). 2025-07-12 11:50:15 +02:00
Bartosz Taudul
70ede04ede Allow setting user agent for tools. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
d5b3de6b3a Fix aliasing of button names in options. 2025-07-12 11:50:15 +02:00