mattpocock / mattpocock/evalite

`wrapAISDKModel` for `EmbeddingModelV2`

Open
#374 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.