Commit Graph

8982 Commits

Author SHA1 Message Date
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
Bartosz Taudul
fb0d4f0d82 Make config accessible to all code without extern hacks. 2025-07-12 11:50:15 +02:00
Bartosz Taudul
736a2d3ba2 Indicate forgotten tool outputs in the chat window. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
168ae92b8b Forget old tool replies when available context size runs out. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
7a729e20f3 Do not copy messages to be sent.
Sending the message blocks user input, so chat contents will not change.
2025-07-12 11:50:14 +02:00
Bartosz Taudul
cfc78192da Use common functionality to add messages to chat. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
c035e68770 Don't fail on invalid UTF-8. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
f76c2ab427 Remove empty html tags. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
f3be60e191 Refine tool use. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
9738591d96 GetCurrentTime() can be const. 2025-07-12 11:50:14 +02:00
Bartosz Taudul
f3aceef051 More html cleanup. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
f2ec04be3c Color-code context size meter. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
d52e0e9a19 Cleanup html. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
bbf551e7d3 Ignore tidy errors. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
d1c67a93c6 Make readability.js optional. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
aa6d6c586e Another approach at getting web pages. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
cead66cc3d Disable printing tidy warnings and errors. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
d9f7772e9a Move parsing HTML to a separate function. 2025-07-12 11:50:13 +02:00
Bartosz Taudul
0a4c1c9a77 Make webpage caching optional. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
b659d79ac1 Add progress bar to user manual embeddings processing. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
1c9ef33e8c Add system prompt reinforcement. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
a00d8c3fd5 Remove obsolete tools.json. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
bddd705861 Do system prompt tag injection properly. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
9d825e794b Refine system prompt. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
bf9e4f6254 Update system prompt. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
c5422e0264 Add user_manual tool. 2025-07-12 11:50:12 +02:00
Bartosz Taudul
0520d12b24 Reserve memory for embeddings. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
96e03b079e Embeddings calls may need to be done on a separate connection.
The completion reply may be unfinished when the embeddings call is executed.
2025-07-12 11:50:11 +02:00
Bartosz Taudul
75e9e589b8 Make SetupCurl() work with any curl context. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
f1d1e00659 Model may be unloaded after completion (by embeddings call). 2025-07-12 11:50:11 +02:00
Bartosz Taudul
da54eec537 Disable another stupid check. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
338e029621 Fill in manual vector database. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
e54f4d6a15 Add vector database. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
e3db1eb7ee Probe embeddings vector length. 2025-07-12 11:50:11 +02:00
Bartosz Taudul
746f28e3c9 Add UI for building manual embeddings. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
b4fe4c460c Calculation of manual embeddings. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
89d65b52d9 Add API for getting embeddings vector. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
932af50d3e Set headers for GET. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
4301573d95 Embed manual contents. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
85086c461b Separate selection of LLM and embeddings model. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
ffe0047f8c Detect embeddings-capable models. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
95d2aa9a22 Set content type in POST request. 2025-07-12 11:50:10 +02:00
Bartosz Taudul
931bc97787 Trimming tool response now properly handles UTF-8.
This is important to have, as otherwise json parser will fail.
2025-07-12 11:50:10 +02:00