의미론적 AI 검색에서 결과를 얻는 데 어려움을 겪고 있어서, 무엇이 문제일 수 있는지 여러분의 의견을 듣고 싶습니다.
간단한 예시로 "shopify"를 검색해 보면 일반 검색 결과는 충분히 나오지만, AI 검색 결과는 전혀 나오지 않습니다. Discourse Meta 커뮤니티에서 "shopify"를 검색하면 일반 검색 결과와 AI 검색 결과가 모두 많이 나오는데, 우리 사이트에서는 그렇지 않습니다. 더 복잡하고 구체적인 질문도 시도해 봤지만, 여전히 결과가 나오지 않습니다.
우리 환경 설정은 다음과 같습니다. LLM 설정에서 gpt-4o-mini를 올바르게 구성해 두었고, “AI 임베딩 의미론적 검색 활성화” 옵션도 켜져 있습니다. 임베딩에는 "text-embedding-ada-002"를 사용 중입니다.
On a first glance, one issue I’ve found with your site current config is that while you are using text-embedding-ada-002 you’ve filled the embeddings configs for prompts, which are not supported for that model. I removed the instructions you had set there and regenerated the embeddings on your site.
I’m also updating the tooltip on those settings to try to avoid this confusion going forward
@Falco this seems to be working much better, thank you! I had added the prompts under the embedding configuration in an attempt to improve it, but of course it had no effect.
@Falco maybe I spoke too soon. Whenever I search now, AI always has exactly 40 results found regardless of what I search for. Many of the results are also not that relevant (suggesting the about this category topic for example).
I would expect 0 search results and 0 AI results in that particular case. We support ES6/ECMAScript2015 JS (yes very old), but it’s not in any community post as of yet.
Creates a new post about it taking into account the forum description
Returns the most semantically similar topics to it
There is no threshold of distance where we cut off the search, as finding out a general threshold that covers all thousands of Discourse instances is non-trivial. This is discussed at Setting a similarity threshold for semantic search.
We are looking into releasing a new approach that will do a more standard LLM + RAG search and return a conversational response, where you can tweak the prompt to say “no results found”. This is coming in the next weeks, will ping you here when you can test it.
That would be great. That’s what I was attempting to do with adding the prompts into embeddings section. Since you can’t set a threshold now, is that why we’re always seeing about 40 results?
Today, the AI search works like a failover system when the standard search returns no results, acting like an overpowered synonyms dictionary. However, in your case, the search query doesn’t have any possible results in the entire forum, which isn’t the use case it was designed to address.
Stay tuned for the next version of the search; it will be closer to what you want.