Discourse AI - 语义搜索和总结在我们的配置中无法正常工作

Hi Sam,

We managed to resolve the Summarize issue—it turned out to be related to trust level settings. However, we’re still facing trouble with the AI Search feature. Specifically, we’re unable to toggle the button to enable AI.

We attempted to activate it manually via the backend using the following command:

ruby

CopyEdit

DiscourseAi::Embeddings::CreateEmbeddings.new(model: "text-embedding-3-small").embed("This is a test")

Then we checked the embedding count with:

ruby

CopyEdit

DiscourseAi::Embeddings::TopicEmbedding.count

Unfortunately, the count remains zero, indicating that embeddings aren’t being created, even when triggered manually. We also tried rebuilding the AI plugin, suspecting that some files might not have been properly updated—but the issue persists.