What is the best way to rank external API data and internal data from OpenSearch?

0

Use Case:

  • I have an OpenSearch service instance with 'internal' documents
  • I have 'external' data that I pull in from an API, ie Slack
  • I need to combine the internal and external data and rank them for relevancy - preferably with OpenSearch

What is the best way to do this? I am considering indexing the data and then deleting the index immediately, but I worry that latency would be a concern.

질문됨 5달 전199회 조회
1개 답변
0

There could be multiple ways using which you will get desired output. However, for the most relevant ranking you have to test out patterns. However, for Relevance-based score calculation You can use sort clauses with relevant scoring . Also, as OpenSearch assign relevance scores using keyword, document age, algorithm or any custom rule. You need to assign relevance score appropriately for both your internal and external data, you can then sort the combined results based on their relevance scores.

You can refer to the below documentation for detailed information on "Learning to Rank" best-practices for Amazon OpenSearch Service.

https://docs.aws.amazon.com/opensearch-service/latest/developerguide/learning-to-rank.html

AWS
지원 엔지니어
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠