Add `RerankerModel` to `effect/ai`.
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- ai
Línea de trabajo
Start by reading the existing EmbeddingModel, LanguageModel and DecisionModel modules in the effect/ai package to see the shared interface shape and how provider implementations plug in. The linked prototype at thomasfosterau/effect-ext (RerankerModel.ts) sketches a possible API for query-plus-documents input and scored results. Done means the new module exists alongside the others, is exported, and has at least one provider integration plus tests; expect to discuss the public interface with maintainers before writing much code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What is the problem this feature would solve?
Effect’s AI modules currently have an EmbeddingModel module for generating embeddings. A common use case for these embeddings is to use some sort of vector database, storing them and then querying them. A reranker model, by contrast, is typically given a query (as a string) and a list of candidate documents to rank (as a list of strings), and scores them against the query.
Several of the providers Effect already supports offer reranker models:
What is the feature you are proposing to solve the problem?
A RerankerModel module, analogous to LanguageModel, EmbeddingModel, and DecisionModel.
The input to a reranker model is typically a query (a string) and a list of documents (a string[]). The order of the documents in the list matters for some providers because they either return the index of the document.
The output is typically a list of the documents and their scores. As far as I know, most providers return the score as a float in the range [0, 1], but Cloudflare seems to leave that for the caller.
What alternatives have you considered?
I got Claude to throw together a prototype and released it as an NPM package, so this can be easily solved outside of Effect itself: https://github.com/thomasfosterau/effect-ext/blob/trunk/packages/effect-ext/src/RerankerModel.ts
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.7k
- Forks
- 808
- Merge medio
- 21 h 22 min
- PR fusionados (30 d)
- 486
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Effect-TS/effect
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
`@effect/ui-native` (Effect-TS/ui): `kit/VirtualList` `list` part widens `R` to `any`, poisoning enclosing componentsPosiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#11097 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`@effect/ui-native` (Effect-TS/ui): Controlled `input` rejected-edit restore never calls `host.commit()`Posiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#11096 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de Effect-TS/effect
Issues similares
-
check:failed streams:edit
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
iptv-org/iptv#60585 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
[Bug]: Critical path skips a child span that ends exactly when the next one startsPosiblemente ocupada @Piyush4801 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jaegertracing/jaeger-ui#4865 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
anthropics/claude-code#112972 ·
-
Type: Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día