discourse-ai/lib
Roman Rizzi e0bf6adb5b
DEV: Tool support for the LLM service. (#366)
This PR adds tool support to available LLMs. We'll buffer tool invocations and return them instead of making users of this service parse the response.

It also adds support for conversation context in the generic prompt. It includes bot messages, user messages, and tool invocations, which we'll trim to make sure it doesn't exceed the prompt limit, then translate them to the correct dialect.

Finally, It adds some buffering when reading chunks to handle cases when streaming is extremely slow.:M
2023-12-18 18:06:01 -03:00
..
ai_bot FEATURE: try including views/username/likes in search results (#349) 2023-12-12 12:22:28 +11:00
ai_helper FEATURE: Proofread with post AI helper (#359) 2023-12-14 19:30:52 -08:00
completions DEV: Tool support for the LLM service. (#366) 2023-12-18 18:06:01 -03:00
database DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
embeddings FEATURE: DNS SRV support for TEI (#363) 2023-12-18 13:21:21 -03:00
inference FEATURE: DNS SRV support for TEI (#363) 2023-12-18 13:21:21 -03:00
nsfw DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
sentiment FEATURE: User sentiment on profile summary page (#329) 2023-12-04 18:17:43 -03:00
summarization FEATURE: Support for Gemini in AiHelper / Search / Summarization (#358) 2023-12-15 14:32:01 -03:00
tasks/modules FEATURE: User sentiment on profile summary page (#329) 2023-12-04 18:17:43 -03:00
tokenizer DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
toxicity DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
utils FEATURE: DNS SRV support for TEI (#363) 2023-12-18 13:21:21 -03:00
chat_message_classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
engine.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
post_classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00