Skip to content

fix: add required model parameter to Cohere embed calls#122

Open
PrinceSpecial wants to merge 1 commit into
HandsOnLLM:mainfrom
PrinceSpecial:main
Open

fix: add required model parameter to Cohere embed calls#122
PrinceSpecial wants to merge 1 commit into
HandsOnLLM:mainfrom
PrinceSpecial:main

Conversation

@PrinceSpecial

Copy link
Copy Markdown

The co.embed() calls in Chapter 8 were missing a required model parameter, causing a NotFoundError: 404 with the message: "model 'large' not found". The Cohere API now requires an explicit model ID to be passed.

Added model="embed-v4.0" to both embed calls (document embedding and the query embedding inside the search function) to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant