feat(backend): add semantic matchmaking with embedding pipeline
Add a pluggable embedding provider with an offline deterministic default, vector indexing for problems and innovations, cosine semantic ranking, similar cases and solution suggestions, area filtering and an admin reindex endpoint. Refresh the index when innovations or submissions change.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace TarninaHub.Application.Matchmaking;
|
||||
|
||||
public interface IEmbeddingProvider
|
||||
{
|
||||
int Dimension { get; }
|
||||
|
||||
Task<float[]> EmbedAsync(string text, CancellationToken cancellationToken);
|
||||
|
||||
Task<IReadOnlyList<float[]>> EmbedBatchAsync(
|
||||
IReadOnlyList<string> texts,
|
||||
CancellationToken cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user