Skip to content

maintenance: update ada-002 to text-embedding-3-small #7

@kordless

Description

@kordless

`text-embedding-ada-002` is deprecated. `openai.rs` should switch to `text-embedding-3-small` which has the same 1536d output dimension, the same API shape, and lower cost per token.

Changes:

  • Update the model name string in `openai.rs`
  • Make the model name configurable via env var (e.g. `OPENAI_EMBEDDING_MODEL`) so it can be changed without a rebuild
  • Verify the response shape is identical (it is — same `data[].embedding` field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions