discourse-ai/lib/embeddings
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
..
strategies DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
vector_representations DEV: Backfill embeddings concurrently. (#941) 2024-11-26 14:12:32 -03:00
entry_point.rb FEATURE: API scope for semantic search (#785) 2024-08-30 09:35:20 +10:00
semantic_related.rb FIX: improve embedding generation (#452) 2024-01-31 10:38:47 -03:00
semantic_search.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
semantic_topic_query.rb DEV: Add apply_modifier for SemanticTopicQuery topics list (#830) 2024-10-10 12:13:16 -05:00