Handle empty documents for $rerank

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      notes:
      """
      Hi Jintao, just an update that I've found the server issue in SERVER-119629 and am working on a fix. also, when I was testing, I found a possible $rerank bug: if I remove the $vectorSearch pipeline from the $rankFusion that precedes $rerank in the failing query, the query fails with

      "Failed to send request: HTTP status client error (400 Bad Request) for url (https://api.voyageai.com/v1/rerank)"
      I think this is probably related to the fact that the $search query by itself returns 0 documents, so $rerank receives 0 input documents
      """"

            Assignee:
            Jintao Shen
            Reporter:
            Jintao Shen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: