Commit Graph

11535 Commits

Author SHA1 Message Date
d361cbf04e Cargo fmt 2025-06-03 14:50:21 +02:00
bd5268b4b2 Do a first clippy pass 2025-06-03 14:49:19 +02:00
a7ee848df3 Update the default chat completions prompt
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
2025-06-03 14:34:03 +02:00
a3600afa20 Clean up chat completions modules a bit 2025-06-03 14:28:01 +02:00
a4967dfaf7 Better report errors happening with the underlying LLM 2025-06-03 14:07:38 +02:00
ac33f10f81 Update dependencies 2025-06-01 21:59:11 +02:00
7fd34b5f19 Mark tool calls to be implemented later for non-streaming prototype-chat-route-13 2025-05-30 16:37:16 +02:00
ef0f877bb9 Update chat keys 2025-05-30 16:07:44 +02:00
85c20447e0 Make the chats settings and chat completions route experimental 2025-05-30 16:07:44 +02:00
0f75ae9f25 Implement a first version of a streamed chat API 2025-05-30 16:07:44 +02:00
11ace7f209 Introduce the first version of the /chat route that mimics the OpenAI API 2025-05-30 16:07:44 +02:00
dd7155abb3 Update charabia v0.9.4 2025-05-30 16:07:20 +02:00
6959b01aa5 Implement deserr on ChatCompletions settings structs 2025-05-30 16:07:02 +02:00
358abf662e Better chat completions settings management 2025-05-30 16:07:02 +02:00
5bb0714c5f Introduce listing/getting/deleting/updating chat workspace settings 2025-05-30 16:07:01 +02:00
7e42293a23 Implement useful conversion strategies and clean up the code 2025-05-30 16:07:01 +02:00
8c66e63760 Clean up the code a bit 2025-05-30 16:07:00 +02:00
5d8cdb075b Factorize the code a bit more and support reporting errors 2025-05-30 16:07:00 +02:00
fa139ee601 Report the sources 2025-05-30 16:07:00 +02:00
f635a8f9f3 Fix compilation error in test 2025-05-30 16:06:59 +02:00
807157b8cd Call specific tools to show progression and results. 2025-05-30 16:06:59 +02:00
ca5a87a606 Introduce a lot of search parameters and make Deserr happy 2025-05-30 16:06:59 +02:00
bf3286ba41 Expose a well defined set of sources 2025-05-30 16:06:58 +02:00
1e67a47a8f Add the index descriptions to the function description 2025-05-30 16:06:58 +02:00
7bfb7b7d58 redact the chat settings API key 2025-05-30 16:06:58 +02:00
1eb8249a51 Better chat settings management 2025-05-30 16:06:57 +02:00
f9ecb0ff31 Correctly list the chat settings key actions 2025-05-30 16:06:57 +02:00
723f1b13a0 Always use the frequency matching strategy 2025-05-30 16:06:56 +02:00
97d74bd2b9 Correctly support document templates on the chat API 2025-05-30 16:06:50 +02:00
39ecea5e9e Introduce the new index chat settings 2025-05-30 16:06:50 +02:00
d389e49147 Make sure errorneous calls are handled and forwarded to the LLM 2025-05-30 16:06:49 +02:00
971249c59c Catch invalid argument calls to search function 2025-05-30 16:06:49 +02:00
d6f2bd9b57 Support multiple indexes and not only main 2025-05-30 16:06:49 +02:00
14c8e5cb56 Limit the number of internal loop calls and change the function name 2025-05-30 16:06:48 +02:00
1159af1219 Correctly support tenant tokens and filters 2025-05-30 16:06:48 +02:00
0fcc7e1377 Stream errors 2025-05-30 16:06:48 +02:00
a074384d69 Stop the stream when the connexion stops and chnage the events 2025-05-30 16:06:47 +02:00
bc7e4598db Generate a new default chat API key 2025-05-30 16:06:47 +02:00
487002f2f0 Change the /chat route to /chat/completions to be OpenAI-compatible 2025-05-30 16:06:47 +02:00
a51579e923 Better stop the stream 2025-05-30 16:06:46 +02:00
afadfa420a Update the streaming detection to work with Mistral 2025-05-30 16:06:46 +02:00
116fbb4c24 Make it compatible with the Mistral API 2025-05-30 16:06:46 +02:00
64fe283abc Support base_api in the settings 2025-05-30 16:06:45 +02:00
9af1a29949 Make clippy happy 2025-05-30 16:06:45 +02:00
d5d30ed4f2 Display pre-query prompt in search tool response 2025-05-30 16:06:45 +02:00
81ea8933c1 Commit when putting stuff in LMDB 2025-05-30 16:06:44 +02:00
9875f55384 Remove useless function 2025-05-30 16:06:44 +02:00
eb4445070f Expose new chat settings routes 2025-05-30 16:06:44 +02:00
e603e221d5 Factorise a bit the code 2025-05-30 16:06:43 +02:00
d94f16b1d2 Display the different tool calls we need to do 2025-05-30 16:06:43 +02:00