mattpocock / mattpocock/evalite
`wrapAISDKModel` for `EmbeddingModelV2`
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
I like the idea of caching AI requests to increase speed in case the output is the same anyway. But I noticed that we actually use a lot of embedding with scorers like answerSimilarity which are currently not supported in combination with wrapAISDKModel. It would be great to support them too!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the wrapAISDKModel entry point and trace how it handles model requests. Check the AI SDK's EmbeddingModelV2 contract and the answerSimilarity scorer, then verify that embedding requests can be wrapped and cached without breaking existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100