
    rh                    <    d Z ddlmZ ddlmZ ddlmZ 	 	 	 	 ddZy)zFunction for de-duping results.    )annotations)Sequence)llmfn_output_rowc                    g }t               }t        |       D ]<  \  }}|j                         }||v r|j                  |       |j	                  |       > |S )ag  Returns a list of indices with duplicates removed.

    E.g. if rows has results ["hello", "hello", "world"], the return value would
    be [0, 2], indicating that the results at index 1 is a duplicate and should be
    removed.

    Args:
      rows: The input rows

    Returns:
      A sequence of indices indicating which entries have unique results.
    )set	enumerateresult_valueaddappend)rowsindicesseen_entriesidxrowvalues         }/var/www/html/ai-insurance-compliance-backend/venv/lib/python3.12/site-packages/google/generativeai/notebook/lib/unique_fn.py	unique_fnr      sa     G5LdO S  "L s N    N)r   z-Sequence[llmfn_output_row.LLMFnOutputRowView]returnzSequence[int])__doc__
__future__r   typingr    google.generativeai.notebook.libr   r    r   r   <module>r      s(    & "  =
7r   