Skip to content

Conversation

@chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Nov 7, 2025

Q A
Bug fix? yes
New feature? no
Docs? no
Issues Fix #842
License MIT

@gundesli can you confirm that the examples work for you on this branch in the same way - meaning embeddings fail with 500 on internal server site?

image

@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Nov 7, 2025
@carsonbot carsonbot added Bug Something isn't working Status: Needs Review labels Nov 7, 2025
@gundesli
Copy link
Contributor

gundesli commented Nov 7, 2025

Hi @chr-hertel,

When I run the command:

php albert/embeddings.php

I get the same error.

I can see where the problem lies:

  • there is an initial issue with Albert's EmbeddingsModelClient
  • in the ModelCatalog, the class is incorrect for embeddings-small model

I can create a PR to fix this

@chr-hertel
Copy link
Member Author

@gundesli you are very much welcome - should we merge this here already as a first step or do you want to take over completely?

@gundesli
Copy link
Contributor

gundesli commented Nov 7, 2025

We can merge this one first, which concerns the examples, and I can start from the main branch in a second step, if that's okay for you.

I just noticed a small issue with the php command php albert/_model-listing.php, I get an error:

PHP Fatal error:  Uncaught Error: Class "Symfony\AI\Platform\Bridge\Albert\ApiClient" not found in /ai/examples/albert/_model-listing.php:28
Stack trace:
#0 [internal function]: Closure->{closure}()

@chr-hertel
Copy link
Member Author

that'll be fixed if you execute this:

../link

it links the vendors of the examples to the local components of the branch

@chr-hertel chr-hertel merged commit d15d098 into symfony:main Nov 7, 2025
15 checks passed
@gundesli
Copy link
Contributor

gundesli commented Nov 8, 2025

that'll be fixed if you execute this:

../link

it links the vendors of the examples to the local components of the branch

I didn't know that trick, thank you :)

@chr-hertel chr-hertel deleted the fix-albert-examples branch November 8, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review Status: Waiting feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Examples] Albert example not working

3 participants