discourse-ai/spec
Roman Rizzi 1f1c94e5c6
FEATURE: AI Bot RAG support. (#537)
This PR lets you associate uploads to an AI persona, which we'll split and generate embeddings from. When building the system prompt to get a bot reply, we'll do a similarity search followed by a re-ranking (if available). This will let us find the most relevant fragments from the body of knowledge you associated with the persona, resulting in better, more informed responses.

For now, we'll only allow plain-text files, but this will change in the future.

Commits:

* FEATURE: RAG embeddings for the AI Bot

This first commit introduces a UI where admins can upload text files, which we'll store, split into fragments,
and generate embeddings of. In a next commit, we'll use those to give the bot additional information during
conversations.

* Basic asymmetric similarity search to provide guidance in system prompt

* Fix tests and lint

* Apply reranker to fragments

* Uploads filter, css adjustments and file validations

* Add placeholder for rag fragments

* Update annotations
2024-04-01 13:43:34 -03:00
..
fabricators FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
fixtures FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
jobs FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
lib FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
models FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
requests FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
shared FIX: Handle unicode on tokenizer (#515) 2024-03-14 17:33:30 -03:00
support FIX: typo causing text_embedding_3_large to fail (#460) 2024-02-05 11:16:36 +11:00
system FIX: don't show share conversation incorrectly (#526) 2024-03-13 11:24:22 +11:00
tasks FIX: Filter soft-deleted topics when backfilling sentiment (#527) 2024-03-12 21:01:24 -03:00
plugin_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00