discourse-ai/spec
Roman Rizzi ddf2bf7034
DEV: Backfill embeddings concurrently. (#941)
We are adding a new method for generating and storing embeddings in bulk, which relies on `Concurrent::Promises::Future`. Generating an embedding consists of three steps:

Prepare text
HTTP call to retrieve the vector
Save to DB.
Each one is independently executed on whatever thread the pool gives us.

We are bringing a custom thread pool instead of the global executor since we want control over how many threads we spawn to limit concurrency. We also avoid firing thousands of HTTP requests when working with large batches.
2024-11-26 14:12:32 -03:00
..
configuration FIX: Correctly display errors when parent module needs to be disabled first (#788) 2024-08-30 17:16:11 -03:00
db/migrate Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
fabricators FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
fixtures FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
jobs FEATURE: Calculate gists from non hot topics too (#958) 2024-11-26 13:44:12 -03:00
lib DEV: Backfill embeddings concurrently. (#941) 2024-11-26 14:12:32 -03:00
models DEV: Prefer ENV key for seeded models (#893) 2024-11-05 06:19:13 -08:00
requests FIX: automatically bust cache for share ai assets (#942) 2024-11-22 11:23:15 +11:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
services/discourse_ai REFACTOR: Support of different summarization targets/prompts. (#835) 2024-10-15 13:53:26 -03:00
shared REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
support Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
system FEATURE: Add links to filtered emotion view on emotion dashboard table (#953) 2024-11-25 15:51:01 -03:00
tasks Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
plugin_helper.rb DEV: Fix mismatched column types (#868) 2024-10-28 15:36:42 +02:00
plugin_spec.rb FEATURE: Add locale detection prompt from translator (#946) 2024-11-25 08:33:54 +11:00